WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] event page and event list page (20 posts)

  1. jbx
    Member
    Posted 1 year ago #

    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.

  2. agelonwl
    Member
    Posted 1 year ago #

    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>
  3. jbx
    Member
    Posted 1 year ago #

    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.

  4. agelonwl
    Member
    Posted 1 year ago #

    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

  5. jbx
    Member
    Posted 1 year ago #

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

    Where is this 'CONTENTS' word coming from?

  6. agelonwl
    Member
    Posted 1 year ago #

    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?

  7. jbx
    Member
    Posted 1 year ago #

    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.

  8. jbx
    Member
    Posted 1 year ago #

    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?

  9. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    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.

  10. jbx
    Member
    Posted 1 year ago #

    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!

  11. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    glad you sorted it out ;)

  12. russclem
    Member
    Posted 1 year ago #

    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.

  13. agelonwl
    Member
    Posted 1 year ago #

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

  14. russclem
    Member
    Posted 1 year ago #

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

    Best I can do is a screenshot?

  15. agelonwl
    Member
    Posted 1 year ago #

    yes, you can also post some screenshots with description

  16. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    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)

  17. russclem
    Member
    Posted 1 year ago #

    Well now that's strange.

    I get the same problem when using Twenty Twelve.

  18. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    you may want to check your settings on Events > Settings > Pages and then open up a new ticket, given this is a different problm (plus it's old and resolved)

  19. russclem
    Member
    Posted 1 year ago #

    Okay, got some screenshots together, I'll make a new ticket.

  20. russclem
    Member
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic