WordPress.org

Forums

WP-Members
[resolved] Can I add a placeholder to a WP-Members shortcode field? (4 posts)

  1. Jonny MacEachern
    Member
    Posted 2 years ago #

    I tried:

    Your account balance is: $[wp-members feild="acc_balance" placeholder="N/A"]

    but that didn't work.

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

  2. Chad Butler
    Member
    Plugin Author

    Posted 2 years ago #

    "field" not "feild"

  3. Jonny MacEachern
    Member
    Posted 2 years ago #

    I caught my error there and corrected it earlier but it's still not working.

  4. Chad Butler
    Member
    Plugin Author

    Posted 2 years ago #

    Here would be a list of things to check:

    • Do you have a field with the option name acc_balance?
    • Does the user have a value for acc_balance?
    • Is the user logged in?
    • Is this shortcode being used in an area of your theme where shortcodes are enabled? WP only enables shortcodes in the body by default, so if this is a header or sidebar usage, you need to have enabled shortcodes there.
    • Is this nested within another shortcode or are there other shortcodes being used on the site? If so, and it is not a wp-members shortcode, does that shortcode re-run the shortcode parser at the end with do_shortcode( $content )? The WP shortcode parser runs only once, and some developers neglect to do this which leaves other shortcodes unparsed.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Members
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic