Title: Previous events conundrum
Last modified: August 20, 2016

---

# Previous events conundrum

 *  [Bill](https://wordpress.org/support/users/jaimegoldinggmxcom/)
 * (@jaimegoldinggmxcom)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/previous-events-conundrum/)
 * Hi, so I have a bunch of pages where I wish to display the archive %event% by
   itself. No problemo – [events_show type=”archive” event=”77″] with %event% in
   the archive template body.
 * I then have three landing/home pages where I would like to display the previous
   event %title% from a category. Normally to do this I would change the archive
   template body to %title% & use I imagine a shortcode like this to do it: [events_show
   type=”archive” category=”2″ amount=”1″ order=”thetime DESC”].
 * This can’t be done however as I need %event% in the archive template for the 
   first set of pages I mentioned.
 * So I’m stuck with either %event% or %title%.
 * I don’t know php but I have this snippet I use elsewhere which displays stuff
   dependant on the current URL:
 * <p><?php if (stripos($_SERVER[‘REQUEST_URI’],’/uncategorized/test-previous-events-
   7175/’) !== false) {echo ‘<div>%title%</div>’;}
    else echo ‘<div>%event%</div
   >’ ?></p>
 * The input field in the template settings doesn’t seem to like the php however.
 * I would greatly appreciate it if anyone knows a workaround so that I can have
   an
    if page url = /exampleurlA/ show %title% elseif page url = /exampleurlB/ 
   show %title% else echo %event%.
 * If it can’t be done inside the settings a way through the plugin files would 
   be ideal (or with template tags like with the sidebars).
 * Thanks in advance. I’m totally stuck short of creating duplicate events as regular
   posts, & scheduling them to appear after each event date & displaying with a 
   post query.
    Jai
 * [http://wordpress.org/extend/plugins/wp-events/](http://wordpress.org/extend/plugins/wp-events/)

The topic ‘Previous events conundrum’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-events_f2f0f1.svg)
 * [Events](https://wordpress.org/plugins/wp-events/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-events/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-events/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-events/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-events/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-events/reviews/)

## Tags

 * [event](https://wordpress.org/support/topic-tag/event/)
 * [events](https://wordpress.org/support/topic-tag/events/)
 * [last](https://wordpress.org/support/topic-tag/last/)
 * [previous](https://wordpress.org/support/topic-tag/previous/)

 * 0 replies
 * 1 participant
 * Last reply from: [Bill](https://wordpress.org/support/users/jaimegoldinggmxcom/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/previous-events-conundrum/)
 * Status: not resolved