• Hi

    I am trying to show a list of all the events that have been held at a particular location which I have managed to do using the #_LOCATIONPASTEVENTS attribute.

    I now want to wrap a hyperlink around this so I can then click on a previous event and be taken to that particular event page.

    I am using the following code which is not returning the event_id

    <h3>Previous Shows at #_LOCATIONNAME</h3>
    <p> #_LOCATIONPASTEVENTS</p>

    Any tips on what I need to do to make this work.

    Thanks

    Perry

    http://ww.wp.xz.cn/extend/plugins/events-manager/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter theref

    (@theref)

    Sorry code here…

    <p><a href="?page_id=4&event_id=#_EVENTID"> #_LOCATIONPASTEVENTS</a></p>

    This placeholder #_LOCATIONPASTEVENTS will do 2 things first is it will list all events in that location and second it will provide a link in each event. are you in EM settings > Locations Format section or you are in pages?

    Thread Starter theref

    (@theref)

    Hi

    I have the following code in the Single location page format section within the EM settings page

    <div style="float:right; margin:0px 0px 0px 0px;">#_LOCATIONIMAGE</div>
    <p>
    	<strong>Address</strong><br/>
    	#_LOCATIONADDRESS<br/>
    	#_LOCATIONTOWN<br/>
    	#_LOCATIONPOSTCODE<br/>
    	#_LOCATIONCOUNTRY
    </p>
    <br style="clear:both" />
    <h3>Upcoming Shows at #_LOCATIONNAME</h3>
    <p>#_NEXTEVENTS</p>
    
    <h3>Previous Shows at #_LOCATIONNAME</h3>
    <p><a href="?page_id=4&event_id=#_EVENTID"> #_LOCATIONPASTEVENTS</a></p>

    Try this:

    <div style="float:right; margin:0px 0px 0px 0px;">#_LOCATIONIMAGE</div>
    <p>
    	<strong>Address</strong><br/>
    	#_LOCATIONADDRESS<br/>
    	#_LOCATIONTOWN<br/>
    	#_LOCATIONPOSTCODE<br/>
    	#_LOCATIONCOUNTRY
    </p>
    <br style="clear:both" />
    <h3>Upcoming Shows at #_LOCATIONNAME</h3>
    <p>#_NEXTEVENTS</p>
    
    <h3>Previous Shows at #_LOCATIONNAME</h3>
    <p> #_LOCATIONPASTEVENTS</p>
    Thread Starter theref

    (@theref)

    Thanks for the reply.

    This will not allow me to click on a past event and go to that specific event which is what I want to be able to do.

    I would like to be able to use a combination of location and event shortcodes.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    maybe your events list formats don’t have links to the events in your settings page? That’s what the next/lastevents placeholders use as formatting templates.

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

The topic ‘[Plugin: Events Manager] Previous Events’ is closed to new replies.