Dynamic Content with CPT

Hi there!

I’m trying to insert prev/next buttons on individual posts and tried to work with the dynamic content option in pro. But it’s not working if i insert {{dc:post:title post=“prev”}} for primary text and {{dc:post:permalink post=“prev”}} for Link.
It works fine for the featured image though.

It’s a Custom Post type set up with CPT UI. Do I get something wrong?
Thank you!

Hi @BuzzStory,

Thanks for reaching out.

I just tried it and seems to be working on my installation, Dynamic Content uses the function get_previous_post() and get_next_post(), which built-in to Wordpress. It’s not the dynamic content that decides what post to pick, but Wordpress itself. May I know what you’re expecting to see, like which title/permalink should be displayed?

And with custom post type, I think it’s not automatic the reason it fails. The prev/next which is Wordpress feature only picks the post from the group they belong to. For example, by default it will look into the group of Category taxonomy. Hence, will not really work with Custom Post type unless it uses the same Category Taxonomy.

Thanks!

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