Can only use template properties once? %TITLE% %URL%
Permalink Browser Info Environment
I'm am trying to make adjustments to the default template. I would like to reuse template properties in the 'post' template. As soon as I try to use a property a second time, I get only a rendering of the property literal. So adding a second reference to the post URL using %URL%, actually outputs "%URL%" instead of the post's url.
My end goal is to add social sharing buttons to the bottom of posts (I've tried a bazillion WP social plugins all of which either do not render in the c5 blog or render only partially, or in preview only). To do this, I think I can use iframe versions of the social buttons, but they require the URL of the post in order to work.
Any help would be appreciated.
My end goal is to add social sharing buttons to the bottom of posts (I've tried a bazillion WP social plugins all of which either do not render in the c5 blog or render only partially, or in preview only). To do this, I think I can use iframe versions of the social buttons, but they require the URL of the post in order to work.
Any help would be appreciated.
Type: | Discussion |
---|---|
Status: | New |
The JS replace() was only replacing a single instance of "%URL%" instead of a global replace using regex /%URL%/g. I changed these lines to make the fix (fixing %TITLE% while I'm at it):
from the original: