• I am using get_children to return the post’s Photos and I’d like to retrieve the post’s text (to format it etc..). Using the_content() will just spit out EVERYTHING…images and all. I just need the text from the post, that is all.

    Any suggestions would be super rad.

Viewing 1 replies (of 1 total)
  • Thread Starter generalsalt

    (@generalsalt)

    The get_children documentation is a little lacking…I was curious if the “post_type” argument or the “post_mime_type” argument can target text the way it can attachments?

    Of course this is wrong..but this is what I mean..

    $text =& get_children( array(
    ‘Content-Type’=>’text/plain’,
    ‘post_parent’ => get_the_ID(),
    ));

Viewing 1 replies (of 1 total)
  • The topic ‘Is there a get_post_text() kind of thing?’ is closed to new replies.