Thread Starter
zaqedc
(@zaqedc)
Checked out sidebar.php again. It is html with the php function wp_get_categories inside it. That’s all that’s there. On my test site this displays a small list of links on the top right hand side below the header.
Must I add something to this to make the widget display?
Thread Starter
zaqedc
(@zaqedc)
Here is the content of the sidebar.php file:
<div id="sidebar">
<h2>Menu: </h2>
<?php wp_list_categories('title_li&exclude=1,7'); ?>
<li><a href="/?page_id=219">Contact</a></li>
</div>
Is there a function or means of inserting a widget for an installed plugin in code? Would it have to remain inside the div tags or be placed seperately?
Thread Starter
zaqedc
(@zaqedc)
Bah! It turned out to be so painfully easy that I am ashamed of myself:
<div id="sidebar">
<h2>Menu: </h2>
<?php wp_list_categories('title_li&exclude=1,7'); ?>
<li><a href="/?page_id=219">Contact</a></li>
<br>
<?php dynamic_sidebar('name or id of sidebar containing widget'); ?>
</div>