Two loops by pre_get_post on same page
I have two loops in archive.php, both are affected by pre_get_post. My code on pre_get_post is this: // My pre_get_post function my_pre_get_posts( $query … Read more
I have two loops in archive.php, both are affected by pre_get_post. My code on pre_get_post is this: // My pre_get_post function my_pre_get_posts( $query … Read more
I am trying to create a custom loop to display my posts in different styling. In my posts, I have mostly Youtube videos … Read more
next/prev from my first to last and the other way around cant find a solution for that i am using this code for … Read more
How can I loop through my WordPress query, and check each posts if one meta_value of meta_key user_ip_reservering match the $ipadres Code $args … Read more
Today, I need your help. On my pages I have a sidebar with : <div class=”sidebarActu”> <ul> <?php $i = 1; while ( … Read more
For some reason I am unable to output the custom post type content using the following code. what am I missing here? It … Read more
How to use max and min values of custom fields (created via ACF, repeater type)? For axample, I’ve custom post type ‘auto’ and … Read more
I have a category archive page (press), which I need to loop through posts of a certain tag (magazines). I tried to modify … Read more
How can I put WordPress post loop Codes in javascript? function top_news() { echo ‘<div class=”news”></div>’; $query = get_posts(array( ‘showposts’ => 3, ‘type’ … Read more
Closed. This question is off-topic. It is not currently accepting answers. Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be … Read more