This is a nice plugin! Is there a way to add dynamic values to the newly added attribute? Say I want the value to be the post title, instead of typing in the post title manually, is there a way to dynamically insert the post title?
Thank you @websevendev ! Your way works! I did try to create a custom shortcode to display the post title and added the shortcode to the value field to see if that will work. Unfortunately, it didn’t. It will also be great if we can do that.
Using shortcode in the the value field actually works.
I just noticed that I had a typo in my attribute, I have it has ‘arial-xxx’, instead of ‘aria-xxx’. That’s why it was showing the shortcode as plain text
thank you for helping!
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Adding custom attributes with dynamic values’ is closed to new replies.