RSS Event Start/End Times

Home Forums Calendar Products Events Calendar PRO RSS Event Start/End Times

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #942623
    Dan Feeley
    Participant

    I 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: 51

    xmlns: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: 54

    xmlns:ev=”http://purl.org/rss/2.0/modules/event/” rn>

    #942773
    Geoff
    Member

    Hi 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!
    Geoff

    #942805
    Dan Feeley
    Participant

    I 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/k01r2fwj

    #942870
    Geoff
    Member

    Hey 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!
    Geoff

    #943125
    Dan Feeley
    Participant

    As soon as I tried to save it I got a parse/syntax error. Should there be a closing single quote somewhere on that line?

    #943172
    Geoff
    Member

    Oh 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.
    #944224
    Dan Feeley
    Participant

    Thank you, I think this is all sorted out.

    #944303
    Geoff
    Member

    Awesome! 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

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘RSS Event Start/End Times’ is closed to new replies.