Forums

Recent Posts (10 posts)

  1. clayH
    Member
    Posted 5 years ago #

    I used the hack from MtDewVirus to display Recent Posts, and it works well. However, if I save an entry as a draft, the Recent Posts script displays that entry, which, obviously, isn't desirable. Any ideas?

  2. mtdewvirus
    Member
    Posted 5 years ago #

    Whoops....that was an oversight on my part.
    I just updated the code.
    http://wiki.wordpress.org/index.php/Recent%20Posts

  3. Daisyhead
    Member
    Posted 5 years ago #

    Any idea how to use this so it will display the recent posts that have scrolled off the main blog page?
    Thanks,
    Daisyhead

  4. southerngal
    Member
    Posted 5 years ago #

    How would I use the code to skip private (protected by password) posts?

  5. Daisyhead
    Member
    Posted 5 years ago #

    Thank you so much for the help! I implemented it and it works like a dream! I am really loving WP!

  6. mtdewvirus
    Member
    Posted 5 years ago #

    SG,
    If you pass false for the 4th parameter, it will pull published posts that have a blank password. Doesn't matter if you are skipping posts or not, if the 4th parameter is false, password protected posts will not be pulled from the database. The only thing that has changed from the previous version of the hack is the added parameter, which allows for skipping.

  7. southerngal
    Member
    Posted 5 years ago #

    Thanks Nick, I will try that in the morning. :)

  8. mtdewvirus
    Member
    Posted 5 years ago #

    No problem...let me know how it works.

  9. southerngal
    Member
    Posted 5 years ago #

    Perfectly! :)
    Would that work on the most commented as well? I don't have anything in the parameters at all.

  10. mtdewvirus
    Member
    Posted 5 years ago #

    Shoot...I'm going to have to update the function on the most commented so that it only pulls published posts and has an option for password protected ones. I'll have it done at some point tonight.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.