Grow your CSS skills. Land your dream job.

WordPress categories

  • # May 11, 2011 at 1:51 pm

    Is it possible within a single blog to let non signed in viewers read only one category and to be obliged to sign in to read the other categories?

    # May 12, 2011 at 1:24 pm

    Absolutely. The easiest way (which may or may not be directly applicable to what you need to do) is to include the restricted categories in a loop that’s nested in the is_user_logged_in function.

    codex.wordpress.org/Function_Reference/is_user_logged_in

    There are various plug-ins that will do this as well, more or less.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".