{"id":1594,"date":"2022-10-20T21:49:01","date_gmt":"2022-10-20T16:04:01","guid":{"rendered":"https:\/\/nepal.wordcamp.org\/2022\/?post_type=wcb_session&#038;p=1594"},"modified":"2022-10-29T18:50:42","modified_gmt":"2022-10-29T13:05:42","slug":"creating-efficient-wordpress-queries-with-wp_query","status":"publish","type":"wcb_session","link":"https:\/\/nepal.wordcamp.org\/2022\/session\/creating-efficient-wordpress-queries-with-wp_query\/","title":{"rendered":"Creating efficient WordPress Queries with WP_Query"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">WP_Query is a class defined that allows developers to write custom queries and display posts using different parameters. It is one of the commonly used classes in WordPress. We will be discussing how it is possible to use it more efficiently. The topic will cover about mistakes to avoid, optimizing the query and making it more scalable for large database sizes.<\/p>\n\n\n<div class=\"wp-block-wordcamp-session-speakers\"><span class=\"wp-block-wordcamp-session-speakers__byline\">Presented by<\/span><span class=\"wp-block-wordcamp-session-speakers__name\"><a href=\"https:\/\/nepal.wordcamp.org\/2022\/speaker\/krishna-neupane\/\">Krishna Neupane<\/a><\/span><\/div>","protected":false},"excerpt":{"rendered":"<p>WP_Query is a class defined that allows developers to write custom queries and display posts using different parameters. It is one of the commonly used classes in WordPress. We will be discussing how it is possible to use it more efficiently. The topic will cover about mistakes to avoid, optimizing the query and making it [&hellip;]<\/p>\n","protected":false},"author":17673261,"featured_media":0,"template":"","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"_wcpt_session_time":1667621700,"_wcpt_session_duration":1800,"_wcpt_session_type":"session","_wcpt_session_slides":"","_wcpt_session_video":"","_wcpt_speaker_id":[1593],"footnotes":""},"session_track":[1079919],"session_category":[],"class_list":["post-1594","wcb_session","type-wcb_session","status-publish","hentry","wcb_track-hall-rhino"],"jetpack_sharing_enabled":true,"session_date_time":{"date":"November 5, 2022","time":"10:00 am"},"session_speakers":[{"id":"1593","slug":"krishna-neupane","name":"Krishna Neupane","link":"https:\/\/nepal.wordcamp.org\/2022\/speaker\/krishna-neupane\/"}],"session_cats_rendered":null,"_links":{"self":[{"href":"https:\/\/nepal.wordcamp.org\/2022\/wp-json\/wp\/v2\/sessions\/1594","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nepal.wordcamp.org\/2022\/wp-json\/wp\/v2\/sessions"}],"about":[{"href":"https:\/\/nepal.wordcamp.org\/2022\/wp-json\/wp\/v2\/types\/wcb_session"}],"version-history":[{"count":1,"href":"https:\/\/nepal.wordcamp.org\/2022\/wp-json\/wp\/v2\/sessions\/1594\/revisions"}],"predecessor-version":[{"id":4236,"href":"https:\/\/nepal.wordcamp.org\/2022\/wp-json\/wp\/v2\/sessions\/1594\/revisions\/4236"}],"speakers":[{"embeddable":true,"href":"https:\/\/nepal.wordcamp.org\/2022\/wp-json\/wp\/v2\/speakers\/1593"}],"author":[{"embeddable":true,"href":"https:\/\/nepal.wordcamp.org\/2022\/wp-json\/wporg\/v1\/users\/krishneup"}],"wp:attachment":[{"href":"https:\/\/nepal.wordcamp.org\/2022\/wp-json\/wp\/v2\/media?parent=1594"}],"wp:term":[{"taxonomy":"wcb_track","embeddable":true,"href":"https:\/\/nepal.wordcamp.org\/2022\/wp-json\/wp\/v2\/session_track?post=1594"},{"taxonomy":"wcb_session_category","embeddable":true,"href":"https:\/\/nepal.wordcamp.org\/2022\/wp-json\/wp\/v2\/session_category?post=1594"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}