pcoles
Forum Replies Created
-
go to your media library add a photo sphere jpg picture taken with your Theta S to the library copy the URL (something like https://mysite.co.uk/wp-content/uploads/2017/02/R0010023.jpg) and paste it between the quotes following img=
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.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; }
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 workingsaved permalinks
no caching new wordpress installation and only em pluginstill not working
0 – its been working fine for years
could this problem be caused by a server setting?
currently set RSS feed for todays events only, now getting both events neither for todays date
em-install.php
look like it has a possible typo in it
shouldn’t ’em_rss_pubdate’ => date(‘D, d M Y H:i:s +0000’),
be ‘dbem_rss_pubdate’ => date(‘D, d M Y H:i:s +0000’),not getting very far with this one.
https://paulcoles.co.uk/em
has clean new WP installaion
clean new unmodified EM plugin
2 events british summer june25 and christmas dec25
rss scope is set to all events
only british summer is displaying in feedthanks for your help Richard
quite happy to give you admin login and password so you can see it yourself.
there are 2 events and only 1 is showing in the current example
Hi just installed so
EM 5.6.4
WP 4.5.2
brand new installation
https://paulcoles.co.uk/eminstalled wordpress from scratch in new directory added 2 events both evetns appear in feed (one being christmas day) change filter to show events this month and christmas day still appears in the feed
it would appear that the filter on rss feeds has stopped working
after looking at a similar problem i changed
Settings > Pages > WordPress event archives > Enable Archives to no
then couldnt get a feed page (error 404)
so i changed this back to yesnow getting all events, filter not working!