Viewing 10 replies - 1 through 10 (of 10 total)
  • comepot

    (@comepot)

    Good question, look fwd to answer!

    comepot

    (@comepot)

    Good question, look fwd to answer!

    caimin_nwl

    (@caimin_nwl)

    Although there’s no ready-made way to do it, you could give the premium events their own tag or category, then use a conditional tag to detect that category / tag nd apply different styling to the event listing.

    http://wp-events-plugin.com/documentation/conditional-placeholders/

    Thread Starter flwasgehtwann

    (@flwasgehtwann)

    Hey caimin_nwl,

    thanks for your answer, I will try to do it. πŸ™‚

    Thread Starter flwasgehtwann

    (@flwasgehtwann)

    hey again,

    so I’ve tested your suggestion and it works, but not perfectly.
    When my code is

    {has_tag_premium}
    
     <div class="event-widgets-events">    
    
    <div class="event-cover">#_EVENTIMAGE{100,100}</div>
    
          <div class="event-w-data">
    
    </div>
          <div class="event-w-title"><h3><a href="#_EVENTURL"> #_EVENTNAME </a></h3></div>
    
    	    <div class="event-w-venue">#_EVENTDATES,  #_EVENTTIMES Uhr</div>
    
          <div class="event-w-venue"><a href="#_LOCATIONURL">  <i class="fa fa-map-marker fa-2x"></i> {has_location}<i>#_LOCATIONNAME, #_LOCATIONTOWN #_LOCATIONSTATE</i>{/has_location}</a></div>
    
          <div class="event-w-excerpt">
     <p>#_EVENTEXCERPT{65,...}</p>
          </div>
    
    	      <div class="event-w-status"><a href="#_EVENTURL">Weitere Infos</a> </div>
                                                </div>
    
    											{/has_tag_premium}

    It works fine and it shows only the events with the tag “premium”, but when I want to show the others beneath like this:

    {has_tag_premium}
    
     <div class="event-widgets-events">    
    
    <div class="event-cover">#_EVENTIMAGE{100,100}</div>
    
          <div class="event-w-data">
    
    </div>
          <div class="event-w-title"><h3><a href="#_EVENTURL"> #_EVENTNAME </a></h3></div>
    
    	    <div class="event-w-venue">#_EVENTDATES,  #_EVENTTIMES Uhr</div>
    
          <div class="event-w-venue"><a href="#_LOCATIONURL">  <i class="fa fa-map-marker fa-2x"></i> {has_location}<i>#_LOCATIONNAME, #_LOCATIONTOWN #_LOCATIONSTATE</i>{/has_location}</a></div>
    
          <div class="event-w-excerpt">
     <p>#_EVENTEXCERPT{65,...}</p>
          </div>
    
    	      <div class="event-w-status"><a href="#_EVENTURL">Weitere Infos</a> </div>
                                                </div>
    
    											{/has_tag_premium}
    
    {no_tag_premium}
    
     <div class="event-widgets-events">    
    
    <div class="event-cover">#_EVENTIMAGE{100,100}</div>
    
          <div class="event-w-data">
    
    </div>
          <div class="event-w-title"><h3><a href="#_EVENTURL"> #_EVENTNAME </a></h3></div>
    
    	    <div class="event-w-venue">#_EVENTDATES,  #_EVENTTIMES Uhr</div>
    
          <div class="event-w-venue"><a href="#_LOCATIONURL">  <i class="fa fa-map-marker fa-2x"></i> {has_location}<i>#_LOCATIONNAME, #_LOCATIONTOWN #_LOCATIONSTATE</i>{/has_location}</a></div>
    
          <div class="event-w-excerpt">
     <p>#_EVENTEXCERPT{65,...}</p>
          </div>
    
    	      <div class="event-w-status"><a href="#_EVENTURL">Weitere Infos</a> </div>
                                                </div>
    
    	{/no_tag_premium}

    It just shows all the events and ignores the tag with the premium.
    Maybe I got some mistakes with my thinking or didn’t understand something correctly.

    Best regards

    caimin_nwl

    (@caimin_nwl)

    So the premium events show on their own at the top (like they should), but the lower list shows all events including premium?

    Thread Starter flwasgehtwann

    (@flwasgehtwann)

    not exactly. When I only use the has_tag_premium code it works fine. It just shows the events with the tag “premium” (one event at the moment)

    When I use it the way, like I posted in my second code, it is like they totally ignores both the “has_tag_premium” and the “no_tag_premium” and just shows all the events like it would do without the tags.

    Does it get overwritten when I use two tags?

    caimin_nwl

    (@caimin_nwl)

    Where are you using this code? Is there any other code / formatting above or below it?

    Thread Starter flwasgehtwann

    (@flwasgehtwann)

    I’m using it in the eventmanager admin panel “option” -> “formatting” -> standard format for list of events.

    My wordpress is on german so I don’t know how the proper labeling is. Hope you understand it this way, else I will upload a screenshot.

    I have som ideas I will test tomorrow, after testing I will give a feedback.

    Thanks again for your help. Really appreciate it.

    caimin_nwl

    (@caimin_nwl)

    Does is work if change premium in {no_tag_premium} to the ID of the tag?

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Premium events / highlighting events’ is closed to new replies.