en

wpseek.com
A WordPress-centric search engine for devs and theme authors


  |     Browse all


get_post [ WordPress Function ]

get_post ( $post, $output = OBJECT, $filter = 'raw' )
Parameters:
  • int|object $post Post ID or post object.
  • string $output Optional, default is Object. Either OBJECT, ARRAY_A, or ARRAY_N.
  • string $filter Optional, default is raw.
Uses:
  • $wpdb
Links:
Returns:
  • mixed Post data
Defined at:

Similar Functions: get_posts, get_port, get_host, getpos, edit_post


Retrieves post data given a post ID or post object.

See {@link sanitize_post()} for optional $filter values. Also, the parameter $post, must be given as a variable, since it is passed by reference.

Examples [ wp-snippets.com ]

Top Google Search Results

More ...

0 User Note(s)

None yet. Be the first!

Add New ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics