Tagged Questions
0
votes
1answer
30 views
How to change pagination base from slash to query form?
Can this function...
function custom_pagination_base() {
global $wp_rewrite;
$wp_rewrite->pagination_base = 'p';
$wp_rewrite->flush_rules();
}
add_action( 'init', 'custom_pagination_base' );
...
0
votes
0answers
10 views
Google Not Indexing Multi-Page/Pagination Posts - Need Help With Code [duplicate]
I'm new to StackExchange and I guess I'm unable to comment on a post since I don't have enough reputation so I was wondering if someone could take a look at this answer (code) on this post (Multi-page ...
0
votes
1answer
54 views
Unable to Change “Pages:” Before WP_LINK_PAGES
Below is a functions.php code for wp_link_pages which allows pagination and previous/next links to be displayed. It also wraps each pagination link in a span class called "classlinks".
I need to ...
0
votes
0answers
27 views
Wordpress Custom Post Type Pagination Issue [duplicate]
Possible Duplicate:
Pagination not working with custom loop
Both me and my friend are completely bamboozled as to whats going on here. The quest is to have standard pagination linking from ...
1
vote
1answer
202 views
Rewriting search and pagination base
After trying for weeks now how to find a working solution I got rid of most of my functions and trials and just left the pagination function underneath in my functions.phh file:
/**
* Pagination ...
0
votes
1answer
38 views
Modifying Page-Links <!--nextpage--> format
I'm developing a mobile theme and need to change the format of posts that are using the tag.
Can I add something to functions.php to change the format?
Ideally i'd like to make each page a ...
0
votes
2answers
1k views
paginate_links() don't properly work in search.php?
I'm using this in my search.php template …
<div class="pagination">
<?php echo get_pagination_links(); ?>
</div>
And this is the function …
function get_pagination_links() {
...
2
votes
2answers
130 views
Find first image on paginated post for Pinterest
I've been looking for days, yet can't find a good answer. Perhaps the SE crowd can be of assistance. Any help is much appreciated.
I am using a custom-coded pinterest button included on posts that ...
0
votes
1answer
94 views
Custom Query Not Paginating
I have a site that uses a custom query to filter posts:
<?php //Search Region table to retrieve array of country names
$regionresult = mysql_query("SELECT * FROM gallery_regions WHERE ...
0
votes
1answer
200 views
Replacing global wp_query
I have a site that uses a custom query to search for posts by country.
The search results come back fine, but the pagination at the bottom reflects the total number of posts in the site, instead of ...
0
votes
3answers
544 views
Generating rel=prev and rel=next only on wordpress categories
I was trying to remove the rel=prev and rel=next tags from my website as my SEO gut suggested. I found those functions which perfectly do the magic:
remove_action('wp_head', 'start_post_rel_link', ...
0
votes
2answers
1k views
Pagination Not Working (pages duplicating content)
My pagination pages echo out the same content on every page.
Page one is queried to show two posts, which it shows up correctly.
Page two shows the exact same two posts as page one does.
Here is my ...
0
votes
2answers
2k views
Post Pagination Showing Same Posts Every Page
So I have this blog that filters by category Then by city. Somewhere while creating the filtration I broke the pagination which seemed to work fine earlier. It doesn't work on my homepage where it ...
0
votes
2answers
844 views
Making a Killer wp_link_pages
I am trying to achieve a similar look to the image below, a working example can be found here: http://www.menshealth.com/celebrity-fitness/mark-wahlberg-fighter-workout
The needed code must do the ...
2
votes
1answer
459 views
How to paginate the get_users function?
Im using the get_users function to show a custom list of users on the site. The only issue Im having a problem figuring out now is how to paginate the result.
This is a sample of the function that Im ...
0
votes
1answer
430 views
Where to call my pagination function?
I have just been following this tutorial - http://www.lateralcode.com/wordpress-pagination/
I have written that function in my functions.php file and taken numerous notes on how it works.
The ...
0
votes
4answers
3k views
How to style current page number (wp_link_pages)?
When a post is split on more pages TwentyTen theme use the native function wp_link_pages to display a navigation page bar at the end of post.
I am trying to style those elements for my theme, but ...
0
votes
1answer
186 views
If paginated comments don't span to a second page, how do I hide the div wrapper?
I have a div wrapper around my comments pagination. I have the comments set to paginate in the Wordpress admin at 10 comments per page. I want to hide the div wrapper if there are less than 10 ...