Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Barry

    (@barryhughes-1)

    Right now there is not – great idea though!

    Thread Starter Santosh

    (@santoshait)

    are you planning to add this to your plugin

    Plugin Author Barry

    (@barryhughes-1)

    I do indeed plan to add something that might fit your needs here.

    Right now the shortcodes are simply wrappers for the existing widgets supplied by The Events Calendar (and by Events Calendar PRO, if that is also installed and activated). I do hope to add additional shortcodes to allow even more ways to embed events into pages and posts and once that is done this should be covered ??

    Plugin Author Barry

    (@barryhughes-1)

    This should now be possible with the [event_embed] shortcode (details here):

    [event_embed event="some-event"] {content} [/event_embed]

    Thread Starter Santosh

    (@santoshait)

    thanks for implementing new feature

    Plugin Author Barry

    (@barryhughes-1)

    My pleasure ??

    Looks like my link to the details about that shortcode were stripped out, though, or else I forgot to put it in my reply. In any case, here is the wiki page:

    https://github.com/barryhughes/event-rocket/wiki/Embed-Events

    How do you make the event {title} a link to the event? Am I missing something with the embed parameters? {url} does not seem to be available?

    {title} displays the event title
    {name} is an alias of {title}
    {content} displays the content (the event description)
    {excerpt} is used to pull in the excerpt, following normal WordPress rules
    {thumbnail} pulls in the post thumbnail/featured image, if there is one
    {start_date} retrieves the event start date (formatted as per WordPress settings)
    {start_time} as above, but displays the start time
    {end_date} the event end date
    {end_time} the event end time

    <?php echo do_shortcode('[event_embed limit="5" category="110" ]'); ?>

    Limit function is not working? Also, tried to implement template=”embed-events-template” and replicated modified template into my child theme – but it isn’t found (or used that is). So I was reduced to editing the plug-in template itself.

    Which I modified to get a link working…

    <div class="eventrocket embedded-event post">
    	<div class="post-thumb"> <?php tribe_event_featured_image() ?> </div>
    	<h3><a href="<?php tribe_event_link($post) ?>"><?php the_title() ?></a></h3>
    	<div class="schedule"> <?php echo tribe_events_event_schedule_details() ?> </div>
    	<div class="summary"> <?php the_excerpt() ?> </div>
    	<hr />
    </div>

    But I don’t really want to edit the event rocket default template…. is there something I need to do special to get the child theme template to be recognized?

    Plugin Author Barry

    (@barryhughes-1)

    Hi – thanks for posting williamlevins.

    Mostly as a means of stopping threads from becoming too long and unwieldy though it would be great if you could create new threads of your own in future ??

    There’s definitely a valid issue re shortcode parameters not being respected – I’ll look into that and deliver a fix shortly.

    How do you make the event {title} a link to the event? Am I missing something with the embed parameters? {url} does not seem to be available?

    Nope, there is no {url} placeholder at this time.

    You can add new ones without editing plugin code though (described here) and I’ll probably add a few more over time, too.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘how to add event description using shortcode’ is closed to new replies.