[Plugin: Meteor Slides] property of non-object error
-
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
- The topic ‘[Plugin: Meteor Slides] property of non-object error’ is closed to new replies.