WordPress.org

Forums

Shortcode Exec PHP
Problem in buddypress profiel field show! (5 posts)

  1. nginx
    Member
    Posted 4 years ago #

    hi
    Im using buddypress. i need to return a value which is a custom profile
    i have tested my code it works
    but when i put it in a short code nothing appears!

    echo bp_member_profile_data('field=Class Code');

    what is wrong with this code?

    any idea?

    echo works for anything else but i wonder why not for this value!

    http://wordpress.org/extend/plugins/shortcode-exec-php/

  2. nginx
    Member
    Posted 4 years ago #

    any idea?
    i have to fix this :(

  3. M66B
    Member
    Plugin Contributor

    Posted 4 years ago #

    Maybe the bp_member_profile_data function is not loaded when the plugin executes. You can try to solve this by using require_once "...".

  4. nginx
    Member
    Posted 4 years ago #

    how should i exactly do it?

  5. M66B
    Member
    Plugin Contributor

    Posted 4 years ago #

    I don't know, because I don't use / know BuddyPress, sorry. You should look through the files where the function is defined and include that file.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Shortcode Exec PHP
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic