• Hi there,
    maybe I’m just too stupid to write a proper Google query, but is there a plugin that would allow me to show links to the last three posts of a certain category in a sidebar?
    The thing is: I’m publishing songs I’ve written in my blog, and would like tohave a “last three songs releases” list on my navigation. These should direct the user to the permalink pages of the corresponding posts. I’m pretty sure this is easy for php cracks… ??
    Thx & greetings from Germany,
    Bjoern

Viewing 5 replies - 1 through 5 (of 5 total)
  • It’s a bit messy, but this seems to work….

    $staticPosts = get_posts("numberposts=100&category=-1&orderby=post_date_gmt&order=ASC");
    if ($staticPosts) : foreach ($staticPosts as $post) : start_wp();
    _e('


    • the_permalink();
      _e(stripslashes('" title="');
      _e(stripslashes($post->post_title).'">');
      _e(stripslashes($post->post_title));
      _e("
    • \n");
      endforeach; else:_e(" "); endif;

      Change the category # and the numberposts.
      It’s a hacked up version of something I do in a plugin, so I’m not 100% guaranteeing that it will work, but it should be close enough to get you there.
      TG

    I’m sorry to say your hack its pretty lame.

    That’s not very nice

    I think it meant to say “I’m pretty lame to say your hack is, sorry.” ??

    Yes, the CG-Samecat plugin gives you just that — the ability to output some quick links to recent posts in a particular category.
    It’s part of the CG-PowerPack.
    -d

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Plug in to list last posts of a certain category’ is closed to new replies.