• Resolved katecinch

    (@katecinch)


    Hello,

    I am getting the following error when I try to preview any event, or try and view the single even:

    Catchable fatal error: Object of class WP_Error could not be converted to string in ….public_html/wp-content/themes/nimva/functions/custom_functions.php on line 425

    The code referred to in the custom_functions.php file is:

    if(is_singular('event')) {
                echo get_the_term_list($post->ID, 'event-categories', '<li>', '&nbsp;/&nbsp;&nbsp;', '</li>');
                echo '<li>'.get_the_title().'</li>';
            }

    Any ideas as to what is causing this conflict?

    Many thanks in advance,
    Kate.

    https://www.ads-software.com/plugins/very-simple-event-list/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Guido

    (@guido07111975)

    Hi Kate,

    It seems your theme also has a build in custom post type for events? Somehow there’s a conflict with my plugin. My plugin only hooks into template file single.php or single-event.php of your theme, that’s it.

    Guido

    Thread Starter katecinch

    (@katecinch)

    I contacted the theme developers and have fixed the issue.

    Plugin Author Guido

    (@guido07111975)

    Nice to hear it’s solved now!

    Guido

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Trouble displaying single event’ is closed to new replies.