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

    I have installed the plugin awesome support and the plugin FAQ. https://getawesomesupport.com/addons/faq/

    The FAQ creates a new custom post type witch is called faq. I want to show a custom sidebar when i view a category (archive) of tags. I have tried created a archive-faq.php and the instead og the get_sidebar() i added this:

    echo "<aside class='sidebar sidebar_".$sidebar." ".$sidebar_smartphone." ".avia_layout_class( 'sidebar', false )." units' ".avia_markup_helper(array('context' => 'sidebar', 'echo' => false)).">";
        	echo "<div class='inner_sidebar extralight-border'>";
    			dynamic_sidebar('test');
    	echo "</div>";
    echo "</div>";

    But the archive still show the page blog sidebar.

    #685228

    Hey weboholics!

    Please try using this plugin – https://wordpress.org/plugins/widget-logic/ and chose to display your widget only on that certain post type

    Best regards,
    Yigit

    #687360

    I would like to see this as the last solution. Any explanation why a “normal” archive-fag.php wont work?

    #687421

    Hi,

    Just to make sure that it is not a typo, did you name the file as “archive-fag.php” or is it “archive-faq.php”?

    Best regards,
    Yigit

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