Version 1.6.2
A minor update was released today - version 1.6.2.
2 more functions were made available in Twig Templates:
-
get_post_meta
- utilizes the native WordPress function with the same name -
get_current_post_meta
- the same but does not require you to pass the post ID as its first parameter, and instead uses the ID of the current post in the WP loop.
A real use-case utilizing the new plugin feature with a step-by-step tutorial can be found here:
The main point of the tutorial is the ability to dynamically build URL to query Discourse for comments based on a topic ID, which can be stored in a custom post field and retrieved by the get_current_post_meta
function, see the Data URL field: