Documentation / Tutorials / Tutorials & How to’s
Getting Single Post Data
/ Tutorials & How to’s / Getting Single Post Data
Using get_post parameter of aw2.query you can get the details of a single post within awesome studio platform.
If you have post slug and post type use following code sample
[aw2.query get_post post_slug=hello post_type=post set='a' /] <div>[aw2.get a.post_title]</div>
If you have have post id then use following code sample.
[aw2.query get_post post_id=1 set='a' /] <div>[aw2.get a.post_title]</div>