Tagged: CPT, Custom Post Type, enfold, Tags
Normally, related posts will show if two posts have the same or related tags. Will this work with Custom Post Types too? If so – how do I get it to work? I’m using WP-Types and when assigning the same tag to two different posts – no related content is displaying.
I’ve used this to make sure my CPTs are recognized by Enfold:
https://gist.github.com/josueochoa/a6658b7b3d268d81f9a3
What am I missing?
Thanks for your help!
Hi,
Can you please create us a WordPress administrator account? post it here as a private reply (FTP access would be helpful too in case a fatal error occurs).
Regards,
Josue
Hey!
Related Posts are not showing because you’re using ALB with them, i’ve created a custom template-builder.php in your child theme and added this line after $content
:
get_template_part( 'includes/related-posts');
You can see it working here, i’ve assigned a test Tag called “test_tag” to those two posts.
Regards,
Josue
Hey!
ALB stands for Advanced Layout Builder, when you enable that on any type of post the template-builder.php template is loaded instead of the default singular template (in case of a custom post type would be single-slug.php, fallbacks to single.php).
Best regards,
Josue
Close ticket.