Forums

Meteor Slides
property of non-object error (5 posts)

  1. papergecko
    Member
    Posted 4 months ago #

    Hi

    First of all thanks for the great plugin...

    I'm having a problem I'm hoping you can help with.

    I'm developing a bespoke theme and have run into problems with meteor slides on a particular template. The template uses get_pages to get a list of child pages, outputting the featured image, text excerpt and a series of thumbnails.

    This works fine until I add a (meteor slides) slideshow to one of the child pages. When I do this the child page itself works fine as does the slideshow, but the parent page in question gives me this error instead of the child page image etc:

    Notice: Trying to get property of non-object in ../themes/mytheme/gridview-work.php on line 24

    It seems as if the slideshow somehow prevents the template from being able to access the child page - I can't event get it to output the page ID.. Removing the slideshow returns everything to normal.

    The get_pages query is:

    $mypages = get_pages( array( 'child_of' => $post->ID, 'sort_column' => 'post_date', 'sort_order' => 'desc' ) );

    I'm hoping you can help!

    thanks

    http://wordpress.org/extend/plugins/meteor-slides/

  2. papergecko
    Member
    Posted 4 months ago #

    bump...

  3. JLeuze
    Member
    Posted 4 months ago #

    Sorry PG, I read your post, but I haven't had time to test that query yet.

  4. papergecko
    Member
    Posted 4 months ago #

    Thanks JLeuze

    I think I've sorted it in the meantime, so no need to trouble you. I changed the template to use WP_Query instead of get_pages which sorted it out.

    Thanks for looking anyway.

  5. JLeuze
    Member
    Posted 4 months ago #

    Glad to hear you got it figured out!

Reply

You must log in to post.

About this Plugin

About this Topic