Jump to content

Archived

This topic is now archived and is closed to further replies.

onespirit

Buttons, labels, badges styling without using shortcodes

Recommended Posts

onespirit

Hi Danny,

I'm trying to create a button that when clicked goes to an expiring download link.

The issue I'm having is that the expiring download link generator is also a short code.

Since the shortcode parser for WP won't allow shortcodes to execute from other shortcode attributes.

https://codex.wordpress.org/Shortcode_API#Square_Brackets

This code will fail:

[pl_button type="info" link="[expire-link][/expire-link]"]Download Now[/pl_button]

I was thinking I could using something like this instead:

<a class="button-class" href="[expire-link][/expire-link]">Download Now</a>

How would I call the Pagelines button styling to accomplish this?

Thanks ,

Joseph

 

 

 

Share this post


Link to post
Share on other sites
onespirit

Thanks very much Andrew!  That did the trick and yes shortcodes do work in URLs, it's just the "bad quotes" scenario as far as I can see that WP no longer supports in that article.

Thanks for the head up though and the solution. Looking forward to Thursday!

Share this post


Link to post
Share on other sites

×