Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #431552

    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!

    #432443

    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

    #432477
    This reply has been marked as private.
    #434928

    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

    #434942
    This reply has been marked as private.
    #434960

    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

    #435480

    Close ticket.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Enfold: Using CPT wanting to show related (tag) content’ is closed to new replies.