Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    you can try something like this

    <?php
    	global $post;
    	$EM_Event = em_get_event($post->ID, 'post_id');
    ?>
    <?php echo $EM_Event->output('#_EVENTNAME'); ?>

    or http://wp-events-plugin.com/documentation/advanced-usage/

    Thread Starter David Glez

    (@davidglez)

    Hello Angelo

    Thanks for answering.

    Returns only one ID, how you could show different ID’s?

    Thank you very much.

    Can you explain a bit more about what you want to do? Are you trying to create an events list?

    Thread Starter David Glez

    (@davidglez)

    Hello,

    I created a list of events and I created a PLACEHOLDER, his name is #_RATINGS. The purpose is to show the Reviewer ratings through a shortcode, this is the idea:

    Function:

    Echo rw_get_user_rating ($userID = false);

    Or shortcode:

    [ratingwidget post_id = 123]

    The problem is that only returns me 1 ID. Something I’m doing wrong, can you help me?

    Thank you.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    can I know where did you use or paste the snippet?

    Thread Starter David Glez

    (@davidglez)

    I created a file, customavatar.php and I have risen to the placeholders folder, call the placeholder #_RATINGS with this code:

    add_filter (’em_location_output_placeholder’ ‘my_em_placeholder_mod’, 1,3);
    my_em_placeholder_mod function ($ replace, $ EM_Location, $ result) {
    if ($ result == ‘#_RATINGS’) {
    ob_start ();
    $ template = em_locate_template (placeholders / customavatar.php ‘, true, array (‘ EM_Event ‘=> $ EM_Location));
    $ replace = ob_get_clean ();
    }
    return $ replace;
    }

    It is correct, but as I said above does not return me different ID’s, only 1 ID.

    thanks

    The code for custom placeholders needs to go in the functions.php file of your theme:

    http://wp-events-plugin.com/tutorials/create-custom-event-information-pages/

    Thread Starter David Glez

    (@davidglez)

    Yes, this code is in function.php my theme, but the placeholder is the placeholder folder event manager

    Plugin Support angelo_nwl

    (@angelo_nwl)

    maybe you can try the snippet from this tutorial – http://wp-events-plugin.com/documentation/advanced-usage/ however we might not help you 100% with regards to custom coding however we can give you tips and answer your question.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘ID user and ID event’ is closed to new replies.