Hi,
Yes you’ll need to add a second set of settings from the plugins settings. I assume for your paginated post you’re using the <!–nextpage–> tag. This will use different pagination selectors and therefore the settings you’re using on the front page won’t work.
In the plugin settings click Add New at the top and add the following selectors and it should work for you.
Posts Wrapper: .site-content
Post Wrapper: .post
Navigation Selector: .page-links
Next Selector: .page-links a
Also change the paging type to pagination.
Nice site btw. Brought back some memories.
Thanks
Hi. Thanks for replying and for your suggestions.
Unfortunately this didn’t work. The post still shows the list of page numbers at the bottom, but when I click page two it loads the next post instead of the next page in this post.
I think perhaps I’m trying to use the plugin wrong?
What I want is to replace the list of page numbers with something that can be seen easier. Ideally I’d like to have just two huge buttons at the bottom with ‘previous’ and ‘next’ but I can’t a plugin that provides that. I was trying to use your plugin to have the single ‘more’ button but it was a bit of a compromise.
I like the infinite loading on the home page though so I’m defo keeping the plugin 🙂
Can you help/advise me about about what I’m trying to achieve? I’m happy to pay for a working solution.
@thintin apologies for the delay on this. If you want to use a next and previous button only then things should be easy to get working. In your theme single.php you should using the following to create your internal page links.
$defaults = array(
'before' => '<div class="pagenav">',
'after' => '</div>',
'link_before' => '',
'link_after' => '',
'next_or_number' => 'next',
'separator' => ' ',
'nextpagelink' => __( 'Next Page' ),
'previouspagelink' => __( 'Previous Page' ),
'pagelink' => '%',
'echo' => 1
);
wp_link_pages( $defaults );
Some basic css would give you grey buttons
.pagenav a {
display: inline-block;
background-color: #A6A6A6;
color: #fff;
padding: 6px 10px;
min-width: 85px;
text-align: center;
border-radius: 5px;
text-decoration: none;
}
Finally the settings to add would be.
Posts Wrapper: .site-content
Post Wrapper: .post
Navigation Selector: .pagenav
Next Selector: .pagenav a
Hope that helps.
Thanks
Hi. Thanks for this 🙂 I’ve only coded in html and css so I’m not too sure about php yet. Where do I insert this in the single.php file? (the $default bit, I’m fine with the css 😉
It needs to go wherever you want the navigation to appear which based on your page will be at the end of the WordPress loop.
If you want to email your single.php over and I’ll add it in for you with some notes. hello@wordpress-ajax-pagination.com
Thanks
Marking resolved due to no reply in 3 weeks.