WordPress.org

Ready to get started?Download WordPress

Forums

WP-Members
[resolved] Putting New Users Registeration Form to posts (7 posts)

  1. use412
    Member
    Posted 2 years ago #

    Hi

    Is it possible to put this form to posts?

    http://wordpress.org/extend/plugins/wp-members/

  2. Chad Butler
    Member
    Plugin Author

    Posted 2 years ago #

    That is the default way the plugin works.

  3. use412
    Member
    Posted 2 years ago #

    Thanks for answering.I didnt mean when someone clicks on a post.I want to embed this form to a post.

  4. Chad Butler
    Member
    Plugin Author

    Posted 2 years ago #

    Yes - the registration form can be put into a post or page using the shortcode [wp-members page="register"]

  5. use412
    Member
    Posted 2 years ago #

    I put the code to three of my posts but there were on form in first post two in second and three in third.How can i fix this?

  6. Chad Butler
    Member
    Plugin Author

    Posted 2 years ago #

    If you are blocking posts, the registration form is already going to be generated on the page. If you have other shortcodes in the post or you have other plugin that filters $content, then it will probably get generated more than once as well.

    If you are getting this type of behavior, it is generally because you are working outside the intended use of that particular shortcode. However, there is a possible fix.

    In wp-members-core.php, go to the beginning of the function wpmem_do_sc_pages. The first line in that function globalizes some variables:

    global $wpmem_regchk, $wpmem_themsg, $wpmem_a, $content;

    Take out $content so that you are left with:

    global $wpmem_regchk, $wpmem_themsg, $wpmem_a;

    That should solve your problem.

  7. use412
    Member
    Posted 2 years ago #

    It works perfect now.Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.