Hi,
Can you post a link? I think that’ll make it easier to tell you where in the template to find the code you want to change. Thanks.
@caimin_nwl: Thanks for your time for the reply.
I am developing the site locally at the moment.
In Settings > Pages > Event Pages I am using “Posts” for “Display Event as”.
On an event page I see “September 24, 2013/0 Comments/in My Category /by myusername” right under the title of the event.
I would like to change the “myusername” to the name of the person who posted that event, or possible remove the whole “September 24, 2013/0 Comments/in My Category /by myusername”.
But if I have to replace just the “username” to the name of the user, I think #_CONTACTNAME should be used somewhere at the place of #_CONTACTUSERNAME.
Forgive my ignorance in case I am missing something or not making much sense. I am quite new to wordpress world.
Thank you.
To remove the date and time you need to look for some PHP tags like
the_date()
or
the_time()
removing those will remove the date.
To show the #_CONTACTNAME placeholder from within the template you should be able to use this code:
global $EM_Event;
echo $EM_Event->output("#_CONTACTNAME");
@caimin_nwl: Thanks for your time again.
I do not know where to place that code. I tried replacing the code in file single-event.php in events-manager > templates > templates but it didn’t work the way I described in my post above.
I replaced:
global $EM_Event;
/* @var $EM_Event EM_Event */
echo $EM_Event->output_single();
?>
with
global $EM_Event;
echo $EM_Event->output("#_CONTACTNAME");
I just wanted “September 24, 2013/0 Comments/in My Category /by myusername” to replaced with “September 24, 2013/0 Comments/in My Category /by mycontactname”, replacing myusername with mycontactname.
Or if possible to totally remove “September 24, 2013/0 Comments/in My Category /by myusername”. in the single event page.
Thank you.
In Settings > Pages > Event Pages I am using “Posts” for “Display Event as”.
If you switch that to Pages it should remove that post date.
Thank you Marcus for taking the time to reply.
Sorry for the delayed reply.
And thank you for keeping this really nice plugin for free.
And thank you for keeping this really nice plugin for free.
it always will be, and will be constantly improved!