Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • @scribu I tried posting in the code into the functions.php. However, it ended up disabling my blog b/c it caused an error in the functions file. Do you replace the “my-category-slug” only? Or do you change anything else? I think I may be implementing this code incorrectly in my functions.php file.

    this is my code:

    <?php
    if ( 
    
    function_exists('register_sidebar') ) {
        register_sidebar(array(
    		'name' => 'Wide Sidebar',
    		'before_widget' => '<div class="block %1$s %2$s">',
    		'after_widget' => '</div>',
    		'before_title' => '<h3 class="boxedin">',
    		'after_title' => '</h3>',
        ));
        register_sidebar(array(
    		'name' => 'Left Sidebar',
    		'before_widget' => '<div class="block %1$s %2$s">',
    		'after_widget' => '</div>',
    		'before_title' => '<h3 class="boxedin">',
    		'after_title' => '</h3>',
        ));
        register_sidebar(array(
    		'name' => 'Right Sidebar',
    		'before_widget' => '<div class="block %1$s %2$s">',
    		'after_widget' => '</div>',
    		'before_title' => '<h3 class="boxedin">',
    		'after_title' => '</h3>',
        ));
        register_sidebar(array(
    		'name' => 'Left Footbar',
    		'before_widget' => '<div class="block %1$s %2$s">',
    		'after_widget' => '</div>',
    		'before_title' => '<h3 class="boxedin">',
    		'after_title' => '</h3>',
        ));
        register_sidebar(array(
    		'name' => 'Mid Footbar',
    		'before_widget' => '<div class="block %1$s %2$s">',
    		'after_widget' => '</div>',
    		'before_title' => '<h3 class="boxedin">',
    		'after_title' => '</h3>',
        ));
        register_sidebar(array(
    		'name' => 'Right Footbar',
    		'before_widget' => '<div class="block %1$s %2$s">',
    		'after_widget' => '</div>',
    		'before_title' => '<h3 class="boxedin">',
    		'after_title' => '</h3>',
        ));
    }
    ?>

    This also works.

    <?php $prevPost = get_previous_post(true); $prevThumbnail = get_the_post_thumbnail($prevPost->ID, array(150,150) ); echo $nextthumbnail; ?><?php previous_post_link( '%link', $prevThumbnail ); ?>

    using it on the sidebar of for Celebrity is hotter

    it’s clickable too.

Viewing 2 replies - 1 through 2 (of 2 total)