New template problems

  • Unknown's avatar

    Hi,

    Joomla user – trying to migrate to WordPress.

    Designing a theme from scratch.

    Managed to widget enable the theme – ! am trying to have 2 dynamic sidebars – carefully read various tutorials.

    Currently stuck here

    ‘Fatal error: Call to undefined function: get_sidebar2() in /home/sites/wrightplace.co.uk/public_html/wordpress/wp-content/themes/wp2/index.php on line 14’

    Line 14 in index reads ‘<?php get_sidebar2(); ?>’

    sidebar2.php reads
    ‘ <div id=”sidebar2″>
    <?ph if ( !function_exists(‘dynamic_sidebar’)
    || !dynamic_sidebar(‘sidebar2’) ) : ?>
    <?php endif; ?>
    </div>’

    functions.php reads
    <?php
    if ( function_exists(‘register_sidebar’) )
    register_sidebar(array(‘name’=>’sidebar1’,
    ‘before_widget’ => ”,
    ‘after_widget’ => ”,
    ‘before_title’ => ‘<h4>’,
    ‘after_title’ => ‘</h4>’,
    ));
    register_sidebar(array(‘name’=>’sidebar2’,
    ‘before_widget’ => ”,
    ‘after_widget’ => ”,
    ‘before_title’ => ‘<h4>’,
    ‘after_title’ => ‘</h4>’,
    ));
    ?>’

    Any ideas anyone, please/

    Development site (very early stages – still to add more PHP, obviously) – http://wrightplace.co.uk/wordpress/

    Cheers!

    Mike

  • Unknown's avatar

    For sidebar2.php read

    ‘ <div id=”sidebar2″>
    <?php if ( !function_exists(‘dynamic_sidebar’)
    || !dynamic_sidebar(‘sidebar2’) ) : ?>
    <?php endif; ?>
    </div>’

  • Unknown's avatar
  • The topic ‘New template problems’ is closed to new replies.