get_children not working in category page
-
I’m using
get_children()
in a function that displays all the images attached to a post.$images = get_children( array('post_parent' => $post->ID, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID') );
It works great when called the function is called from single.php but it doesn’t retrieve any images when called from category.php.
Can anyone help me?
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘get_children not working in category page’ is closed to new replies.