0
votes
2answers
65 views

Can't get the previous and next posts permalink

I tried to get the next and previous URL, and create a navigation. But it seems to only retrieve the permalink from the two first posts (but not the others recents posts). I have 5 posts (ID = 25, ...
0
votes
2answers
50 views

Get the amount of posts on a given page

When you go to something like: site.com/?cat=2&page=2 you might see 3 posts, the page before might have 5 posts. I am looking for a way to count the posts on a given page. so if I am on page 2, ...
0
votes
1answer
111 views

next_posts_link returns same content of 1st page

Pagination seems to work fine... I have 21 posts... and it will go to 3 pages... however... every page shows 10 posts and the same content as the first page.... <?php $temp = $wp_query; $wp_query= ...
2
votes
1answer
2k views

Get the children of the parent category

I'm trying to get all the children categories to display in this loop but I'm struggling with the code. This is what I have so far. <?php $args=array('orderby' => 'name', 'order' => 'ASC'); ...
-1
votes
1answer
489 views

posts_nav_link() not working on index.php

I have a problem with the posts_nav_link() function on index.php. It works but it's not displaying the older posts. When someone clicks on the "next page" link the same posts from the fist page are ...
0
votes
1answer
928 views

Issue with front page navigation after upgrading to 3.4

I upgraded to WordPress 3.4 and am having an issues with showing a different amount of post on the first page versus the rest. The first page is still showing 5 posts but when I go to /page/2/ I'm ...
0
votes
1answer
107 views

Static Website No Titles But Still Nav

So I have a static paged website and I want to make pages without title, but I still need the titles for the navigation to pick it up. How can I get rid of the Page.php (the_post()) from displaying ...
2
votes
2answers
3k views

WP_Query and next_posts_link

I cannot figure out how to make next_posts_link() work within my custom WP_Query. Here is the function: function artists() { echo '<div id="artists">'; $args = array( 'post_type' => ...
0
votes
2answers
618 views

Page Navigation Outside the Loop

I have a series of pages for individual products. I'd like to page between them using a navigation that sits outside of the loop. | | ( <= prev ) | <loop> ...
0
votes
3answers
824 views

Previous Posts Link and Next Posts Link Show All The Same Articles?

I just fixed the problem of my featured posts section displaying on every index page instead of just the first one. This, of course, created a brand new problem. The first page looks fine; my featured ...
1
vote
1answer
1k views

Paging doesn't work?

I have my own custom post type, and 15 items there. This code shows all the items: <?php $loop = new WP_Query( array( 'post_type' => 'my_post_type', 'posts_per_page' => 15 ) ); while ( ...