WordPress.org

Forums

Restrict Categories
How detect if a post is rectricted ? (1 post)

  1. phil_poitiers
    Member
    Posted 11 months ago #

    To ay I use this code to display the log form in my article

    <?php
    if (! is_user_logged_in() ) {
    wp_login_form();
    }
    ?>

    but the form is always display.
    How can I do to displayt it only when the article is restricted ?

    Thanks

    https://wordpress.org/plugins/restrict-categories/

Reply

You must log in to post.

About this Plugin

  • Restrict Categories
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

  • RSS feed for this topic
  • Started 11 months ago by phil_poitiers
  • This topic is not resolved
  • WordPress version: 3.9.1

Tags

No tags yet.