Support » Fixing WordPress » Recent posts, recent comment links?

  • I have just installed a new theme and I have a box in my sidebar that shows recent posts, comments and a tag cloud. Here’s my problem. I need to replace # in the coding with the proper link. What’s the link to show these things?

    Here’s the code:
    <div id=”changebox”>

    <ul id=”changebox-header”>
    <li class=”active” id=”change-posts” >Recent posts
    <li id=”change-comments” >Recent comments
    <li id=”change-tag”>Tag cloud

    <div id=”changebox-content”>
    <?php
    echo ”

      “;
      $lastposts = get_posts(‘numberposts=7&orderby=post_date’);
      foreach($lastposts as $post) :
      setup_postdata($post);
      ?>
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter joshbickford

    (@joshbickford)

    Arghh. Let me try this again. The links needed would be to pull up the recent posts, recent comments etc. from what I have recently posted.

    <div id="changebox">
    
    <ul id="changebox-header">
     <li class="active" id="change-posts" ><a href="#">Recent posts</a></li>
     <li id="change-comments" ><a href="#">Recent comments</a></li>
     <li id="change-tag"><a  href="#">Tag cloud</a></li>
    </ul>
    
    <div id="changebox-content">
    <?php
     echo "<ul>";
      $lastposts = get_posts('numberposts=7&orderby=post_date');
      foreach($lastposts as $post) :
        setup_postdata($post);
    	  ?>
    	 <li><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></li>
    <?php endforeach;
    echo "</ul>"; 
    
    ?>
    </div>
    Thread Starter joshbickford

    (@joshbickford)

    Anyone?

    I don’t know if this is correct but it looks like there’s an error in calling your config file
    Warning: main(../../../wp-config.php) [function.main]: failed to open stream: No such file or directory in /home/joshbick/public_html/downtowndesmoinesblog/wp-content/themes/magazinestyle-2289/magazinestyle/get_data.php on line 3
    If get_data.php is in
    /downtowndesmoinesblog/wp-content/themes/magazinestyle-2289/magazinestyle/
    and wp-config is under the root then you may need an additional “../”

    /downtowndesmoinesblog/wp-content/themes/magazinestyle-2289/magazinestyle/
        ../                ../       ../               ../
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Recent posts, recent comment links?’ is closed to new replies.