• Resolved bash88

    (@bash88)


    Hi,

    I’m trying to use the folders taxonomy created by the plugin to display certain templates with display conditions in Elementor Pro.

    The taxonomy doesn’t show up in Elementor because it is created with ‘public’ => false in /lib/class-wicked-folders.php.

    When I change public to true in the plugin code it works. The taxonomy shows up and I can use it to create rules to display templates in Elementor.

    Is there any specific reason the taxonomy is created with public ‘public’ => false? Could true be the default value when creating the taxonomies in the plugin? Or could you maybe make public a setting in the plugin?

    Regards,
    Bas

Viewing 1 replies (of 1 total)
  • Plugin Author wickedplugins

    (@wickedplugins)

    Hi @bash88,

    We have it set to false to prevent pages on the front-end being available for the folder terms.

    We’ll definitely consider adding this as an option. In the meantime though, you can also make the taxonomy public by adding the following code snippet to your theme’s functions.php file and changing the taxonomy name:

    add_filter( 'register_taxonomy_args', 'custom_register_taxonomy_args', 10, 3 );
    
    function custom_register_taxonomy_args( $args, $taxonomy, $object_type ) {
    	if ( 'wf_page_folders' == $taxonomy ) {
    		$args['public'] = true;
    	}
    
    	return $args;
    }

    I hope this helps! I’m going to mark this as resolved but if you still need help or have questions, feel free to add additional comments.

Viewing 1 replies (of 1 total)
  • The topic ‘Use Wicked Folders with Elementor Pro display conditions’ is closed to new replies.