query.get_post

/ Database / query.get_post

Title : query.get_post
Purpose : Get post by post_slug and post_type or by passing the post_id
Syntax :
Input Parameters : post_id: By passing post ID
Post Slug and Post Type: By passing Post Slug and Post Type
Return Value : It will return post Data with all meta and taxonomy data
Example 1 :
Code :
Output : It will return post data.

Post Details –  [aw2.get template.p_data dump=t /]

Meta Details –  [aw2.get template.p_data.meta dump=t /]

 

Categories
Most Popular

Leave a Reply

Your email address will not be published.