• Greetings ??

    I have attempted to install the recent posts plugin, however I cannot get it to show up.The plugin came with no detailed instructions, just the php file and the comment to “write this to show the LAST POST =>
    you can replace 8 with any number you want to show the posts
    “.

    I attempted to add several different codes I saw posted here but nothing work.

    Any help in getting this plugin to work would be most appreciated.

    Btw, yes I did activate in the admin area and below are several different codes I tried to use in the sidepar to no avail.
    ————————
    LAST POST =>
    ————————-

    • Recently…
      <?php if (function_exists(‘get_recent_posts’)) get_recent_posts(); ?>

    —————————-

    • Recently…
      <?php mdv_recent_posts(); ?>
Viewing 4 replies - 1 through 4 (of 4 total)
  • Well, I’m not familiar with that particular plugin, but if you are simply looking to list by title with a link to recent posts for your side bar this bit of code would suffice
    <h3><?php _e('Recent Posts'); ?></h3>
    <ul>
    <?php
    $posts = get_posts('numberposts=5');
    foreach($posts as $post) :
    setup_postdata($post);
    ?>
    <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
    <?php endforeach; ?>
    </ul>

    Obviously you can alter numberposts to what ever you want, and the <h3> tags can be changed to <h2> or what ever your sidebar uses
    EDIToops, missed a line when I copied and pasted…

    <?php if (function_exists('mdv_recent_posts')) mdv_recent_posts(); ?>

    The above will work if you downloaded the file from, or it mentions, mtdewvirus.com

    Don’t worry about changing numbers until it works ??

    miklb: I just tried your code and it works great. I am using it on a sidebar with an address like this ‘www.mysite.com/directory’. If I wanted to take those same posts and publish them on a sidebar of my main site at ‘www.mysite.com’ how do I call that (I am currently using a plugin to do this but having trouble with the css so think your solution would be much better?)

    Many thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Sad Newbie In Need Of Help’ is closed to new replies.