Viewing 11 replies - 16 through 26 (of 26 total)
  • Thread Starter mlplus

    (@mlplus)

    template 10 contains only #_MAP
    template 4 and 5 are empty

    Thread Starter mlplus

    (@mlplus)

    In the widget the first part works showing the map of a single event, but showing the map of a single location doesnt work.

    Plugin Author Franky

    (@liedekef)

    If a single location, then #_SINGLE_EVENTPAGE_LOCATIONID won’t show anything. This change adds #_SINGLE_LOCATIONPAGE_LOCATIONID:
    https://plugins.trac.ww.wp.xz.cn/changeset/2713678/

    Thread Starter mlplus

    (@mlplus)

    Works almost fine now. The maps are showing correctly. But in some cases not all events are showing in the right most column.

    In this location everything shows fine in the right column:
    https://skaneplus.se/locations/galleri-engleson/

    In this location only “UTSTÄLLNINGAR” and “EVENEMANG” related to the location is showing in the right column.
    https://skaneplus.se/locations/288/malmo-folkets-park/

    Strange?

    Thread Starter mlplus

    (@mlplus)

    I found the problem. some locations have a number in the path like…/xxx/locations/name and the y only show events related to that page in the widget like this one: https://skaneplus.se/locations/669/residenset/
    But those locations without the number inte path shows all events in the widget like this one: https://skaneplus.se/locations/a-c2-b7vo-c2-b7ka-c2-b7do/

    Very strange???

    Thread Starter mlplus

    (@mlplus)

    So if there is a number in the path something goes wrong.

    Plugin Author Franky

    (@liedekef)

    And which widget is behaving like that? What shortcode do you use in that widget?

    Plugin Author Franky

    (@liedekef)

    Ok, I think I figured it out. It is due to the fact that a location id can be both an integer and a string (old and new), but it being a string will of course not work during a mysql search (need to get the location id then first).
    This should fix that:
    https://plugins.trac.ww.wp.xz.cn/changeset/2713690/

    Thread Starter mlplus

    (@mlplus)

    Two widgets:

    “UTSTÄLLNINGAR”
    [eme_events category=46 show_recurrent_events_once=1]

    “EVENEMANG”
    [eme_events show_recurrent_events_once=1 notcategory=46 category=6 show_ongoing=1]

    These two widgets works fine on all pages including showing a single location, except if there is a number in the path as described above.

    I don’t now why some locations are without number and some with.

    Plugin Author Franky

    (@liedekef)

    Older locations (without a defined slug) get a number added, editing that location adds a slug and thus fixes it. But I can’t reproduce your problem even with older locations and [eme_events] in a widget (if eme_events doesn’t limit to a location).

    Thread Starter mlplus

    (@mlplus)

    Thank you Franky!

    Now everyting is working perfectly.
    You are always giving the best support!

    I wish you a great weekend!

Viewing 11 replies - 16 through 26 (of 26 total)

The topic ‘Map in widget’ is closed to new replies.