This topic has 1 reply, 2 voices, and was last updated 11 years by SQadmin.

  • Author
  • #2498
     mcgreggor
    Participant

    Hi,

    The members on my site are allowed to create a number of posts. I’m looking for a way to hide the posts when their membership expires. Can this be accomplished?

    The easiest way I can think of would be some conditional logic like this:

    COPY CODE
    
    <?php
    if (author = paid_member) {
    // show the loop with the author's posts
    } else {
    // show nothing
    }
    ?>
    

    Could you point me in the right direction?

    #2533
     SQadmin
    Keymaster

    Hi, You could change the index.php, search.php to be something like this:




    That will check if the author of the post has membership and if it does it will show the post

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?