• Hello I am using a theme called “the Style” here is a link to my page . I have events manger installed and am pretty happy with it. I am not using an events page, but rather the archive/index page that can with my theme. I am doing this for style reasons.

    Here is my question. I want to use shortcode to add the date into the excerpt section of each event post. I’d like it to display the date of the event (not the range) for both single and reoccurring events.

    I’ve looked through the shortcode documentation and have tried a variety of things but can not figure it out. I’ve tried putting this into the excerpt: [events_list]#_EVENTDATES[/events_list]

    I’ve also a few other versions of this. It just prints the code, without running it as a script. Please help.
    Thanks

    https://www.ads-software.com/extend/plugins/events-manager/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    Do you mean you are wanting to output EM information onto the event page itself rather than use formatting? If so you need to use [event post_id=x]

    however, if you mean the shortcode isn’t being parsed, it could be your theme (or if you’re trying this in the excerpt box, it might not work there)

    Thread Starter rrswans

    (@rrswans)

    thanks for the response, Marcus. Basically I am trying to integrate EM’s functionality to my theme’s look. So I have turned off the events page and am using my archive. Seems like it won’t parse in the excerpt area. Is there somewhere else I can put it to work?

    Here is the link https://www.arteyvidachicago.com/events/

    This is the look I want except for two things:

    1. I want the date to show up inside this box.

    2. I’d like the posts to be in order according to the date they occur.

    Is there a way to do this, or should I just work from the EM Events page and restyle everything to look the way I want? (which seems like a lot of work)

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    Unless you’re willing to style your event archives directly on your theme with PHP yourself, you’d probably get more control out of using the events page and formats on the settings page. That way you could get images to show, and dates etc. with placeholders.

    Thread Starter rrswans

    (@rrswans)

    I have been editing the theme by way of a child theme I created and while i am not a php expert, I’m not afraid to jump in an experiment. My theme is using a file called entry.php to control the archive settings. I’m not sure where to place the code you gave me to get it to work. Would you be able to tell me here, or should I post this somewhere else. Here is the code for entry.php

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Thread Starter rrswans

    (@rrswans)

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    THe code above is a shortcode, which only works on WP page content, not php files.

    I’d probably advise you use event pages to get this done, as doing it this way would require you to dig into our plugin a little to figure things out.

    Thread Starter rrswans

    (@rrswans)

    okay that makes sense marcus. Will do.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin:Events Manager] get the date with shortcode in excerpt area’ is closed to new replies.