WordPress is powered by magic and jazz music. This talk demystifies one of the fundamental components of the WordPress software, WP_Query and the Loop. We’ll talk about URL query strings, how they are used in WordPress and how to manipulate them to control the behavior and output of your site. We’ll also talk about the Loop, what it does, how it works and how to create custom Loops specific to the needs of your project.
Scaling Saved Searches at eBay KleinanzeigenAndre Charton
Ebay Kleinanzeigen is one of the most visited sites in Germany and still grows at an amazing speed. Currently, we have about 19 million ads and over 18 million unique visitors each month. One of our most popular features are saved searches: When on a search result page, users can register for push notifications in case of new matching ads being posted. Introduced in summer last year, we are now close to 5 million saved searches in our database, with the number steadily growing.
In 2014, Filip managed to exceed our audience's expectations with a well-researched and energizing lecture. Since then, he's managed to build a successful tech startup and has worked for clients across the globe. We are very proud to present you one of the brightest minds on the Czech marketing scene!
Painful Success - Lessons Learned while Scaling UpC4Media
Video and slides synchronized, mp3 and slide download available at URL http://bit.ly/19siM4E.
Jesper Richter-Reichhelm shares lessons learned from failures while scaling Wooga games to millions of daily users.Filmed at qconlondon.com.
Jesper Richter-Reichhelm is working as Head of Engineering at Wooga, one of the most popular social games developers for web and mobile in the world. Jesper is passionate about playing and working on games as well as developing highly scalable software that is used by millions of players. He also loves sharing his knowledge and passion at conferences. Twitter: @jrirei
Scaling Saved Searches at eBay KleinanzeigenAndre Charton
Ebay Kleinanzeigen is one of the most visited sites in Germany and still grows at an amazing speed. Currently, we have about 19 million ads and over 18 million unique visitors each month. One of our most popular features are saved searches: When on a search result page, users can register for push notifications in case of new matching ads being posted. Introduced in summer last year, we are now close to 5 million saved searches in our database, with the number steadily growing.
In 2014, Filip managed to exceed our audience's expectations with a well-researched and energizing lecture. Since then, he's managed to build a successful tech startup and has worked for clients across the globe. We are very proud to present you one of the brightest minds on the Czech marketing scene!
Painful Success - Lessons Learned while Scaling UpC4Media
Video and slides synchronized, mp3 and slide download available at URL http://bit.ly/19siM4E.
Jesper Richter-Reichhelm shares lessons learned from failures while scaling Wooga games to millions of daily users.Filmed at qconlondon.com.
Jesper Richter-Reichhelm is working as Head of Engineering at Wooga, one of the most popular social games developers for web and mobile in the world. Jesper is passionate about playing and working on games as well as developing highly scalable software that is used by millions of players. He also loves sharing his knowledge and passion at conferences. Twitter: @jrirei
Novel machine learning techniques comes from spending time with people that have distinct needs. This talk addresses how listening to end users can give rise to novel machine learning applications.
Erlang - Because s**t Happens by Mahesh Paolini-SubramanyaHakka Labs
Mahesh talks about the buddha-nature of Erlang/OTP, pointing out how the various features of the language tie together into one seamless Fault Tolerant whole. Mahesh emphasizes that Erlang begins and ends with Fault Tolerance. Fault Tolerance is baked into the very genes of Erlang/OTP - something that ends up being amazingly useful when building any kind of system. Mahesh Paolini-Subramanya is the V.P. of R&D at Ubiquiti Networks - a manufacturer of disruptive technology platforms for emerging markets. He has spent the recent past building out Erlang-based massively concurrent Cloud Services and VoIP platforms. Mahesh was previously the CTO of Vocalocity after its merger with Aptela, where he was a founder and CTO.
Developing an SDK for Personalization at the EdgeChris Reynolds
The Edge. The final…frontier? What even is “the edge” beyond just another tech buzzword? And how can I actually use the edge for something actually useful for my site and visitors?
In this talk, I will answer all of these questions and talk about how we at Pantheon have built a software development kit for Drupal and WordPress to enable personalized content by integrating with our edge layer.
We’ll talk about what personalization means for site owners, and get into some of the technical implementation details of how we’ve built our SDKs and how they can be used for personalized content creation.
Outcomes vs Outputs: How Outcome Driven Development Planning Changes EverythingChris Reynolds
As freelancers, developers and project managers working on a project, it’s easy to get blinded by outcomes. Tasks on a project are often defined by the specific thing that we expect to build or present to the client or customer. But what if our assumptions are wrong? Or the scope changes along the way? What if there was an easier way to produce a desirable, user-friendly end-product without specifically defining what that end-product is? (Spoiler: There is!) This talk will discuss how to shift your focus from outputs to outcomes and how that little mental shift, changes everything. Really!
How the WordPress Block Editor Changes the Conversation for Content Editors a...Chris Reynolds
Everyone in the WordPress community is talking about the new editing experience in WordPress. Wherever you fall in defense of or against the new editor, it changes how we interact with WordPress from a content editing and a development perspective. In this talk I will explore some of the ways Gutenberg changes how we build things as well as the types of things we can build to enhance and improve the WordPress editing experience.
How the WordPress Block Editor Changes the Conversation for Content Editors a...Chris Reynolds
Everyone in the WordPress community is talking about the new editing experience in WordPress. Wherever you fall in defense of or against the new editor, it changes how we interact with WordPress from a content editing and a development perspective. In this talk I will explore some of the ways Gutenberg changes how we build things as well as the types of things we can build to enhance and improve the WordPress editing experience.
The open source community is vast. The greater tech community is even bigger. In the last year, we’ve watched reports about how bad our treatment is of women and marginalized groups within the tech community...it doesn’t take long to find pages and pages of stories. I am a white male from a middle class family and I am well aware of my privilege that other people within our community don’t share due to their gender identity, sexual orientation, mental or physical health, the color of their skin, what part of the world they were born in, etc, etc, etc. This talk will address the problems that exist and how those of us who have privilege can use our powers for good to make the community a better and more inclusive place for everyone.
Presenter notes available at http://s3q.us/ally-notes/
I started, like a lot of developers, from ground zero. I taught myself HTML in the GeoCities days and, when I discovered open source software, the first thing I did was started ripping apart code to customize it for my site and my own personal use. I now write code for global enterprise businesses with thousands of users and millions of visitors. In the intervening time, I’ve had plenty of opportunities to confront feelings of inadequacy, of feeling like I’m not actually that good and that no one would ever listen to me. Everyone suffers from imposter syndrome at some point, for a variety of reasons. The key to overcoming imposter syndrome is understanding your own skills and what you’re fantastic at. Learning how to manage imposter syndrome could be the difference between taking the skills and knowledge you’ve acquired through years of experience and training and applying to that awesome job, or being too afraid to hit the apply button because you don’t believe you actually have enough experience, recognition or some other artificial excuse. This talk will share some of my personal experiences and how I tamed my own imposter syndrome and will suggest some strategies for overcoming yours.
Awesome Git Workflow for Agencies and TeamsChris Reynolds
We all know that Git > SVN, right? But maybe you haven’t had time yet to fully grasp the awesome power of a perfect Git workflow. Chris Reynolds is a developer for WebDevStudios and is here to share how WDS uses Git on projects for clients like Microsoft and the United States’ National Park Service as well as collaborative development on plugins on GitHub and the WordPress Plugins repository.
Why Hacking WordPress Search Isn't Some Big Scary ThingChris Reynolds
Developers can be a stubborn lot. We like to focus on the things we know really well, and things we don’t deal with as often can be seen as “hard”. Search is one of those things that gets written off a lot, few devs I know will deal with it (voluntarily), and almost everyone will tell you “WordPress search sucks.” In this presentation you will learn that not only do you know more about how search works than you thought you did, but maybe give you a better understanding of how WordPress works as a whole, as well as showing you some cool tricks that you can do with WordPress search.
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024APNIC
Ellisha Heppner, Grant Management Lead, presented an update on APNIC Foundation to the PNG DNS Forum held from 6 to 10 May, 2024 in Port Moresby, Papua New Guinea.
Novel machine learning techniques comes from spending time with people that have distinct needs. This talk addresses how listening to end users can give rise to novel machine learning applications.
Erlang - Because s**t Happens by Mahesh Paolini-SubramanyaHakka Labs
Mahesh talks about the buddha-nature of Erlang/OTP, pointing out how the various features of the language tie together into one seamless Fault Tolerant whole. Mahesh emphasizes that Erlang begins and ends with Fault Tolerance. Fault Tolerance is baked into the very genes of Erlang/OTP - something that ends up being amazingly useful when building any kind of system. Mahesh Paolini-Subramanya is the V.P. of R&D at Ubiquiti Networks - a manufacturer of disruptive technology platforms for emerging markets. He has spent the recent past building out Erlang-based massively concurrent Cloud Services and VoIP platforms. Mahesh was previously the CTO of Vocalocity after its merger with Aptela, where he was a founder and CTO.
Developing an SDK for Personalization at the EdgeChris Reynolds
The Edge. The final…frontier? What even is “the edge” beyond just another tech buzzword? And how can I actually use the edge for something actually useful for my site and visitors?
In this talk, I will answer all of these questions and talk about how we at Pantheon have built a software development kit for Drupal and WordPress to enable personalized content by integrating with our edge layer.
We’ll talk about what personalization means for site owners, and get into some of the technical implementation details of how we’ve built our SDKs and how they can be used for personalized content creation.
Outcomes vs Outputs: How Outcome Driven Development Planning Changes EverythingChris Reynolds
As freelancers, developers and project managers working on a project, it’s easy to get blinded by outcomes. Tasks on a project are often defined by the specific thing that we expect to build or present to the client or customer. But what if our assumptions are wrong? Or the scope changes along the way? What if there was an easier way to produce a desirable, user-friendly end-product without specifically defining what that end-product is? (Spoiler: There is!) This talk will discuss how to shift your focus from outputs to outcomes and how that little mental shift, changes everything. Really!
How the WordPress Block Editor Changes the Conversation for Content Editors a...Chris Reynolds
Everyone in the WordPress community is talking about the new editing experience in WordPress. Wherever you fall in defense of or against the new editor, it changes how we interact with WordPress from a content editing and a development perspective. In this talk I will explore some of the ways Gutenberg changes how we build things as well as the types of things we can build to enhance and improve the WordPress editing experience.
How the WordPress Block Editor Changes the Conversation for Content Editors a...Chris Reynolds
Everyone in the WordPress community is talking about the new editing experience in WordPress. Wherever you fall in defense of or against the new editor, it changes how we interact with WordPress from a content editing and a development perspective. In this talk I will explore some of the ways Gutenberg changes how we build things as well as the types of things we can build to enhance and improve the WordPress editing experience.
The open source community is vast. The greater tech community is even bigger. In the last year, we’ve watched reports about how bad our treatment is of women and marginalized groups within the tech community...it doesn’t take long to find pages and pages of stories. I am a white male from a middle class family and I am well aware of my privilege that other people within our community don’t share due to their gender identity, sexual orientation, mental or physical health, the color of their skin, what part of the world they were born in, etc, etc, etc. This talk will address the problems that exist and how those of us who have privilege can use our powers for good to make the community a better and more inclusive place for everyone.
Presenter notes available at http://s3q.us/ally-notes/
I started, like a lot of developers, from ground zero. I taught myself HTML in the GeoCities days and, when I discovered open source software, the first thing I did was started ripping apart code to customize it for my site and my own personal use. I now write code for global enterprise businesses with thousands of users and millions of visitors. In the intervening time, I’ve had plenty of opportunities to confront feelings of inadequacy, of feeling like I’m not actually that good and that no one would ever listen to me. Everyone suffers from imposter syndrome at some point, for a variety of reasons. The key to overcoming imposter syndrome is understanding your own skills and what you’re fantastic at. Learning how to manage imposter syndrome could be the difference between taking the skills and knowledge you’ve acquired through years of experience and training and applying to that awesome job, or being too afraid to hit the apply button because you don’t believe you actually have enough experience, recognition or some other artificial excuse. This talk will share some of my personal experiences and how I tamed my own imposter syndrome and will suggest some strategies for overcoming yours.
Awesome Git Workflow for Agencies and TeamsChris Reynolds
We all know that Git > SVN, right? But maybe you haven’t had time yet to fully grasp the awesome power of a perfect Git workflow. Chris Reynolds is a developer for WebDevStudios and is here to share how WDS uses Git on projects for clients like Microsoft and the United States’ National Park Service as well as collaborative development on plugins on GitHub and the WordPress Plugins repository.
Why Hacking WordPress Search Isn't Some Big Scary ThingChris Reynolds
Developers can be a stubborn lot. We like to focus on the things we know really well, and things we don’t deal with as often can be seen as “hard”. Search is one of those things that gets written off a lot, few devs I know will deal with it (voluntarily), and almost everyone will tell you “WordPress search sucks.” In this presentation you will learn that not only do you know more about how search works than you thought you did, but maybe give you a better understanding of how WordPress works as a whole, as well as showing you some cool tricks that you can do with WordPress search.
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024APNIC
Ellisha Heppner, Grant Management Lead, presented an update on APNIC Foundation to the PNG DNS Forum held from 6 to 10 May, 2024 in Port Moresby, Papua New Guinea.
1.Wireless Communication System_Wireless communication is a broad term that i...JeyaPerumal1
Wireless communication involves the transmission of information over a distance without the help of wires, cables or any other forms of electrical conductors.
Wireless communication is a broad term that incorporates all procedures and forms of connecting and communicating between two or more devices using a wireless signal through wireless communication technologies and devices.
Features of Wireless Communication
The evolution of wireless technology has brought many advancements with its effective features.
The transmitted distance can be anywhere between a few meters (for example, a television's remote control) and thousands of kilometers (for example, radio communication).
Wireless communication can be used for cellular telephony, wireless access to the internet, wireless home networking, and so on.
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdfFlorence Consulting
Quattordicesimo Meetup di Milano, tenutosi a Milano il 23 Maggio 2024 dalle ore 17:00 alle ore 18:30 in presenza e da remoto.
Abbiamo parlato di come Axpo Italia S.p.A. ha ridotto il technical debt migrando le proprie APIs da Mule 3.9 a Mule 4.4 passando anche da on-premises a CloudHub 1.0.
Italy Agriculture Equipment Market Outlook to 2027harveenkaur52
Agriculture and Animal Care
Ken Research has an expertise in Agriculture and Animal Care sector and offer vast collection of information related to all major aspects such as Agriculture equipment, Crop Protection, Seed, Agriculture Chemical, Fertilizers, Protected Cultivators, Palm Oil, Hybrid Seed, Animal Feed additives and many more.
Our continuous study and findings in agriculture sector provide better insights to companies dealing with related product and services, government and agriculture associations, researchers and students to well understand the present and expected scenario.
Our Animal care category provides solutions on Animal Healthcare and related products and services, including, animal feed additives, vaccination
This 7-second Brain Wave Ritual Attracts Money To You.!nirahealhty
Discover the power of a simple 7-second brain wave ritual that can attract wealth and abundance into your life. By tapping into specific brain frequencies, this technique helps you manifest financial success effortlessly. Ready to transform your financial future? Try this powerful ritual and start attracting money today!
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptxBrad Spiegel Macon GA
Brad Spiegel Macon GA’s journey exemplifies the profound impact that one individual can have on their community. Through his unwavering dedication to digital inclusion, he’s not only bridging the gap in Macon but also setting an example for others to follow.
1. Who’s afraid of the
BIG BAD WOLF?
Chris Reynolds@jazzs3quence
LOOP
2. Who’s afraid of the
BIG BAD WOLF?
Chris Reynolds@jazzs3quence
LOOP
3. DA LOOP? WHO DIS?
Who’s afraid of the big bad Loop?
4. DA LOOP? WHO DIS?
Who’s afraid of the big bad Loop?
“The Loop is PHP code used by WordPress to display
posts. Using The Loop, WordPress processes each post
to be displayed on the current page, and formats it
according to how it matches specified criteria within
The Loop tags. Any HTML or PHP code in the Loop will
be processed on each post.”
— WordPress Codex
5. DA LOOP? WHO DIS?
Who’s afraid of the big bad Loop?
lolwut
6. DA LOOP? WHO DIS?
Who’s afraid of the big bad Loop?
lolwut
7. DA LOOP? WHO DIS?
Who’s afraid of the big bad Loop?
lolwut
8. DA LOOP? WHO DIS?
Who’s afraid of the big bad Loop?
lolwut
9. DA LOOP? WHO DIS?
Who’s afraid of the big bad Loop?
10. DA LOOP? WHO DIS?
Who’s afraid of the big bad Loop?
11. DA LOOP? WHO DIS?
Who’s afraid of the big bad Loop?
12. DA LOOP? WHO DIS?
Who’s afraid of the big bad Loop?
67. Title of the Proposal
?
reset_postdata
wp_reset_postdata
wp_reset_query
?
68. wp_reset_query
https://www.dropbox.com/s/g3qv4965tb3bhzt/
Screenshot%202018-06-25%2009.21.54.png?dl=0
Who’s afraid of the big bad Loop?
wp_reset_query() restores the $wp_query and global post
data to the original main query. This function should be called
after query_posts(), if you must use that function. As noted in
the examples below, it's heavily encouraged to use the
pre_get_posts filter to alter query parameters before the
query is made.
Calling wp_reset_query is not necessary after using
WP_Query or get_posts as these don't modify the main query
object. Instead use wp_reset_postdata
69. wp_reset_postdata
https://www.dropbox.com/s/g3qv4965tb3bhzt/
Screenshot%202018-06-25%2009.21.54.png?dl=0
Who’s afraid of the big bad Loop?
Use this function to restore the context of the template tags
from a secondary query loop back to the main query loop.
A secondary query loop using $sec_query = new WP_Query()
and $sec_query->the_post() affects the global $post
variable. The global $post variable is used by template tags
by default. wp_reset_postdata() restores the global $post
variable to the current post in the main query (contained in
the global $wp_query variable as opposed to the $sec_query
variable), so that the template tags refer to the main query
loop by default again.
91. query_posts
https://www.dropbox.com/s/g3qv4965tb3bhzt/
Screenshot%202018-06-25%2009.21.54.png?dl=0
Who’s afraid of the big bad Loop?
Note: This function will completely override the
main query and isn’t intended for use by plugins
or themes. Its overly-simplistic approach to
modifying the main query can be problematic
and should be avoided wherever possible. In
most cases, there are better, more performant
options for modifying the main query such as via
the 'pre_get_posts' action within WP_Query.
92. The Loop
How WordPress fetches
posts.
get_posts
Returns the array of posts
from any query (including
the main query).
The Magic
All WordPress queries are
based around URL query
variables that are secretly
hidden.
WP_Query
Runs a WordPress query
for posts.
Resetting Post Data
Always use
wp_reset_postdata after
secondary queries. Period.
query_posts
Don’t use. Ever.
REVIEW!
93. QUESTIONS?
CHRIS REYNOLDS
Senior WordPress Engineer
@ Human Made
@jazzs3quence
https://github.com/jazzsequence
https://chrisreynolds.io
https://jazzsequence.com
http://s3q.us/wcden2018-loop