• Resolved Menzer

    (@menzer)


    Hi for some reason the Event categories taxonomy does not seem to be registered on my multisite subsites but is displayed on the main site.

    Example…

    Main site:
    The ‘Event Categories’ menu link is there however it’s not on any of the subsites

    Mainsite:
    Essential Grid plugin can see all the categories which I select to show on a post grid however on subsites there are no categories to select

    In the Event settings under ‘General Settings’ there’s no category options however there’s options for Tags also there’s no option for categories under the ‘Pages’ settings but there is for tags

    Can anyone help I have gone through the database to see if anything is missing but I cannot find what the problem is.

    Many thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • On MultiSite Event Categories are only shown on the subblogs in the Event Edit pages, not in the menu, because you can only edit them on the main blog.

    Is there not a side meta box in your Edit Event Page either?

    Using Event Categories on MultiSite does have certain limitations, though.

    I am running one Dutch sub blog and one English, apart from my main site. I had to create custom placeholders to translate the Event Categories, for example.

    Since the Event Categories reside on the main blog, they cannot be accessed by third party plugins on the sub blogs, without custom coding. EM has that access built-in for itself. ??

    Even if you coded a snippet to display the Event Categories on the subblogs, their link would take you back to the main blog. ??

    If you really want to use categories in events on the sub blogs with all “native” functionalities, you could always add the blog categories to Events Manager. Then you can also filter the Events Table, etc – just like posts and pages.

    I could provide a snippet for that, if you’re interested. ??

    Thread Starter Menzer

    (@menzer)

    Thank you for prompt reply Patrick but I am wondering why tags are working fine on all websites, I thought categories also being a taxonomy this would work, everything else works.

    Maybe some $args needs to be changed in the register_taxonomy() for example??

    Thread Starter Menzer

    (@menzer)

    @duisterdenhaag did you manage to get the categories to work on all the sites? if so how, thanks

    Yes, I thought so too, but (in EM anyway) there is a difference. Event Categories on MultiSite are linked to the correct posts in wp_em_meta. That is not used on single installations.

    A while back I dove into that (can’t remember what I wanted to achieve), but it was quite different from native categories. So I gave up.

    What I have is this:
    Main Site, not actively using EM.
    Blog 1 (Dutch) and Blog 2 (English), linked together with MultiSite Language Switcher.
    My Event Categories are on the main site (of course). In the back-end they are always English. In the Front-End I use a custom placeholder that translates the Category Name.

    I need the Event Categories to exclude from the Events List, widget, etc.

    But in the Back-End I often need to look for a certain event in a certain category fast. Filtering does not work for EM Cats on MU. Also, I send invoices for private events using Sliced Invoices and I need categories for that too.

    So, I have added the native Blog Categories to Events Manager. That results into two side meta boxes (Blog Categories, just like posts & page and Event Categories with limited options).

    In the Front-end I actually rarely use the blog categories for events. But I found it to be really handy for the back-end. I guess, you could use the single-category.php template to list the Blog-used-in-Events lists, but that would require custom coding, linking the two together.

    Here’s the snippet to use Blog Categories in Events Manager:

    function stonehenge_em_use_wp_categories() {
    	$supported_array = (EM_MS_GLOBAL && !is_main_site()) ? array():array(EM_POST_TYPE_EVENT,'event-recurring');
    	register_taxonomy_for_object_type('category',EM_POST_TYPE_EVENT);
    	register_taxonomy_for_object_type('category','event-recurring');
    	// register_taxonomy_for_object_type('category',EM_POST_TYPE_LOCATION);
    }
    add_action('init', 'stonehenge_em_use_wp_categories', 100);
    
    Thread Starter Menzer

    (@menzer)

    That is why is good to talk, you made me realise I don’t really need to use the categories for the 3rd party essential grid, I can just use tags as i only want to display featured posts, the standard categories in admin meta boxes work and I can knock up some code to handle that for the front end… I appreciate all your help as you help me realise my solution and your code snippet will help someone else

    thank you for takin the time to help me ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Categories missing on Multisites subsites’ is closed to new replies.