Can't retrieve attachments
-
Hello there,
I’m currently working on a theme.
But the problem is that whenever I try to get attachments to the post by using the function get_children() and get_posts(), it doesn’t work for post format Image and Gallery. However it works fine for standard post format.
The code I use inside the loop is as follows:$children =& get_children(array( 'post_type' => 'attachment', 'post_parent' => $post->ID ));
Waiting for the help,
thanks in advance 🙂
- The topic ‘Can't retrieve attachments’ is closed to new replies.