Support » Plugin: WP-Members: Membership Framework » [Plugin: WP-Members] Putting New Users Registeration Form to posts

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    That is the default way the plugin works.

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

    Plugin Author Chad Butler

    (@cbutlerjr)

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

    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?

    Plugin Author Chad Butler

    (@cbutlerjr)

    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.

    It works perfect now.Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: WP-Members] Putting New Users Registeration Form to posts’ is closed to new replies.