pass link in href
-
I have a custom link in that format
$custom_url = the_permalink();;I tried this but it not work
<?php echo do_shortcode(‘[mycred_link amount=1 href=”‘.esc_url($custom_url).'” target=”_blank”]View[/mycred_link]’); ?>
what is the correct shortcode?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘pass link in href’ is closed to new replies.