It is not advised to use Query_post() since it will run a lot of background operations relying on the WP_Query, and WordPress will load your main query before the template files in your index.php file. Use the following instead:
When you need to have multiple loops in a page, use WP_Query object.
To modify your main look, use the pre_get_posts filter
If you need to modify the main WP loop use the pre_get_posts filter
If you don’t need a loop and just want to get a post
WordPress query_posts() alternatives
It is not advised to use Query_post() since it will run a lot of background operations relying on the...
query_posts alternatives wordpress
Also tagged with one or more of these keywords: query_posts alternatives, wordpress
Web Design →
CMS →
How to build web with wordpress engine? please help me, thanksStarted by anzenamri, 16 May 2017 ![]() |
|
![]() |
||
Designer's Resources →
Tutorials →
Add Free Live Chat in WordPressStarted by OneDes, 16 Dec 2013 ![]() |
|
![]() |
||
Web Design →
CMS →
Adding Google Maps in WordPress using a Widget and LightboxStarted by Ammar11, 26 Nov 2013 ![]() |
|
![]() |
||
Web Design →
CMS →
How to Manually add Google Maps in WordPress ?Started by Ammar11, 26 Nov 2013 ![]() |
|
![]() |
||
Web Design →
CMS →
Displaying selective Tweets in your WordPressStarted by OneDes, 20 Nov 2013 ![]() |
|
![]() |
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users