Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #853447

    Hi there, so I think the title says it all.
    I know I can create a template page file using taxonomy-XXX.php, but for a specific taxonomy, it would make my job easier to just create it using the enfold page builder.
    Is it possible?

    I was thinking that if all else fails, I just create what I need in the builder and copy the source code onto a template file.

    Thanks,
    Tom

    #853732

    Hey Tom,

    Please try this in your functions.php file:

    /**ADDS THE LAYOUT EDITOR TO CPT’s*/
    
    add_filter(‘avf_builder_boxes’, ‘avia_register_meta_boxes’, 10, 1); //Add meta boxes to custom post types
    function avia_register_meta_boxes($boxes)
    {
    if(!empty($boxes))
    {
    foreach($boxes as $key => $box)
    {
    $boxes[$key][‘page’][] = ‘people’;
    $boxes[$key][‘page’][] = ‘places’;
    $boxes[$key][‘page’][] = ‘events’;
    $boxes[$key][‘page’][] = ‘stories’;
    }
    }
    return $boxes;
    }

    Best regards,
    Rikard

    #853896

    Thanks but that didn’t work.
    I would need the builder not on a custom post type, but on the taxonomy associated with a custom post type.
    So as an example, let’s say my CPT is ‘newspaper’, and I have custom term called ‘genre’. I would want the builder on the ‘genre’ taxonomy page, which simply lists all the ‘newspaper’ posts by default.

    #855153

    Hi,

    Thank you for using Enfold.

    I’m sorry but that’s not possible. You have to edit the taxonomy term template files manually.

    // https://developer.wordpress.org/themes/basics/template-hierarchy/

    Look for the “Custom Taxonomies”.

    Best regards,
    Ismael

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