addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwchatcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscrosseditemptyheartexportfacebookfolderfullheartglobegmailgoogleimageimagesinstagramlinklocation-pinmagnifying-glassmailminusmoremuplabelShape 3 + Rectangle 1outlookpersonplusprice-ribbonImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruseryahoo

Arizona WordPress Group Message Board › Help with Next/Previous Page links with multiple taxonomies

Help with Next/Previous Page links with multiple taxonomies

A former member
Post #: 56
I'm working on a site with a custom post type (Art Gallery) and with multiple taxonomies (Artist, Gallery Categories, etc.).

I've created archive template pages for the custom taxonomies so that someone can pull up a list of all of the art by a certain artist or in gallery category (e.g. portraits or architecture). That all works great.

My problem is when someone clicks on one of the results from a given taxonomy archive page, they aren't able to go next art page from the taxonomy archive page.

To clarify, if the person clicks on the category for Architecture art, it pulls up thumbnail links to all of the art that has been assigned as architecture. Let's say the first example is a painting of a cathedral and then next one is a photo of a skyscraper and the third one is a drawing of a house. I want someone to be able to click on the page for the skyscraper and there will be a Previous link to the page for the cathedral and a Next link to the page for the house drawing.

Does this make sense? The site is on my testing server at­ if that helps.

I would appreciate your help on this. Thanks!

Peace out,
Chuck R.
San Francisco, CA
Post #: 82
I've never archived cpt's like that really but it's an issue WP has.

I was thinking wp_query with paged attributes could work.

Check these links:­
Jerry C.
Scottsdale, AZ
Post #: 32
I fought with this and my site is much simpler, so please make sure to post your results. I just increased the listed posts to 100 in the loop since not many went over 10 and went on down the road.

However, in looking at the site real quick I would think that you need to make the wp_query global in some way. WP needs to remember the results of the custom query for the custom post type when it goes to the single page so that when you press next it knows which permalink to go to that was next in the query. Maybe even consider throwing the links into an array variable so that you can reference it and step through it and make that global and not even worry about their is_paged and built in functions? Those seemed to be tied alot around testing whether or not it's a paged view before dynamically figuring out the display order.

Certainly not a solution, but maybe some ideas will help you apply what you've been reading and pouring over.
Powered by mvnForum

Our Sponsors

  • Gangplank

    Thank you to Gangplank for allowing us to use their meeting space.

  • WP Engine

    Premium Managed WordPress Hosting

  • Headway Themes

    Thank you to Headway Themes for assistance with meeting space

  • Skyhook Internet Marketing

    Special thanks to Skyhook for sponsoring the AZ WordPress Birthday Party

  • Rock It Boot Camp

    Technology-based training programs to meet the needs of employers.

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy