Skip Navigation

[Resolved] A little help with Previous/Next Post navigation for Custom Post Type

This support ticket is created 3 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 7 replies, has 2 voices.

Last updated by thoraldM 3 years, 2 months ago.

Assisted by: Minesh.

Author
Posts
#2168455

Tell us what you are trying to do?

I've switched to a new WP theme which is rather strictly blackboxed and the creator does not entertain customization inquiries so I'm left to my own devices trying to get it to play well with CPTs (it's designed for traditional WP content).

My main issue at the moment is how to get previous / next post links to display on each CPT post. I think I have an idea where the code should be changed but I have no idea what to do since I'm not a PHP programmer and the theme creator does not want to help with customizations.

If I shared the file that I think needs to be modified as well as the functions.php, would you guys be able to figure out a fix?

Is there any documentation that you are following?

No, the help doc that came with the WP theme isn't very helpful.

Is there a similar example that we can see?

hidden link

What is the link to your site?

hidden link

#2168491

I added this code to the WP template file, but I see no effect:

<?php echo do_shortcode("[wpv-post-next-link format="%%LINK%% »" link="Next post: %%TITLE%%"]"); ?>
<?php echo do_shortcode("[wpv-post-previous-link format="%%LINK%% »" link="Previous post: %%TITLE%%"]"); ?>

#2168493
CapturePrevNav.PNG

This is how the Next / Previous navigation should look at the bottom of the post. This is from a regular WP post type. The theme simply shows nothing if the post is a CPT.

#2168837

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can you please tell me on what post/page and where exactly you want to display the previous and next post link?

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2169331

Hi there,

The theme, as I said, is primarily designed by the creator for traditional WP elements (posts, pages), so the previous/next navigation at the end of each post works well - if you're dealing with WP posts. The previous/next navigation does not show up at all on any of the single post pages for any of the Custom Post Types I've registered using Toolset. This is where I need some help.

#2169965

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please tell me with what post types you want to display previous/next link and share admin access details so I can check what files offered by theme author.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2170151

Please, could you just point me to a step-by-step guide on how to create a View that will display links (with labels) to the previous post and the next post, relative to the post that is being viewed? I'm just going to plug this view into the post using a widget, rather than try to muck around with the theme template.

#2170449

.