WordPress.org

Ready to get started?Download WordPress

Forums

WP-Members
Passing 2 WP-Members fields (3 posts)

  1. HankFit247
    Member
    Posted 1 year ago #

    I have a page that I pull into my blog via PageView (http://wordpress.org/extend/plugins/pageview/). Within this page I call two javascript files that then populate {screenname} & {coachid}.

    I saw the Short Codes List, and created the following.

    {screenname} > [wp-members field="coach_name"]
    {coachid} > [wp-members field="coachid"]

    So it appears as though I would call wp-members by adding the following:
    <script type="text/javascript" src="http://successtrainingcenter.HankFit247.com/wp-content/plugins/wp-members/js/admin.js"></script>
    <script type="text/javascript" src="http://successtrainingcenter.HankFit247.com/wp-content/plugins/wp-members/js/wp-members-admin.js"></script>

    Correct?

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

  2. HankFit247
    Member
    Posted 1 year ago #

    I found the hooks page:
    http://rocketgeek.com/plugins/wp-members/users-guide/filter-hooks/

    So what I really just need (I think) is a snippet of PHP to call or hook [wp-members field="coach_name"] & [wp-members field="coachid"]

    All users are FULLY Registered and Activated. So simply Pull from Logged in Users profile & Populate said fields.

  3. HankFit247
    Member
    Posted 1 year ago #

    What used to be is simply:
    http://www.MyUltimateReset.com/{{screenname}}
    http://www.teambeachbody.com/connect/beachbody-challenge?referringRepId={{coachid}}

    Using calls to:
    jquery-1.5.2.min & linkbuilder

    Is now:
    http://www.MyUltimateReset.com/{{[wp-members field="coach_name"]}}
    http://www.teambeachbody.com/connect/beachbody-challenge?referringRepId={{[wp-members field="coachid"]}}

    In summary, it's nothing more than reporting Hi [wp-members field="user_nicename"] on every page, with the exception is this is wrapped into a URL, and that I need to call WP-Members from PHP in an html file.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.