Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1486538

    Hi : ) I need to enable parent-child hierarchy for portfolio entries. I tried using plugins like custom post type UI but they seem to be conflicting with the already existing Enfold portfolio entry hierarchy.

    How do I setup the portfolio items entries, so that the entries can have the parent-child hierarchy option, the same as it is for a page to have a parent-child hierarchy with another page?

    #1486563

    Hey envisageiam,

    Thank you for the inquiry.

    You can use the avf_portfolio_cpt_args filter to make the portfolio post type hierarchical. You will also find the full post type registration in the enfold/includes/admin/register-portfolio.php file.

    function avf_portfolio_cpt_args_mod( $args ) {
        $args['hierarchical'] = true;
    
        return $args;
    }
    add_filter( 'avf_portfolio_cpt_args', 'avf_portfolio_cpt_args_mod' );
    

    The default portfolio templates don’t support this out of the box, so you may need to customize them if needed.

    Best regards,
    Ismael

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