Using get_post to obtain posts information

If you know the ID of a post you can get_post to request the associated information. One thing to keep in mind is that the ID parameter MUST be a variable. get_post also takes a second parameter that allows you specify the type of output that you prefer (OBJECT, ARRAY_A for associative array, and ARRAY_N for numeric array).

Leave a Reply