-
AuthorPosts
-
April 29, 2024 at 3:35 pm #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.
April 29, 2024 at 9:03 pm #1441351what version of Enfold you are running?
there is more support on cpt in the newest versionHave you also defined a custom taxonomy for your CPT?
Do you use a plugin to register the CPT?April 30, 2024 at 6:26 am #1441382Hi,
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,
IsmaelApril 30, 2024 at 9:43 am #1441410I’m using enfold 5.6.12. Yes i defined a custom taxonomy using plugin called “Custom Post Types UI”
April 30, 2024 at 9:45 am #1441412Yes, I added this filter. I created custom taxonomy using CPT UI.
May 3, 2024 at 4:42 am #1442031Hi,
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,
IsmaelMay 3, 2024 at 12:05 pm #1442138I 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.
May 6, 2024 at 12:21 pm #1442438Hi,
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 regardsMay 6, 2024 at 5:49 pm #1442458Hi,
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,
RikardMay 7, 2024 at 11:32 am #1442543It can be closed. Thanks again
-
AuthorPosts
- The topic ‘Custom post type in masonry’ is closed to new replies.