I have a custom-post-type called ‘artists’. I list them by the order attribute (menu_order). $args = array( 'post_status' => 'publish', 'post_type' => array('artists), 'orderby'=> array('menu_order'=>'ASC' ), ); $wp_query =...
next/prev from my first to last and the other way around cant find a solution for that i am using this code for next <?php next_post_link('%link','<img src="https://wordpress.stackexchange.com/questions/259353/img-location"/>'); ?> and...
I’m trying to get the next and previous attachment by the user it’s currently displaying, this is what I have and it works great except it gets all of...
I’ve got a custom post type (CPT) called event. Every event has got an associated meta_key called event_date. I want to make sure that events with empty event_date won’t...
I am currently using toolbox as a parent theme and have created a template file called single-projects.php where all posts of the custom post type ‘projects’ are shown. The...
I’ve got another question regarding next / previous post. At the moment I’m working on our portfolio with several items. Each item is a post with a title, category...
I have a custom post type “realisation”, for which I’ve made a file single-realisation.php. These posts use the non-custom taxonomy “category”. In this page, I use the next_post_link() and...
Is it possible when using the previous_post_link() function to make it get the previous post after next i.e. make it skip a post. So if you’re on post 5...
I want to add a code in my theme to show a Next/Previous link below the post but within the same category. I Don’t need a thumbnail but if...
I am making a pagination for this website by using a custom query and get_next_posts_link, get_previous_posts_link. The problem is that the link to older entries (get_next_posts_link) only works once,...