Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • Hi Josue, I have this working fine:

    add_theme_support( 'add_avia_builder_post_type_option' );
    add_theme_support( 'avia_template_builder_custom_post_type_grid' );

    But I want to insert Portfolio Grid component to display Courses created with Woo’s Sensei.

    Course Custom Post Type does not show in the list of available custom types.

    How can I fix it ? Thanks.

    Thank for your reply Josue,

    I’d also like to add a select box into the component to be able to choose the parent page among all pages (not only the page the component is inserting into).

    I’ve been playing with the class

    avia_sc_portfolio in the file config-templatebuilder/avia-shortcodes/portfolio.php

    adding this code around line 213:

    $pages = array(
    	 "name"    => __("Parent page", 'avia_framework' ),
    	 "desc"    => __("Select the parent page", 'avia_framework' ),
    	 "id"      => "post_parent",
    	"type"    => "linkpicker", 
    	 "fetchTMPL"	=> true,
    	 "subtype" => array(
    		__('This page', 'avia_framework' ) =>'',
    		__('Single Entry', 'avia_framework' ) =>'single'
    	),
    	  "std" 	=> "",
     );
    array_unshift($this->elements, $element, $pages);

    This snippet has allowed me to add a select box in the visual component to dinamically select the parent page. But I don’t know how use this new field to filter the pages displayed.

    The question is, how to make it working, and how to do it in the child theme so we can upgrade ENFOLD without losing modifications?

    Thanks in advance.

    This works great:

    add_theme_support('add_avia_builder_post_type_option');

    But I want use the Portfolio Grid component with pages (post_type=page), and to show only the subpages of the page Im adding the portfolio grid. Only direct descendants.

    Is it possible ?

    Thanks.

Viewing 3 posts - 1 through 3 (of 3 total)