• Resolved yaelduckwen

    (@yaelduckwen)


    Excellent plugin, but I have a problem, I want to show the name of the organizer in the list and I think it can’t be done, is there a way?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Brian Hogg

    (@brianhogg)

    HI @yaelduckwen !

    Currently there’s no option to show the organizers for an event through a shortcode option. Since there can be multiple organizers, some may want to add links to view events organized by each organizer, etc, this would require some customization.

    With the pro version of The Events Calendar Shortcode & Block, you can take one of the designs and easily customize it to add in the organizer name(s). For example with the Default design:

    https://eventcalendarnewsletter.com/events-calendar-shortcode-pro-options/#customize-default

    Then you can add something like this if you just have one organizer where you want the name to appear:

    <?php echo tribe_get_organizer(); ?>

    or something like this if you might have multiple:

    <ul class="ecs-organizers">
    <?php foreach ( tribe_get_organizers( false, -1, true, ['event' => get_the_ID() ] ) as $organizer ): ?>
    <li><?php echo $organizer->post_title; ?></li>
    <?php endforeach; ?>
    </ul>

    Hope that helps!

    Thread Starter yaelduckwen

    (@yaelduckwen)

    Thanks, i will give a try, but should be nice to have more shortcoes in the free plugin, they are kinda a basic wordpress solution.

    Have a nice day!

    Plugin Author Brian Hogg

    (@brianhogg)

    Thanks! I’ll mark this thread as resolved, and will let you know if the organizer information is added in a future version.

    Have a great day too!

    Plugin Author Brian Hogg

    (@brianhogg)

    Hi @yaelduckwen?!

    I wanted to note that we’ve added the ability to use Shortcode Variables to the pro version, to easily add whatever organizer (and other) details you’d like. If the notes above did the trick to add it manually though, great!

    All the best,
    Brian

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.