WordPress.org

Ready to get started?Download WordPress

Forums

Recent posts, recent comment links? (4 posts)

  1. joshbickford
    Member
    Posted 6 years ago #

    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 "

    ";

    ?>
    </div>

    What is the link I'm supposed to use to make this box work correctly?
    Link:
    http://downtowndesmoinesblog.com

    Thanks much!
    Josh

  2. joshbickford
    Member
    Posted 6 years ago #

    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>
  3. joshbickford
    Member
    Posted 5 years ago #

    Anyone?

  4. erikreagan
    Member
    Posted 5 years ago #

    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/
        ../                ../       ../               ../

Topic Closed

This topic has been closed to new replies.

About this Topic