Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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!

    #999446

    Hey 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,
    Dude

    #999455

    Thank 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:
    Taxonomy Settings

    Here are the settings for the Post Type:
    Post Type Settings
    Post Type Settings

    Thank you for your help!

    #999458

    Hi,

    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,
    Dude

    #999472

    Hi!
    Did you try to tick the “Public” checkbox?

    Regards,
    Peter

    #999506

    You are awesome! Thank you so much for your help!

    Everything you said worked great! Thanks for even writing custom code for the magazine element.

    #999528

    Hi,

    Glad I could help you. The modified magazine.php should be part of the next theme update.

    Best regards,
    Dude

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.