Forums

IF user has posted X comments THEN do something (3 posts)

  1. perthmetro
    Member
    Posted 1 month ago #

    IF registered user has posted X comments THEN do something ELSE do this

    I have this nifty piece of code that does this

    IF user is <strong>Logged-in</strong> THEN 'do something' ELSE 'do this'
    <?php if (is_user_logged_in()): ?>
    <p>DO SOMETHING</p>
    <?php else: ?>
    <p>DO THIS</p>
    <?php endif; ?>

    But I'd like to know how to adapt this so that the DO SOMETHING also has a condition that the user must have posted at least X comments.

    Thanks

  2. perthmetro
    Member
    Posted 1 month ago #

    I've searched this forum and googled it to death but haven't found anything to help me... any help appreciated :)

  3. perthmetro
    Member
    Posted 3 weeks ago #

    bump

Reply

You must log in to post.

About this Topic