WordPress.org

Forums

User Submitted Posts
[resolved] How to add a login only or anonymous posting functionality (2 posts)

  1. saurabhchavan91
    Member
    Posted 12 months ago #

    Hi,
    Thank you for developing such an amazing plugin.
    I am using it for my blog and it works like a charm.

    I was wondering if it's possible to allow users to register and post or post anonymously from the front end.
    I would be greatful if you could help me on How to add a login only or anonymous posting functionality in it.

    Thanks

    https://wordpress.org/plugins/user-submitted-posts/

  2. Jeff Starr
    Member
    Plugin Author

    Posted 9 months ago #

    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.

Reply

You must log in to post.

About this Plugin

  • User Submitted Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic