Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter slideaway

    (@modsuperstar)

    I’m going to drudge this topic up again as I’ve spent the last day fighting to try and get this functioning without any luck.

    Is there any plan to make it so the RSS template that works on the events page so that it is applied to the sub pages and specifically the category pages. I’m importing this data via RSS into another site and that is rendered somewhat useless when it doesn’t pull in the date and time of the event in question via the standard RSS feed format.

    Now I tried something like this in the em-rss.php file

    ‘if ( !empty($_REQUEST[‘dbem_rss’]) || (is_object($post) && $post->ID == get_option(‘dbem_events_page’) && $wp_query->get(‘rss’)) || (is_object($post) && $post->ID == get_option(‘dbem_categories_page’) && $wp_query->get(‘rss’)) ) { ‘

    as well as this in the events-manager.php file

    ‘if ( is_object($post) && $post->ID == get_option(‘dbem_events_page’) && $wp_query->get(‘rss’) || is_object($post) && $post->ID == get_option(‘dbem_categories_page’) && $wp_query->get(‘rss’) ) {‘

    And neither achieved what I was looking to do and given my limited PHP experience I’m just kinda grasping at straws here. Can anyone offer some insight here?

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    for me, adding to the end of category urls /feed/ works. You can check the demo site and see

    Thread Starter slideaway

    (@modsuperstar)

    Thanks for the reply Marcus. Where is this demo site that you mentioned? I googled and found a couple different threads with sites using the plugin, but not a specific demo site that I noticed on the official plugin site.

    In looking at a few sites that use the plugin I did see one that seemed to be doing what I wanted.

    https://tompkinsfireems.org/events/feed
    https://tompkinsfireems.org/events/categories/meetings/feed

    They both seemingly use the same template to display the info. I’m not sure if this is actually using the EM RSS layout, or whether it might just be pulling an excerpt with the same info.

    I’m having this issue on 2 different installs of EM, so I’m not sure if maybe there is some setting I’m missing or what I need to do to get this working.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    you do need to ensure that you have WP archiving turned on, maybe that helps?

    Thread Starter slideaway

    (@modsuperstar)

    Marcus: Could you clarify about wp archiving? I have archives for my site, as I understand it they’re on by default in a regular WordPress install. Is there something else that should be enabled?

    Looking at the demo site it definitely works the way I want it to, so now I need to figure out why it isn’t working on my site. I just tried turning off all my plugins except events manager and still had the same issue, so I can’t quite figure what might be going wrong. The one thing out of the usual with my site is that it is an IIS install of WordPress. I don’t figure it would make a huge difference, but maybe there’s something causing this function not to work properly. I’m going to give it a go on one of my apache based sites and see if that might be an issue.

    In EM Settings > Pages > Events List/Archives > Events page (select [No Events Page]) then Enable Archives?Yes

    Thread Starter slideaway

    (@modsuperstar)

    I’m looking at this problem again and believe I have found a discrepancy in the feeds.

    When I look at a category RSS feed like this link it loads the default RSS 2.0 template from wordpress.
    https://demo.wp-events-plugin.com/events/categories/easy-listening/feed/

    If I go to this URL it will use the EM RSS template.
    https://demo.wp-events-plugin.com/events/feed/

    I was tricked by this as they do look very similar but it is actually doing what I initially started this thread about. The EM RSS template isn’t applying to the category pages, but just returning a simplified version of the Events listing into the default RSS template. If you look at the source code of those 2 pages I linked you will see they are using different templates.

    I applied the fix that Agelonwl mentioned, but all that achieved was that both the events page and category pages would use the default WP template, and not the EM template.

    So I ask, is there a possible solution to this problem? This has been a huge issue for me as I need to use those RSS feeds on an external site, but since I can’t get the category pages to display the proper event data in the RSS feed it is quite problematic.

    Ideally I want the category RSS to pull from the EM RSS feed, so I can pull in all the date/time/location/description all into one formatted feed.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    but that’s the thing… if WP is generating a feed for a taxonomy, it has little to do with EM, it’s taxonomies and custom posts in WP.

    that EM feed is actually semi-redundant now as it was used when EM was not using custom post types

    what about your theme, did you try using the default 2011 theme?

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Plugin: Events Manager] RSS template applied to event categories’ is closed to new replies.