Home › Forums › Calendar Products › Events Calendar PRO › RSS Event Start/End Times
- This topic has 7 replies, 2 voices, and was last updated 11 years, 2 months ago by
Geoff.
-
AuthorPosts
-
February 15, 2015 at 5:15 pm #942623
Dan Feeley
ParticipantI was following the the code on this link for displaying the start/end times for the event. I get the following error:
Required white space was missing.
Line: 8 Character: 51xmlns:ev=”http://purl.org/rss/2.0/modules/event/”rn>
If I add a space after the quote I get this error:
A name contained an invalid character.
Line: 8 Character: 54xmlns:ev=”http://purl.org/rss/2.0/modules/event/” rn>
February 16, 2015 at 9:36 am #942773Geoff
MemberHi there, Dan! Thanks for getting in touch and sorry for the issue with the snippet.
I just tried the snippet myself in the functions.php file of the default WordPress Twenty Fourteen theme and it seems to work smoothly. My hunch is that you will need to double-check your formatting to make sure the snippet was pasted correctly and is formatted in a way that is consistent with the rest of your theme’s functions.php file.
Does the same issue pop up when you activate Twenty Fourteen? How about if you disable all other plugins?
Let’s start there and see what we find. 🙂
Cheers!
GeoffFebruary 16, 2015 at 11:52 am #942805Dan Feeley
ParticipantI disabled all other plugins and set Twenty Fourteen as the default theme but no luck.
I’ve never had an issue doing a copy/paste before but I can’t get this one to work.
Here is what I have: http://pastebin.com/k01r2fwjFebruary 16, 2015 at 3:33 pm #942870Geoff
MemberHey Dan! Thanks for following up.
Does the code you shared work if you change Line 16 to:
echo 'xmlns:ev="http://purl.org/rss/2.0/modules/event/"';Please give that a shot and let me know if you see a difference.
Cheers!
GeoffFebruary 17, 2015 at 11:03 am #943125Dan Feeley
ParticipantAs soon as I tried to save it I got a parse/syntax error. Should there be a closing single quote somewhere on that line?
February 17, 2015 at 2:25 pm #943172Geoff
MemberOh gosh, sorry about that–it looks like the code I provided got garbled when I published it. My apologies!
It should be:
echo ‘xmlns:ev=”http://purl.org/rss/2.0/modules/event/”‘;
Give that a try instead and sorry again about the mishap there. 🙂
Geoff
-
This reply was modified 11 years, 2 months ago by
Geoff.
February 23, 2015 at 4:40 am #944224Dan Feeley
ParticipantThank you, I think this is all sorted out.
February 23, 2015 at 9:03 am #944303Geoff
MemberAwesome! Thanks for following up and letting me know. I’ll go ahead and close those thread, but please feel free to open a new one if anything else comes up and we’d be happy to help. 🙂
Cheers,
Geoff -
This reply was modified 11 years, 2 months ago by
-
AuthorPosts
- The topic ‘RSS Event Start/End Times’ is closed to new replies.
