Shortcodes and separate events
-
Ok so i’m a newbie so please be patient with me.
i’m using shortcode to get some events to the frontpage.
this is my short code
[eo_events numberposts=2]
<article class=”cb-article clearfix” role=”article”>
<div class=”cb-mask” style=”background:#dc1818;”>
%event_thumbnail% </div>
<div class=”cb-meta”>
<h2 class=”h4″>%event_title%</h2>
<div class=”cb-byline”>
<div class=”cb-author”>
<i class=”icon-user”></i>
%event_venue%
</div>
<div class=”cb-date”>
<i class=”icon-time”></i>
Em <time class=”updated” datetime=”2014-01-29″>%start{jS M Y}{ g:i:a}%</time></div>
<div class=”cb-category”>
<i class=”icon-folder-close”></i>
%event_cats%
</div>
</div>
<div class=”cb-excerpt”>%event_excerpt{30}%…</div>
</div>
</article>
[/eo_events]i’m trying to make them look like my template widgets in the frontpage.
I hope this is an ok way to do it.
What happens is that i get another code added. A list. I don’t understand why i thought i was only getting values not html* Event List Widget: Standard List
*
* The template is used for displaying the [eo_event] shortcode *unless* it is wrapped around a placeholder: e.g. [eo_event] {placeholder} [/eo_event].What am i doing wrong?
Is it better to code a widget?Another question.
I want to use event-organizer to do something pretty different, like all diferent events. i don’t want them mixed. for instance if i go to venues i would see all. Categories same thing. I think it would make my life much easier if i could just have like another post type you know? like having it installed twice. that would make them immediately separated. Is this thinking way off?thanks for your time
The topic ‘Shortcodes and separate events’ is closed to new replies.