Clayton11
Member
Posted 2 years ago #
I'm using WP Version 2.9.1
I've installed the plugin, created a widget and entered the following string into my template <!--my_plugin_name-->. Of course the simple text that exists in my widget does not appear. Can anyone explain to me what I'm doing wrong? Any help would be appreciated.
Chris
http://wordpress.org/extend/plugins/mycustomwidget/
janekniefeldt
Member
Posted 2 years ago #
Hi Chris.
If you want to add a widget to the sidebar you should use the standard method provided in wordpress (Go to Appearance --> Widgets and add the widget to the sidebar manually).
If you want the widget to show up in a theme you created by yourself (so that the widget should be a part of the theme) you should add the following statement into the coding of your sidebar:
<?php echo apply_filters('the_content', '<!--MyFirstWidget-->'); ?>
Adding <!--my_plugin_name--> only works if you post this into a posting.