Support » Plugin: Events Manager - Calendar, Bookings, Tickets, and more! » Problem with has_category with multisite in events page

  • Resolved alakauf

    (@alakauf)


    Hi,
    I am in a multisite environment. The parent site is supposed to only display events of a given category (called CREAT). For this, in the widget “events” I have just put the filter to the categroy ID and this works well. I.e. the parent displays the events of this category created by itself and by its child sites.

    So, now I want that the events page does the same thing. As, by default it displays the events of all the sites. For this I have modified the settings (by the layout tab) has:

    {has_category_CREAT}<tr>
    			<td>
                    #_EVENTDATES<br/>
                    #_EVENTTIMES
                </td>
                <td>
                    #_EVENTLINK<br/>
                    #_EVENTIMAGE<br/>
                    #_EVENTEXCERPT{10,...}
                    {has_location}<br/><i>#_LOCATIONNAME, #_LOCATIONTOWN #_LOCATIONSTATE</i>{/has_location}
                </td>
            </tr>{/has_category_CREAT}

    But now the page only displays the events of category CREAT for the parent site. Events of this category coming from child sites are not visible in the page.

    So, how can i do to also display the events of the child sites?

    Thanks in advance for your answer

    https://wordpress.org/plugins/events-manager/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    you can try to use shortcode instead and use attribute blog=”x” where x is the blog id

    eg.

    [events_list blog=x]
    {has_category_CREAT}<tr>
    			<td>
                    #_EVENTDATES<br/>
                    #_EVENTTIMES
                </td>
                <td>
                    #_EVENTLINK<br/>
                    #_EVENTIMAGE<br/>
                    #_EVENTEXCERPT{10,...}
                    {has_location}<br/><i>#_LOCATIONNAME, #_LOCATIONTOWN #_LOCATIONSTATE</i>{/has_location}
                </td>
            </tr>{/has_category_CREAT}
    [/events_list]

    http://wp-events-plugin.com/documentation/shortcodes/

    Thread Starter alakauf

    (@alakauf)

    Angelo, thanks for your answer. But if I understand well, this means that I will only display the events of category CREAT for the blog x in the page. As I want that all events CREAT are displayed, whatever the blog that has been created them, this means that I will have to duplicate the block for each blog. And I will have to update this every time I will add a new blog.

    Thread Starter alakauf

    (@alakauf)

    Hi,
    Finally I have written my own events pages, with a specific format, unsing the shortcodes instead of using the default page of the plugin. By this way I have obtained what I needed.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem with has_category with multisite in events page’ is closed to new replies.