i added the snippets and insert this shortcode to the page:
[eo_events events_by_current_title]
%event_title%
in %event_venue%
am %start{j. F o}%
[/eo_events]
Then it should displays all Events with the Post-Title. (E.g. in this case “massagetherapeut”)
But it shows all Events.
What did i wrong?
Here u can see it?:
http://b9icqu9.myraidbox.de/kurse/massagetherapeut/

Christoph Steinlechner
You should use the shortcode as follows:
[events_by_current_title]
you’ll need to add the template tags into the snippet I gave you before:
add_shortcode( 'events_by_current_title', 'my_events_by_title' );
function my_events_by_title( $atts, $content = null ){
$event_id = get_the_ID();
if ( 'event' !== get_post_type( $event_id ) ) {
return;
}
$title = get_the_title();
return do_shortcode( "[eo_events title={$title} event_start_after=now]
%event_title% in %event_venue% am %start{j. F o}%
[/eo_events]" );
}

Stephen Harris
hmm i add this … but no dates are showing … i tryed also this
return do_shortcode( “[eo_events]” );
to see if something is showing … but no events are showing.

Christoph Steinlechner
Ah, I”m sorry, this is being used on a regularly post/page isn’t it. Please remove the lines:
if ( 'event' !== get_post_type( $event_id ) ) {
return;
}

Stephen Harris
ui it works close ..
can i set instead of this:<br />
%event_title% in %event_venue% am %start{j. F o}%
this?:
<div class=”column one-fourth”>%event_title%
</div>
<div class=”column one-fifth”>%event_venue%</div>
<div class=”column one-fourth”>%start{j.m.}% – %end{j.m.o}%</div>
<div class=”column one-fifth”>Jetzt buchen</div>
cause i need a clear list with styling.

Christoph Steinlechner
Yes, but at this point I think you’re better off removing the placeholders entirely and editing the template file instead (see Customising the look of the event list of http://docs.wp-event-organiser.com/shortcodes/events-list/)

Stephen Harris
u mean shortcode-templatefile i guess … maybe i in future … now its to much input for me … i am not a developer … or u can do it and u can make me an offer how much it cost?

Christoph Steinlechner
great, Stephen, thats what i was looking for too! thanks Christoph.

Peter Wesche