WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Show Attendees with additional data (3 posts)

  1. CAJensen01
    Member
    Posted 1 year ago #

    Hello,

    In the Events Manager plug-in, you can show an attendees list using the placeholder:
    #_ATTENDEESLIST.

    I'd like to either modify this placeholder or add my own to display some information from different fields in addition to the person's name..

    I've found I need to modify the attendeeslist.php file in placeholders, but I'm at a loss for how to add in another value, such as the fax number.

    echo '
    <li>'. $EM_Booking->get_person()->get_name() .'</li>
    ';

    Should I be adding something like.. `echo '
    <li>'. $EM_Booking->get_person()-><strong>get_fax()</strong> .'</li>
    ';` Where does the "get_fax()" reference?

    http://wordpress.org/extend/plugins/events-manager/

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your posted code may now have been permanently damaged/corrupted by the forum's parser.]

  2. agelonwl
    Member
    Posted 1 year ago #

  3. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    $EM_Booking->get_person()

    returns an EM_Person object, which is basically an extension of the WP_User object so you could grab user meta using normal WP methods - http://codex.wordpress.org/Class_Reference/WP_User

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic