Web Hosting
  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

    Joined:
    Apr 27, 2017
    Messages:
    1
    Likes Received:
    0
    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?

    Thanks.
     
    #1

Share This Page

Web Hosting