• Hi, tried searching but not sure exactly what this would be listed as..

    I’d like to put snippets from my blog on my index page, literally just the 5 most recent blog titles with 3 full stops after like ‘My Blog Comment…’ but my php knowledge isn’t great.. I assume I can just reference the sql database, but again I don’t know how to reference the 5 most recent additions.
    If anyone can help I’d appreciate it, I’m on wordpress 1.2 btw, not sure if this will hep or hinder me..

    thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • 1. Upgrade to the latest 1.5.2.
    2. You can use a recent posts plugin on any .php file that was made “WP aware” (meaning has a call at the top to the wp-blog-header.php of your blog)

    Thread Starter phobic

    (@phobic)

    Thanks for the reply – I’d rather not upgrade to be honest, wordpress 1.2 is already far in excess of what I actually need, and I can’t work with 1.5 in the way I need to.
    If there is a way to query the SQL database and just populate an unordered list, I’d rather do it that way..

    Thread Starter phobic

    (@phobic)

    okay, I figured out how to query the database and get the 5 most recent posts, and I even have them flowing into a

      . But they don’t have hyperlinks, and I can’t seem to get this bit right.

    my code is:

    echo ”

      {$row[‘post_title’]}

    “;

    which creates a list of 4 most recent posts, which I can then style with css. BUt I’d like to add a unicode character before each item, and 3 full stops after ‘…’ to denote more on click, and I need the relevant hyperlink on each item.

    Can anyone help pls?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘snippet on separate page?’ is closed to new replies.