en

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


  |     Browse all


wp_get_single_post [ WordPress Function ]

wp_get_single_post ( $postid = 0, $mode = OBJECT )
Parameters:
  • int $postid Post ID.
  • string $mode How to return result, either OBJECT, ARRAY_N, or ARRAY_A.
Returns:
  • object|array Post object or array holding post contents and information
Defined at:



Retrieve a single post, based on post ID.

Has categories in 'post_category' property or key. Has tags in 'tags_input' property or key.

Examples [ wp-snippets.com ]

Top Google Search Results

User discussions [ wordpress.org ]

0 User Note(s)

None yet. Be the first!

Add New ...



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