• Resolved rohitbhalara4

    (@rohitbhalara4)


    Very nice plugin for free, thank you for that.

    I am using the single event page as post.

    I want to replace #_CONTACTUSERNAME showing on the post with #_CONTACTNAME.

    Document looks good and everything but I am not a php guy 🙁

    I haven’t quite been able do do it.

    Also, I would like to remove the whole “September 24, 2013/0 Comments/in My Category /by myusername”.

    Is it possible to be done?

    Thank you.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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.

    Thread Starter rohitbhalara4

    (@rohitbhalara4)

    @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");
    Thread Starter rohitbhalara4

    (@rohitbhalara4)

    @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.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    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.

    Thread Starter rohitbhalara4

    (@rohitbhalara4)

    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.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    And thank you for keeping this really nice plugin for free.

    it always will be, and will be constantly improved!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to replace #_CONTACTUSERNAME with #_CONTACTNAME on single event page’ is closed to new replies.