How can I access the page data when a custom tag (shortcode) is rendered? #1591
Unanswered
gabipetrovay
asked this question in
Q&A
Replies: 3 comments 2 replies
-
Possibly related #741 |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hi @gabipetrovay, I guess that, in your case, you can pass ---
title: Your Title
---
{% myCustomTag title %} |
Beta Was this translation helpful? Give feedback.
1 reply
-
I think page data may be passed to filters, shortcodes, and transforms in the way |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Having such a page with the YAML front-matter:
How can I access the front-matter page data in the handler function of the
customTag
shortcode?Posted also on Stack Overflow.
Beta Was this translation helpful? Give feedback.
All reactions