URL replace
-
Hello,
i have a problem i cant figure out..
I want to create shortcode like [gsm $brand=8810]
that creates a link like this: https://gsm.com/8810This is what i came up with, but it aint working:
function gsm_url($brand) { echo "<a href='https://gsm.com/$brand>$brand'</a>"; } add_action('gsm','gsm_url'); do_action('gsm');
Where do i go wrong?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘URL replace’ is closed to new replies.