Post Navigation on Custom Post Type + Layouts

Hi folks,

I’ve built a layout for a Custom Post Type (‘Vendors’) and everything is working dynamite—except for the Post Navigation. We get some funky outputs: https://farmerskitchenandbar.com/vendor/singing-hills-goat-dairy/ (pw in secure note to follow this). You’ll see that it’s pulling content… but seemingly at random.

I’ve tried adapting the code from this Stack Overflow post to get the WP adjacent posts to fire, but I’m guessing that the Post Navigation Element (and/or the Dynamic Content) are built on top of the WP core function? Or something?

Any ideas?

Thanks!
Luke

One more weird thing: it was working great a few weeks ago when I first set it up!

Hi Luke,

Thanks for reaching out.
It will be very difficult to recognize the reason behind your problem, without investigating the Layout and the Post type you have used in it. I would suggest you please provide login credentials for your site in a secure note to examine it further, including:

– WordPress Site URL & Login URL
– WordPress Admin username/password

To create a secure note, click the key icon underneath any of your posts.

Thanks

Sure thing. Credentials attached to this post:

Hi Luke,

I have investigated your website and found the issue you described. As you have told me that it was working a few days ago, there might be some different reasons behind your issue.

I would like to suggest troubleshoot the following common issue to help us to recognize the reason.

1.Plugin Conflict
2.Theme Update related issue
3.Child Theme Related issue
4.CSS/JS Customization
5.Disabling Cache

If you discover that an issue is coming from a custom code or 3rd party plugin, kindly consult with a developer or contact the plugin author. Please note that we do not provide support for custom codes and 3rd party plugins.
If none of the above helps, please copy your live site to a staging server so we could troubleshoot freely without breaking your live site.
And give us access in the secure note including:

– WordPress Site URL & Login URL
– WordPress Admin username/password

To create a secure note, click the key icon underneath any of your posts.

Thanks

Sounds good. I’ll do the toggling on/off tomorrow.

But there is no reason why we shouldn’t be able to do pagination with custom post types, correct?

Hi @lukefinsaas,

Yes, there’s no reason that shouldn’t be able to do pagination with your custom post type. For more information about our pagination, please check this doc.

Hope that helps.

Thank you.

Hey folks,

I tried disabling all plugins and child theme, theme is updated, and the cache is off.

So…

Any ideas? Credentials included again for convenience.

Hi Luke,

As explained in the previous post, we need to do extensive troubleshooting to recognize the cause behind the problem you are facing. That is why I asked you to create a Staging Server by copy your Live Server. It helps us to troubleshoot without affecting your Live site.
Please let us know once the Staging server is ready to access.

Thanks

Got it. Sorry I missed that.

Attached are credentials to the staging server!

Hi Luke,

After checking your website thoroughly I found that all post publish date is same and that is the reason behind your problem. While showing the Prev and Next it shows the Vendors based on the publish date as it is getting the same date for all it is creating the problem.

I went ahead and changed the publish date of the Vendors in the Staging server, and now the Navigation is working.

NOTE: You need to change or reset the publish date for the Live server, to get rid of this issue.

Thanks

OMG.

Of course. DUH.

Thanks @tristup. Apologies for such a dumb miss, lol.

Hi Luke,

Glad that we are able to help you.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.