• Resolved omegacoder

    (@omegacoder)


    I have events manager running on multisite, the main site is in english, subsite is in chinese.

    when you visit the chinese events listing page: http://www.jesstown.com/cn/events, and click on the town/cities search filter (3rd select drop down from left), it shows values both from the main site (english), and subisite(chinese).

    is there anyway to restrict the entries to just town/cities posted on that subsite? that is, on my chinese site I don’t want to show any town/city values values from my english site. any pointers from anyone would save me time. thanks!

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • did you check Locations on main blog? -> http://wp-events-plugin.com/documentation/multisite/ at http://www.your-domain.com/wp-admin/network > events manager > multi site options

    also, is your events manager installation is network activated or activated on each individual subsite?

    Thread Starter omegacoder

    (@omegacoder)

    I’ve got events manager installed as a network with the following multisite options on events manager on wp-admin/network:

    Enable global tables mode? N

    Display global locations on main blog? N

    not sure by what you mean by checking locations on main blog?

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    interesting… that shouldn’t happen if you have global tables disabled. each blog/sub-blog should work independently of each other this way.

    could it be you had global tables enabled at one point?

    Thread Starter omegacoder

    (@omegacoder)

    thanks. i hadn’t touched these settings previously as they seemed to make sense for my requirements.

    it’s strange that on my main site (english), it only shows towns/cities created on that site, however for my subsite (chinese), it will show both cities/towns from this subsite and those from main site (english)

    I don’t know what to do from here. what do you think I should do to resolve this issue?

    Thread Starter omegacoder

    (@omegacoder)

    ok, I just found out the cause of my problem. two reasons

    problem of english locations appearing on my subsite (chinese)
    1) I was posting english name locations on my subsite (chinese). once I removed these, the english locations names were gone

    repeat of same location names, e.g. i had two 北京 locations appearing in the search filter.
    2)i noticed that one of them had a spacing prefix infront which meant the SQL query counted it as two distinct results, i.e. i had
    “北京” and ” 北京” in the database entry for location_town. i.e in the query:

    SELECT DISTINCT location_town FROM “.EM_LOCATIONS_TABLE.” WHERE location_town IS NOT NULL AND location_town != ” AND location_country=%s $cond AND location_status=1 ORDER BY location_town

    as you can see, the query will not count the above two locations as the distinct, hence they will both show up in the location town search filter field.

    therefore when posting new locations, have to double check that no prefix spacing is included before approving events as the system will not do it for you

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘events listings search filter – restrict filter options’ is closed to new replies.