Posts active and expired in different loops
Posts active and expired in different loops
Posts active and expired in different loops
Change the main loop WordPress impact on the server?
There are a few ways to accomplish what you are trying to do. The first and easiest thing that I think I would try is to replace your call to is_home() with is_ftont_page(). Read here for the difference between the two. If that doesn’t fix your issue, you could try making a call to WP_query … Read more
Two loops on different pages do the same thing, but only one page works
Infinite Scroll and DFP
Your actual question is basically when to run a custom query and when to make use of the main query. Lets break it down in three parts PART ONE When to run a custom query (This is not a definitive list) To create custom content sliders To create a featured content area in a page … Read more
Display category name only once inside loop
The Problem By default, in any given context, WordPress uses the main query to determine pagination. The main query object is stored in the $wp_query global, which is also used to output the main query loop: if ( have_posts() ) : while ( have_posts() ) : the_post(); When you use a custom query, you create … Read more
i solved my own problem by giving up and using wordpress’s fetch_feed function https://codex.wordpress.org/Function_Reference/fetch_feed this works well for me because i dont have to worry about timing when calling parameters.
Get custom post type’s fields in a while loop as variables