+ Reply to Thread
Results 1 to 4 of 4

Thread: How to show Recent articles in sidebar 1

  1. #1
    ata.online is offline x10 Sophmore ata.online is an unknown quantity at this point
    Join Date
    Oct 2009
    Location
    England
    Posts
    159

    How to show Recent articles in sidebar 1

    Since yesterday, i have been trying to embed html code so that 'Recent Articles' is shown in sidebar 1:
    http://www.ataarticles.com/

    I referred to the sidebar html code shown at:
    http://articlesss.com/article-direct...rdpress-theme/

    but no joy there. Everytime i try to include it in sidebar 1, all the content disappears. I know there is a small code which is missing but not sure what it is exactly: When i try to embed the below code it does not show up at all.

    <?php } ?>
    </ul>
    </div>
    <?php } ?>

    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar 1') ) : ?>
    <h2>Recent Articles</h2>
    <?php
    $myposts = get_posts('numberposts=5');
    foreach($myposts as $post) : setup_postdata($post);
    ?>
    <div class="post">
    <h3><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
    <div class="postmetadata"><?php the_time('m.d.y') ?> @ <?php the_category(', ') ?></div>
    <div class="entry">
    <?php the_excerpt(); ?>
    </div>
    </div>
    <?php endforeach; ?>
    <?php endif; ?>

    </div><!-- end #l-sidebar -->

  2. #2
    cheezo's Avatar
    cheezo is offline x10 Sophmore cheezo is an unknown quantity at this point
    Join Date
    May 2010
    Posts
    175

    Re: How to show Recent articles in sidebar 1

    this is wordpress turned into a directory right?
    go to the dashboard as click widgets under the appearance and then select recent post. drag it to the sidebar. :D

  3. #3
    ata.online is offline x10 Sophmore ata.online is an unknown quantity at this point
    Join Date
    Oct 2009
    Location
    England
    Posts
    159

    Re: How to show Recent articles in sidebar 1

    Quote Originally Posted by cheezo View Post
    this is wordpress turned into a directory right?
    go to the dashboard as click widgets under the appearance and then select recent post. drag it to the sidebar. :D
    If only it was that easy. There is no widgets related to that. There is one 'Recent Articles' widgets which i just added to sidebar 1 yesterday. But the main recent articles seems to be linked under sidebar.php and not the widgets. I tried to bring it sidebar 1 in sidebar.php but didn't work.

    thanks.

  4. #4
    cheezo's Avatar
    cheezo is offline x10 Sophmore cheezo is an unknown quantity at this point
    Join Date
    May 2010
    Posts
    175

    Re: How to show Recent articles in sidebar 1

    see if there is recent posts. :D
    i'm sure wordpress has it.

+ Reply to Thread

Similar Threads

  1. Sidebar displaying wrong
    By reevesii2010 in forum Programming Help
    Replies: 5
    Last Post: 05-17-2010, 04:58 AM
  2. Rights to articles
    By chrysant in forum Free Hosting
    Replies: 1
    Last Post: 12-22-2009, 07:46 AM
  3. Contribute your articles
    By g1982b in forum Review My Site
    Replies: 2
    Last Post: 11-01-2009, 01:38 PM
  4. Need Articles for my website
    By aviansoul28 in forum Review My Site
    Replies: 0
    Last Post: 10-23-2009, 04:09 AM
  5. (off) Articles Or Slogans
    By apple19 in forum The Marketplace
    Replies: 17
    Last Post: 03-20-2006, 08:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers