• Resolved cw17s0n

    (@cw17s0n)


    When I create an event and enter a paragraph, the paragraph doesn’t show on the singe event view, I get a summary when hovering over the event in the calendar grid view, I checked the source for the page and it’s just an empty div, and I checked single.php and <?php the_content() ?> is inside <div class=”summary”>. Any thoughts?

    http://wordpress.org/extend/plugins/the-events-calendar/

Viewing 10 replies - 1 through 10 (of 10 total)
  • bolide

    (@bolide-1)

    Does it work without the paragraph? If so then it may be because whatever paragraph character is being entered into the database is not being escaped when the data is displayed. Have a look at this thread:

    http://wordpress.org/support/topic/plugin-nextgen-gallery-cropped-alt-title-texts-bad-escaping?replies=5

    Nick Froome

    Thread Starter cw17s0n

    (@cw17s0n)

    When I said paragraph I just meant several sentences not <p></p>. Out of curiosity though I toggled over into the html tab and added and removed <p></p> and both had the same result, empty content.

    bolide

    (@bolide-1)

    You shouldn’t be seeing PHP code like that in the HTML – it should be executed by the server. Sounds like a problem with one of the PHP files in the plugin

    Have you edited the PHP? Either way I’d replace it with a fresh copy – maybe delete the plugin from the plugins folder & reinstall

    If you have edited anything take a backup of the changed files first

    Nick Froome

    Thread Starter cw17s0n

    (@cw17s0n)

    I aplogize I may not have been clear, when I said <?php the_content() ?> is in single.php I meant when looking at the php file in the editor, not in a browser, just verifying that it is there in the file, since nothing renders in the browser inside <div class=”summary”> </div>.

    Hey cw17s0n, if you’re still having issues with this we can try to help you out. Do you have a site we could look at, or maybe the broader code you’re using (in a pastie.org link or something similar)? I can bring a dev from our team in as needed at that point. Thanks!

    Thread Starter cw17s0n

    (@cw17s0n)

    Hi thanks for offering to take a look.

    I don’t have a site for you to look at, internal only site, but I will provide as much information as possible.

    my template page: http://pastebin.com/uu1ReHxX
    how the page is in the browser: http://pastebin.com/YTrbwTt3

    you’ll see on line 107 of the last pastebin <div class="summary"></div> which from what I can tell is where <?php the_content() ?> should output, according to the copy of single.php which exists in the events folder within my theme, the pastebin of which can be seen here: http://pastebin.com/jwPHGAa6

    I really appreciate your help,
    Chuck

    Hey cw17s0n, kind of sounds like a conflict somewhere because the_content should definitely be spitting out whatever you have input for an event. Are you running the latest version of the plugin? What about WordPress? Have you tried deactivating other plugins to see if there’s a conflict somewhere?

    Thread Starter cw17s0n

    (@cw17s0n)

    Plugin 2.0.5
    Wordpress 3.3.1

    I’ve deactivated all plugins but the calendar.

    And the theme is boilerplate, http://wordpress.org/extend/themes/boilerplate

    Thread Starter cw17s0n

    (@cw17s0n)

    I was missing the_content on the actual template page, I was thinking that since single.php had the_content in it that it was not needed, I was wrong 🙂 Thanks for the great plugin.

    Glad you figured it out!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Plugin: The Events Calendar] Missing the_content() for single event view’ is closed to new replies.