• Resolved jbx

    (@jbx)


    Hi,

    I have just installed WordPress Event Manager on my wordpress 3.4.2 installation and I am struggling to get a couple of things to work.

    First of all, when I click on the Event’s page, I am just getting the title ‘Events’ and then the word ‘CONTENT’ (within a <p>). No idea if something is wrong with my theme, but I did not override anything or move anything from the default events-manager templates. What could be the reason I am not getting the list of events?

    How can I stylize the single event details page? I followed the information here http://wp-events-plugin.com/documentation/using-template-files/ and had a look at the file event-single.php which I presume is the right file to edit, but all its got is 1 relevant line:

    echo $EM_Event->output_single();

    Which I suppose comes from the core.
    What is the correct way to stylize the single event’s page? Is there an example anywhere which shows how I can do this?

    Thanks.

Viewing 15 replies - 1 through 15 (of 19 total)
  • hi,

    1. it should be CONTENTS (with S)
    2. you can try to make a copy of your theme and then rename it to single-event.php or using event-single.php you can try something like this

    <header class="entry-header">
      <h1 class="entry-title"><?php echo $EM_Event->output('#_EVENTNAME'); ?></h1>
    </header>
    <div class="entry-content">
      <p><?php echo $EM_Event->output('#_EVENTNOTES'); ?></p>
    </div>

    Thread Starter jbx

    (@jbx)

    Re 1: Yes its CONTENTS, however I want the list of events not the word CONTENTS. How do I get that?

    Re 2: Thanks, I’ll try to create a template using the approach you suggested.

    try settings > pages > event pages > Override with Formats

    also, correction to the above post; try to make a copy of your theme single.php and then rename it to single-event.php – http://wordpress.org/support/topic/events-manager-eventslocation-pages-cant-get-sidebar?replies=20

    Thread Starter jbx

    (@jbx)

    I tried turning Override with Formats ON and OFF and without any effect.

    Where is this ‘CONTENTS’ word coming from?

    is it coming from the page you set at settings > pages > event list/archives; e.g. wp pages > events

    also, do you have a sample link?

    Thread Starter jbx

    (@jbx)

    I don’t have a sample link unfortunately because its still not online.

    The settings -> pages -> event list/archives is just the default settings.
    Its pointing to the Events page.

    I went to the Events page and there is the message on top saying:
    “This page corresponds to Events Manager events page. Its content will be overriden by Events Manager, although if you include the word CONTENTS (exactly in capitals) and surround it with other text, only CONTENTS will be overwritten. If you want to change the way your events look, go to the settings page.”

    However, the CONTENTS text is not really being replaced for some reason when I go to the Events page. I didn’t touch the page or anything, its exactly the default settings you get after installing the plugin.

    Thread Starter jbx

    (@jbx)

    OK I’ve got closer to what the issue is, however no idea how to solve it.
    I’ve enabled the default twentyeleven theme and the list of events appeared.

    When I enable my own theme the list of events just displays the word ‘CONTENT’. So evidently I have something missing in my theme that twentyeleven is doing. I’ve had a quick look through the files and no idea what it could be. I’ve copied over page.php but it didn’t make a difference so it must be something in the other files.

    What could be the reason for the CONTENTS not being parsed and replaced by the list of events in my theme?

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    chances are your theme isn’t using the_content() to output the content of the page, and therefore the filter the_content isn’t being triggered.

    either that or your theme is disabling the_content filter.

    Thread Starter jbx

    (@jbx)

    That was it! Thanks a lot for that.

    I actually did not have any page.php defined yet, so it was reverting to index.php which is not designed to display the_content() but it displays a list of articles.

    Cheers!

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    glad you sorted it out 😉

    russclem

    (@russclem)

    I’m having exactly this problem using the Sahifa premium theme.

    What do I have to do to solve the problem? The above solution doesn’t make a whole lot of sense to me.

    I’m using the latest version of WordPress, with Wampserver.

    agelonwl

    (@angelonwl)

    hi @russclem, do you have a sample link for us to see?

    russclem

    (@russclem)

    I wish, but the site isn’t online yet, it’s all local.

    Best I can do is a screenshot?

    agelonwl

    (@angelonwl)

    yes, you can also post some screenshots with description

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    first step… check that your settings in EM are correct by switching to twentytwelve and see if the events list shows up

    secondly, if it does, then you should ask your theme maker if they are using the_content() to output page content (they should be doing this if not)

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘[Plugin: Events Manager] event page and event list page’ is closed to new replies.