Support » Plugin: Events Manager » Placeholder help

  • Resolved jimf81

    (@jimf81)


    Hi

    I have done plenty of work adding extra placeholders to the event page design and changed this in the settings area and it works but I’m having trouble adding the placeholders to some html within another plugin.

    I am using the essential grid plugin and want to add the data and time of an event with some basic html in the same way that I have added extra placeholders to the event page design. This is what I have added:

    <p style=”text-align: center;”>Date: #_EVENTDATES
    Time: #_EVENTTIMES
    </p>

    The above is just a small snippet from the event page itself. Is there some code i need to specify to pull specific data for events manager?

    See these screen grabs for what I need:
    Where I add the html – http://grab.by/ARaI
    Where I need it to appear – http://grab.by/ARb2

    Really struggling with this and can’t figure out how to get the data in the right place, so I would really appreciate some help.

    Thanks

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

Viewing 15 replies - 1 through 15 (of 15 total)
  • OK so an update, I have added event manager shortcodes to the essential grid plugin to test they work and they do.

    For example [event_search_form] look like this http://grab.by/ASnI.

    So the shortcodes work in the essential grid but what is the shortcode to pull the event_start_time, event_end_time, event_start_date?

    I don’t know what code to add for pulling the correct event. Putting the above fields into a shortcode is all well and good but how do I tell essential grid to pull the right post data. Now i know you may say add the post id but I can’t do that because i need to add some code once and essential grid pulls the data for the associated post they need.

    Sorry but I’ve got to pulling out hair time and really need some help?

    Plugin Support caimin_nwl

    (@caimin_nwl)

    Hi,

    Looks to me like the issue is not wrapping the placeholders between opening and closing shortcodes. Try something like this:

    [events_list]
    Date: #_EVENTDATES
    Time: #_EVENTTIMES
    [/events_list]

    Thanks

    I tried that and this is what i get http://grab.by/ATgi

    It shows no events because no new events are on the site currently but I don’t need to list events, I need the shortcode to show the date and time associated with the event that i have listed in essential grid.

    I have no idea what the shortcode is? Esseential grid pulls the events into its grid format, no problem. It can pull the title, excerpt etc, but I just don’t know the code for grabbing the date and time.

    something like this is what i was thinking but again no idea exactly

    [event post_id=”essential grid pulled post”] <p style=”text-align: center;”>Date: #_EVENTDATES
    Time: #_EVENTTIMES
    [event post_id=”essential grid pulled post”]

    Plugin Support caimin_nwl

    (@caimin_nwl)

    I’m confused. No matter what formatting you use, you won’t see any dates or times unless you publish the events. Maybe I misunderstand what you’re trying to do…

    OK so essential grid works like a recent posts plugin in a kind of way. So it pulls the featured image and post title as well as other data if required. All done see this screen grab http://grab.by/AV38.

    But the plugin does not let me select the data and time for the event. I cannot select this data. I can select excerpt, date the post was posted and other data from normal posts but not the data from the events plugin.

    So the data is in the database, but for the life of me i can’t figure out what html I need to add to get this data. In the essential grid i can add html. In the screen grab, where it shows no events I can add html here. In the screen grab I added the shortcode you gave me but i need html for grabbing the date and time.

    So to clarify again the essential grid has already pulled the post and it will show as per the screen grab but not all the data I need.

    Honestly i just need this job to be completed and would happily pay to get this sorted. I’m super stressed about it now.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    you can try something like this

    [event post_id="X"]
    <p style="text-align: center;">
    Date: #_EVENTDATES
    Time: #_EVENTTIMES
    </p>
    [/event]
    
    where X is the event post id

    Placeholders

    Hi Angelo

    Thank you for the support, the shortcode is almost there but the essential grid needs one shortcode for the grid. If I specify the post id, the same date and time will show for every event. See this screen grab http://grab.by/AY8y.

    What I was trying to request was a shortcode that pulls the post data for the post that essential grid has already pulled. I don’t know how to phrase this but i need code that tells the essential grid “Ok the post you have just pulled with the featured image and post title, we now need the date and time for that post too, now go fetch”

    I really don’t know how to explain this without verbally talking through it.

    Plugin Support caimin_nwl

    (@caimin_nwl)

    Why can you add one shortcode but not two?

    I’m struggling to explain this so I’ve done a video. http://youtu.be/qGDcvFVxzN0

    The essential grid has an area for html that affects the whole grid, therefore i can’t specify a post, it needs to be an instruction that pulls data based on which post the essential grid has pulled.

    The shortcode needs an instruction that says pull this data associated with the post that essential grid has already pulled.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    I see what you mean now however I think this requires custom coding and modification on your part which is I’m afraid that we can’t help you with the code as per the policy – http://eventsmanagerpro.com/support-policy/

    other useful links: http://wp-events-plugin.com/tutorials/

    Thanks Angelo but it has finally been sorted thanks to your help and that of the theme punch folks as well. For reference this is the shortcode:

    [event post_id=”%post_id%”]
    <p style=”text-align: center;”><span style=”font-size: 12pt;”><span style=”color: #da635d;”>Date:</span> #_EVENTDATES </span>
    <span style=”font-size: 12pt;”><span style=”color: #da635d;”>Time:</span> #_EVENTTIMES</span></p>
    [/event]

    Plugin Support angelo_nwl

    (@angelo_nwl)

    thanks for the update.

    Thank you. I spent a lot of time on this problem and this finally solved the issue.

    How are you getting it to sort correctly, I have the ess grids plugin working however I can’t seem to get it to sort they way I want it to, basically event ending the soonest to be 1st in the sort order, it appears to be using creation date as the sort order.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Placeholder help’ is closed to new replies.