Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1441311

    Hi,

    I’m currently in the process of migrating our old website onto a new website that’s developed with Enfold. On our old website, we had a few custom post types. I’ve created these post types on the new website using “Custom Post Type UI” and migrated all posts from the old site using the WP import/export tool.

    I want to display these posts in masonry on my new site. I’ve followed this topic link to do so. However, even though I’ve put and customized the snippet in my functions.php file and created a custom taxonomy for the post type, when I select this taxonomy from “Display entries from: Category: Case studies,” it doesn’t display any posts in my masonry, even though the custom post type “Case studies” has a few posts already added.

    What can be the problem? Am I missing something or did something change since the linked post?

    Thanks in advance.

    #1441351

    what version of Enfold you are running?
    there is more support on cpt in the newest version

    Have you also defined a custom taxonomy for your CPT?
    Do you use a plugin to register the CPT?

    #1441382

    Hi,

    Thank you for the inquiry.

    Please provide the site URL and login details in the private field so that we can check it properly. Did you add the avf_alb_supported_post_types filter in the functions.php file?

    when I select this taxonomy from “Display entries from: Category: Case studies,” it doesn’t display any posts in my masonry

    Did you create a custom taxonomy, or did you use the default post category?

    Best regards,
    Ismael

    #1441410

    I’m using enfold 5.6.12. Yes i defined a custom taxonomy using plugin called “Custom Post Types UI”

    #1441412

    Yes, I added this filter. I created custom taxonomy using CPT UI.

    #1442031

    Hi,

    Thank you for the info.

    The site is not loading on our end for some reason. Did you install a security plugin? Please disable the security plugin temporarily, upgrade the theme to version 5.7, then temporarily disable the Enfold > Performance > File Compression settings. We’ll try to check the site again afterwards.

    Best regards,
    Ismael

    #1442138

    I deactivated security plugin and file compression. I’m unable to update the plugin right now i will be able to do so on monday. I hope it;s not a big issue.

    #1442438

    Hi,
    I did some digging on my own and revisited the link I attached earlier. Adding 'taxonomies' => array( 'category' ), fixed it, I’m not sure why i skipped over it earlier. Thanks for all the help
    Best regards

    #1442458

    Hi,

    Thanks for the update. Please let us know if you should need any further help on the topic, or if we can close it.

    Best regards,
    Rikard

    #1442543

    It can be closed. Thanks again

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Custom post type in masonry’ is closed to new replies.