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?
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.
can I know where did you use or paste the snippet?
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
Yes, this code is in function.php my theme, but the placeholder is the placeholder folder event manager