Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Pagination not working #361

Closed
swthate opened this issue Jun 4, 2015 · 4 comments
Closed

Pagination not working #361

swthate opened this issue Jun 4, 2015 · 4 comments

Comments

@swthate
Copy link

swthate commented Jun 4, 2015

I have a custom post type and the pagination link display correctly, but nothing happens when they are clicked. When hovered, the status bar on the browser displays "localhost/page/2", I'm not sure how it's coming up with that url.

I read Issue 286 and was hoping it would fix it for me. I was using a custom query name, $loop, but changed all references of that to $wp_query as per 286.

Sadly, my paginate links are still unresponsive.

Any ideas?

@olefredrik
Copy link
Owner

Pagination should work out of the box. Not sure I understand your challenge? See the pagination at the bottom of this demo page: http://foundationpress.olefredrik.com/category/first-category/

@swthate
Copy link
Author

swthate commented Jun 17, 2015

Thank you for your reply.

I'll try to explain it a little better. Here's a gist of what I think is my relevant code: https://gist.github.com/swthate/edfb3eb373df6d4123a0

I haven't edited any of the original code dealing with pagination. On my archive page for the custom post type "veterans", the pagination links are displayed, but nothing happens when I click on them.

However, when I disable my "Search & Filter Pro" plugin, the behavior changes slightly. When that plugin is disabled, the url updates to ".../page/2", but the content on the page itself doesn't change. This Search & Filter Pro plugin handles the creation of AJAX powered searching and filtering based on some of my Advanced Custom Fields.

I must be missing something with my query, and/or this Search & Filter plugin is getting in the way somehow. I just can't spot it.

Many thanks!

Update: After doing some more digging, I'm thinking it's an issue with that plugin. I'll look into that and let you know what I find.

@swthate
Copy link
Author

swthate commented Jun 23, 2015

I got it fixed.

In the future, if anyone is using the Search & Filter plugin in conjunction with FoundationPress and is having pagination problems, the problem area might be with your "results container".

To solve this I added #search-filter-results-container (you can use whatever name you want) to my containing row class and used that in my "results container" option and all is well now :)

Here's my forum thread on the plugin's support form for reference, where I got the answer from the plugin author.

@swthate swthate closed this as completed Jun 23, 2015
@yajuvendra1990
Copy link

Is there anyway to customize next prev pagination to load more pagintaion

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants