[wp-trac] [WordPress Trac] #29732: post_template.php get_the_content() incorrect work when run without get_header?

WordPress Trac noreply at wordpress.org
Tue Sep 23 10:42:15 UTC 2014


#29732: post_template.php get_the_content() incorrect work when run without
get_header?
-------------------------------+------------------------------
 Reporter:  Skynin             |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:  trunk
 Severity:  normal             |  Resolution:
 Keywords:                     |     Focuses:
-------------------------------+------------------------------
Changes (by SergeyBiryukov):

 * component:  Post Formats => Posts, Post Types


Comment:

 `get_the_content()` should only be used inside the loop. Looks like you're
 trying to call it separately.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29732#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list