WordPress.org

Forums

Protect Old Posts (5 posts)

  1. Matt Mullenweg
    Troublemaker
    Posted 10 years ago #

    I wrote a really simple plugin for a friend that password-protects every post but the latest one. More information here:
    http://dev.wp-plugins.org/wiki/ProtectOld

  2. kitty
    Member
    Posted 10 years ago #

    Is it possible to change it so it shows more than just the latest post. Let's say like last 50 or something ?

  3. RustIndy
    Member
    Posted 10 years ago #

    It looks like you can just modify the line above the query (the $one line) to change the number of unprotected posts. Changing the 1 to 50 (for example) might do it.

    Haven't tried though. I'm not very familiar with MySQL yet, so I'm not sure if the effect would be what I'm thinking it is.

  4. kitty
    Member
    Posted 10 years ago #

    I thought of that but I'm not sure if that's enough. I would think that if it's that easy allusion would have said "x latest one" rather than "the latest one".

    But maybe it's just that simple ;)

  5. kitty
    Member
    Posted 10 years ago #

    Hey cool I found one that does what I want except I would like to be able to use the view level plugin with it so the users registered on my blog can view the posts when logged in, instead of having all the posts turned from publish to private so noone can see it :(

    The plugin I found: http://wiki.wordpress.org/?pagename=AutoShutOffPosts&PHPSESSID=99f492e7edb4b2d1451c4447d508b372

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.