WordPress.org

Ready to get started?Download WordPress

Forums

getting post children (1 post)

  1. ifelse
    Member
    Posted 8 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

Tags

No tags yet.