Starting with widgets: Hello World doesn’t work
-
Hi,
I have taken the widgets documentation and created a widget based on the instructions. I simply cut and pasted the hello world example off the page and into a file (adding the proper php code start and endings) and nothing happens. No widget show s up in the admin nor in the sidebar. What am I doing wrong? Here is the code:
<?php
function widget_1($args) {
extract($args);
?>
<?php echo $before_widget; ?>
<?php echo $before_title . ‘My Unique Widget’ . $after_title; ?>
Hello, World!
<?php echo $after_widget; ?>
<?php
}
register_sidebar_widget(‘My Unique Widget’, ‘widget_1’);
?>
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Starting with widgets: Hello World doesn’t work’ is closed to new replies.