Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Trying to get property of non object

Discussion in 'Troubleshooting & How-To's' started by IrishGS, Apr 27, 2017.

  1. IrishGS

    New Member

    Apr 27, 2017
    Likes Received:
    When trying to update my website I went to change an image on qode slider. I removed the image that was there and the new image is not showing on the homepage, instead I am getting the notice below and a blank slider.

    Notice: Trying to get property of non-object in /var/www/web/wp-content/themes/irish/includes/shortcodes/shortcode-elements/slider.php on line 19

    This is the code from line 13-19
    if ($slider != "") {
    $args = array(
    'post_type'=> 'slides',
    'slides_category' => $slider,
    'orderby' => "menu_order",
    'order' => "ASC",
    'posts_per_page' => -1

    Does anyone have any suggestions on how to fix this issue?


Share This Page

Monarch Social Sharing Plugin