Viewing 8 replies - 16 through 23 (of 23 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    can you try to resave permalinks under WP Settings > Permalinks? eg. try default permalink then test

    also, do you have any caching plugin?

    Thread Starter pcoles

    (@pcoles)

    saved permalinks
    no caching new wordpress installation and only em plugin

    still not working

    Do you have the correct event pages and event permalinks set in Events Manager settings?

    Are all your other feeds working correctly?

    Thread Starter pcoles

    (@pcoles)

    My main site has been working for years, i have update to the latest WP and EM and now it isnt working.

    To try and narrow down the problem I have installed a new version of wordpress with event manager as the only plugin on a vigin web site. I have created 2 events and am having problems with the RSS feed.

    yes i have the permalinks set correctly
    yes the other feeds are working

    If you go back to the previous version of Events Manager, does that solve the problem?

    Previous versions of Events Manager are here:
    https://www.ads-software.com/plugins/events-manager/developers/

    Thread Starter pcoles

    (@pcoles)

    i have now removed all caching on firefox and reload it each time and things are looking “a bit” more sensible.
    Which program is writing the RSS feed? i have modified rss.php and that doesn’t seem to be doing it (again could be caching on my server)

    the orignal problem was the the added scope “this week” for rss feeds had stopped working i have had added this code to the them function.php file and it had all been working fine

    function my_em_scope_conditions($conditions, $args){
    
    	if( !empty($args['scope']) && $args['scope']=='nextweek' ){
    
    		$start_date = date('Y-m-d',current_time('timestamp'));
    
    		$end_date = date('Y-m-d',strtotime("+7 days", current_time('timestamp')));
    
    		$conditions['scope'] = " (event_start_date BETWEEN CAST('$start_date' AS DATE) AND CAST('$end_date' AS DATE)) OR (event_end_date BETWEEN CAST('$end_date' AS DATE) AND CAST('$start_date' AS DATE))";
    
    	}
    	echo $scope;
    
    	return $conditions;
    
    }
    
    add_filter( 'em_get_scopes','my_em_scopes',1,1);
    
    function my_em_scopes($scopes){
    
    	$my_scopes = array(
    
    		'nextweek' => 'The Next Week'
    
    	);
    
    	return $scopes + $my_scopes;
    
    }

    Does that mean the everything works as it should when that custom code is removed?

    Thread Starter pcoles

    (@pcoles)

    my original post with this problem got jumped on by admin because i didnt put backticks round the code and added it to someone elses post, hence the lack of the code at the start of this post.

    The firefox caching was causing even normal rss feed from em to look wrong but clearing all of the caching and restarting firefox between looking proved it to be OK

    Dont even try to use opera to look at rss feeds.

    The problem was with my code (would you believe it!)
    add_filter( ’em_events_build_sql_conditions’, ‘my_em_scope_conditions’,1,2);

    is missing from the top.
    so the option appears in the rss setting page but doesnt get implemented and dumps all events into the rss feed.

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘Events RSS feed not working’ is closed to new replies.