Properties of the WP_Post class

  • ID
  • comment_count
  • comment_status
  • filter
  • guid
  • menu_order
  • ping_status
  • pinged
  • post_author
  • post_content_filtered
  • post_content
  • post_date_gmt
  • post_date
  • post_excerpt
  • post_mime_type
  • post_modified_gmt
  • post_modified
  • post_name
  • post_parent
  • post_password
  • post_status
  • post_title
  • post_type
  • to_ping

References

developer.wordpress.org/reference/classes/wp_post

WordPress filters, the_content() and get_the_content()

An important difference between the functions the_content() and get_the_content() in WordPress is the filter named the_content. The first function applies it. The second does not.

To have get_the_content() return the same markup that is echoed by the_content(), apply the the_content filter.

For example:

echo apply_filters('the_content', get_the_content());

WordPress conditionals

Query conditionals

Other conditionals