Support » Plugin: User Submitted Posts » How to add a login only or anonymous posting functionality

Viewing 1 replies (of 1 total)
  • Plugin Author Jeff Starr

    (@specialk)

    It is basically a matter of adding the required conditional code to your theme template, for example:

    <?php if (is_user_logged_in()) {
    	// put the usp tag here
    } else {
    	// not logged in, do something else
    } ?>

    Just put that wherever you want to display the form and you should be good to go.

    Allowing anonymous posting is even easier, just add the template tag wherever in your theme and then check that the settings all make sense.

Viewing 1 replies (of 1 total)
  • The topic ‘How to add a login only or anonymous posting functionality’ is closed to new replies.