@cestep
Please provide an email address so I can send a slightly updated version of the plugin which has debugging capabilities.
Thread Starter
cestep
(@cestep)
@cestep thanks. I’ll email it over tomorrow am for you. Please let me know when you’ve uploaded it and I’ll be able to view the output on the site.
The plug-in is exactly the same with a debug option which only shows the query that’s ran on the page load so won’t affect anything else.
Thread Starter
cestep
(@cestep)
Awesome. Thanks!
I’ll be using the dev stage site: https://eoctcc.wpengine.com/projects/mariposa-plaza/
I have noticed that on this page, it shows the correct title for prev/next post ID, but it links to the prev/next ID within the same category. This may help us solve the riddle.
Will let you know when the debugging version is installed.
@cestep Ive just sen the you the updated plugin.
Can you upload with via FTP and NOT the wordpress upload option inside wp admin (otherwise you’ll need to delete the old plugin and then reinstall)
When you’ve done this, go to the new DEBUG tab in the wp post nav settings and simply click the check box.
Visit a project page on the front end where you are using the nav and at the bottom a large purple box will appear showing you your settings for the plugin, under that will be the details of the post fetched according to your settings, and then under that will be the actual next and previous post according to a custom function. I just need to see this page so I can fathom out where its going wrong for you.
Thread Starter
cestep
(@cestep)
Here’s something interesting. When not using the shortcode, the prev/next titles and links are good. It’s only when I use the shortcode that the links are wrong. This page is currently using both methods. I’ve pasted the settings/details output on this page below.
https://eoctcc.wpengine.com/projects/mariposa-plaza/
WP Post Nav Debug
Current WP Post Nav Settings
Array
(
[wp_post_nav_post_types] => Array
(
[cpt_portfolio] => cpt_portfolio
)
[wp_post_nav_show_title] => Array
(
[Yes] => Yes
)
[wp_post_nav_excerpt_length] => 300
[wp_post_nav_fallback_image] => https://eoctcc.wpengine.com/wp-content/plugins/wp-post-nav/public/images/default_fallback.jpg
[wp_post_nav_nav_button_width] => 70
[wp_post_nav_nav_button_height] => 100
[wp_post_nav_background_color] => #ffffff
[wp_post_nav_open_background_color] => #8358b0
[wp_post_nav_heading_color] => #bc2f2f
[wp_post_nav_heading_size] => 20
[wp_post_nav_title_color] => #565656
[wp_post_nav_title_size] => 13
[wp_post_nav_category_color] => #ffffff
[wp_post_nav_category_size] => 13
[wp_post_nav_excerpt_color] => #ffffff
[wp_post_nav_excerpt_size] => 12
[wp_post_nav_debug] => Array
(
[Yes] => Yes
)
)
Previous Post According To Settings
Post ID: 1849
Post Title: Annadale Mode Shift
Post Date: 2021-04-07 11:47:22
Next Post According To Settings
Post ID: 1851
Post Title: Southwest Urban Forest Expansion
Post Date: 2021-04-07 11:47:32
Details Of The Current Post
Post ID: 1850
Post Title: Mariposa Plaza
Post Date: 2021-04-07 11:47:27
Post type: cpt_portfolio
Assigned Taxonomy: cpt_portfolio_group
Previous Post According To Current Post
Post ID: 1849
Post Title: Annadale Mode Shift
Post Date: 2021-04-07 11:47:22
Next Post According To Current Post
Post ID: 1851
Post Title: Southwest Urban Forest Expansion
Post Date: 2021-04-07 11:47:32`
@cestep
Oooh now we’re getting somewhere.
I don’t have computer access at present, but I will look at the shortcode as I think I now know the issue.
Leave it with me and I’ll let you know how I get on
@cestep Ive just emailed you a new version of the plugin.
Please upload via FTP and see if this fixes the issue. Ive tried it with a custom post type on my dev version and it seems to work perfectly with and without the floating nav on.
John
Thread Starter
cestep
(@cestep)
That did the trick! I’ve added the php shortcode to the single post php file and it is working on all of these custom post types perfectly. Thanks very much for helping work this out!
https://eoctcc.wpengine.com/projects/mariposa-plaza/ shows the correct previous and next, as do all the other posts.
Thank you again!!
Chris
@cestep
Brill, I’ll make the required updates to the repository.
Thanks for the patience.