Tagged: custom sidebar, sidebar
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.
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
I would like to see this as the last solution. Any explanation why a “normal” archive-fag.php wont work?