Tagged: Custom Post Type, custom taxonomy, enfold
-
AuthorPosts
-
August 20, 2018 at 3:59 pm #999425
I have created a Custom Post Type and Custom Taxonomy and have a handful of entries. But, I can’t get the Custom Post Type to show up as an option in the Magazine element (or any other) as an option. In looking at other posts it seems like something might needed to be added to the function.php page, but I also can’t tell if that is just for older versions.
Can you help with any settings I might need to change?
Thank you so much!
August 20, 2018 at 4:09 pm #999446Hey TeachBeyond,
Please add this code to the child theme functions.php:
add_theme_support('avia_template_builder_custom_post_type_grid'); add_theme_support('add_avia_builder_post_type_option');
Afterwards you can select the post type for portfolio and masonry grid elements. The masonry element does not support such an option at the moment but I’ll look into it – maybe we can add it with the next update.
Best regards,
DudeAugust 20, 2018 at 4:19 pm #999455Thank you so much for the fast reply. I just added the code and I get more options but I still don’t see the Taxonomy or Post Type I had created.
Here are the settings for the taxonomy:
Here are the settings for the Post Type:
Thank you for your help!
August 20, 2018 at 4:21 pm #999458Hi,
I created a modified magazine.php and you can now select custom post types for this element too. You can download the modified code here: https://pastebin.com/raw/2jduXmy1 . Save it as magazine.php and upload it to the wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/magazine folder (overwrite the old file). You also need to add the code I posted in my last reply to the child theme functions.php.
Best regards,
DudeAugust 20, 2018 at 4:33 pm #999472Hi!
Did you try to tick the “Public” checkbox?Regards,
PeterAugust 20, 2018 at 5:19 pm #999506You are awesome! Thank you so much for your help!
Everything you said worked great! Thanks for even writing custom code for the magazine element.
August 20, 2018 at 6:18 pm #999528Hi,
Glad I could help you. The modified magazine.php should be part of the next theme update.
Best regards,
Dude -
AuthorPosts
- You must be logged in to reply to this topic.