• Resolved Mofazzul

    (@mofazzul)


    Hi, I have used the shortcode ultimate plugin to show custom post type posts in a page, now its showing a fatal error suddenly and the full error as bellow:
    `PHP Fatal error: Uncaught Error: Call to a member function have_posts() on array in /home/versaggic/public_html/wp-content/themes/adelia/home_project.php:6
    Stack trace:
    #0 /home/versaggic/public_html/wp-content/plugins/shortcodes-ultimate/includes/shortcodes/posts.php(428): include()
    #1 /home/versaggic/public_html/wp-content/plugins/shortcodes-ultimate/includes/shortcodes/posts.php(415): su_shortcode_posts_include_template(Array, Array)
    #2 /home/versaggic/public_html/wp-includes/shortcodes.php(356): su_shortcode_posts(Array, ”, ‘su_posts’)
    #3 [internal function]: do_shortcode_tag(Array)
    #4 /home/versaggic/public_html/wp-includes/shortcodes.php(228): preg_replace_callback(‘/\\[(\\[?)(su_pos…’, ‘do_shortcode_ta…’, ‘[su_posts templ…’)
    #5 /home/versaggic/public_html/wp-content/plugins/js_composer/include/helpers/helpers.php(247): do_shortcode(‘[su_posts templ…’)
    #6 /home/versaggic/public_html/wp-content/plugins/js_composer/include/templates/shortcodes/vc_column_text.php(31): wpb_js_remove_wpautop(‘<p>[su_posts te…’, tr in /home/versaggic/public_html/wp-content/themes/adelia/home_project.php on line 6`

    I have attached the link above where you can see yourself, here also: https://www.versaggiproperties.com/pro/

    Kindly let me know what is the reason of it and how to solve it.

    The page I need help with: [log in to see the link]

The topic ‘Shortcode showing an fatal error’ is closed to new replies.