WordPress.org

Forums

Events Manager
[resolved] Next Event Excerpt and Image No Longer Displayed (7 posts)

  1. AustinBaze
    Member
    Posted 3 years ago #

    We are using WP 3.51 and recently upgraded to this version and at the same time to EM 5.39. After doing so, the home page display of the next (upcoming) event information that had been displayed below the event title disappeared.

    Do I need to tweak a setting someplace? Home page is at http://bdrileys.com and the blank space at the left, (under the orange band with the next event title, below the photo-animated GIF) is where an excerpt of the next event used to display along with a 67x67 pixel image icon.

    http://wordpress.org/extend/plugins/events-manager/

  2. angelo_nwl
    NetWebLogic Support
    Posted 3 years ago #


  3. angelo_nwl
    NetWebLogic Support
    Posted 3 years ago #

    can I know what did you used to display the events on your homepage? e.g. events widget, wp_query

  4. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 3 years ago #

    not sure what version you updated from but afaik we haven't made any changes in the last update that would affect this.

  5. AustinBaze
    Member
    Posted 3 years ago #

    Sorry, I'm the customer not the designer. I'm checking, but I seem to recall that he called a function "next_event" to display in the box. I will follow up.

  6. AustinBaze
    Member
    Posted 3 years ago #

    Sorry for the long delay. My web guy tells me this about that:

    I post to the homepage using this code:

    <?php show_mult_post('next-event'); ?>
            <?php $content = apply_filters('the_content',$include[0]->post_content); ?>
            <?php resume_exclude_pages(); ?>

    That pulls from this function:

    function show_mult_title($path) {
      $post = get_page_by_path($path);
      $title = apply_filters('the_content', $post->post_title);
      echo $title;
    }
    
    function show_mult_post($path) {
      $post = get_page_by_path($path);
      $content = apply_filters('the_content', $post->post_content);
      echo $content;
    }

    This code allows WP to install content from one page into another. In this case, it is pulling from the next-event page. The next-event page includes this short code:

    [show_next_event]

    The small window on the left of our front page used to automatically display a short excerpt from the next event in our calendar. It no longer does.

    Any ideas?

  7. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 3 years ago #

    pretty sure it's related to the above customizations. e.g. the line

    $post = get_page_by_path($path);

    may be returning something wrong.

    we probably 'fixed' something that 'broke' your function. or very (in fact more) possible that the problem started with upgrading to a later WP version. your theme or customizations probably worked before on an incorrect assumption on how WP works.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic