WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Conditional Placeholder display by date range and country? (10 posts)

  1. sarumbear
    Member
    Posted 1 year ago #

    Hi

    Is it possible to use a conditional placeholder to display events between certain dates only?

    In the same way, it it possible to display events that belongs to a single country?

    many thanks in advance

    http://wordpress.org/extend/plugins/events-manager/

  2. agelonwl
    Member
    Posted 1 year ago #

    Hi,

    1.
    you can try something like [events_list limit="10" scope="2010-12-25,2010-12-31"]

    2.
    try [events_list limit="10" country="US"]

    http://wp-events-plugin.com/documentation/shortcodes/
    http://wp-events-plugin.com/documentation/event-search-attributes/
    http://wp-events-plugin.com/documentation/

  3. sarumbear
    Member
    Posted 1 year ago #

    Thank you VERY much.

    This is such a complex (but powerful) plugin that I missed that part of the documentation.

    I made it work now thanks to you :-)

  4. agelonwl
    Member
    Posted 1 year ago #

    thanks for updating.

  5. sarumbear
    Member
    Posted 1 year ago #

    I spoke too soon. I have a problem with country filtering.

    I have various locations that has 'Netherlands' or 'United Kingdom' in the country field of their address. When I use a country code list as below I see not only the locations in UK (that has events in the date range) but also in Netherlands.

    [events_list scope="2013-03-01,2013-04-30" country="GB,IE"]
    code here
    [/events_list]

    If I change the filter to just read country="GB" then locations in Netherlands are not displayed. Only the events in UK are displayed. Similarly, country="NL" only displays events in Netherlands as expected.

    If I change the filter to say country="GB,US" still it shows events from Netherlands. It seems when there is a list of countries, whatever the second country is, Netherlands locations are displayed.

    Can you shed light on this?

    Many thanks in advance.

  6. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    this isn't a bug, we just haven't implemented searching multiple countries yet

  7. sarumbear
    Member
    Posted 1 year ago #

    So, placing a list of countries basically creates a code typo?

    I hope you will implement this soon. It is very useful when you need to group locations like I'm trying to do on this page.

    http://www.simonmcbride.net/2013-tour

    While on the subject of Country Codes, I have noticed that you have listed Scotland and Wales as individual countries but neither Scotland nor Wales have codes in countrycode.org. Where do you get the codes for Scotland and Wales?

  8. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    noted

    I made a special exception in those cases, if I rember correctly a 'country' with its own football team got a free pass :) I made the codes up though since there aren't any

  9. sarumbear
    Member
    Posted 1 year ago #

    LOL and why not?

    I wish UN would be so logical and pragmatic :-)

  10. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    hmm... the UN may end up with a hooligan problem :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic