The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

getting post children (1 post)

  1. ifelse
    Posted 10 years ago #

    Does anyone know if there's a template tag to get the children for a given post i.e. without running a DB query ala $wpdb->get_results("SELECT * " .
    "FROM $wpdb->posts " .
    "WHERE post_parent = $post->ID ");

    I'm trying to retrieve the attached images for a given post.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.