• I’ve got a minor problem after upgrading to WordPress 2.1. The “Latest Entries” box I had in my sidebar doesnt work anymore.

    If anyone would be so kind to help me with the code i need to show latest entries (no matter category) in my sidebar I would be very thankful.

    Thanks in advance

Viewing 4 replies - 1 through 4 (of 4 total)
  • Since we have no idea what code is in your sidebar… it is difficult to say anything.

    It is known many themes, plugins, code lines do NOT work if they were not updated for the new (2.1) database structure.

    Thread Starter ronalds

    (@ronalds)

    Here’s my sidebar.php. Pretty simple stuff. Sorry I didn’t realize this was of importance.


    <link href="style.css" rel="stylesheet" type="text/css" />
    <div id="sidebar">
    <?php include('../firestats/php/firestats-hit.php')?>

      <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar() ) : else : ?>
      <!-- CATEGORIES -->
      <li class="sidebox">
      <h2>Categories</h2>
      <?php wp_list_cats('sort_column=name&hierarchical=0&optioncount=1'); ?>

    <!-- MOST POPULAR -->
    <li class="sidebox">
    <h2>Most Popular</h2>

      <?php akpc_most_popular(); ?>

    <!-- <?php wp_list_pages('title_li=Pages' ); ?> -->

    <!-- ARCHIVES -->
    <li class="sidebox">
    <h2>Archives</h2>

      <?php wp_get_archives('type=monthly'); ?>

    <!-- SITE META -->
    <li class="sidebox">
    <h2>User Panel</h2>

      <?php wp_register(); ?>

    • <?php wp_loginout(); ?>
    • <?php wp_meta(); ?>

    <?php endif; ?>

    </div><!-- end id:sidebar -->
    </div><!-- end id:content -->
    </div><!-- end id:container -->

    To be honest… I don’t see anything in this code that would display any “latest entries”.
    Which code is supposed to display latest posts?

    BTW, next time use a pastebin service to post code, e.g.
    https://wordpress.pastebin.ca

    Thread Starter ronalds

    (@ronalds)

    I used this one earlier to show my latest entries


    <!-- LATEST ENTRIES -->
    <h2><?php _e("Latest Entries"); ?></h2>
    <div class="sidebox">

      <?php
      foreach ($recentposts as $post) {
      if ($post->post_title == '')
      $post->post_title = sprintf(__('Post #%s'), $post->ID);
      echo "

    • ID)."'>";
      the_title();
      echo '
    • ';
      }
      ?>

    </div>
    <?php endif; ?>

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Latest entries problem’ is closed to new replies.