Trying to get blog URL into a shortcode …?
-
I can’t get the Blog URL into a shortcode.
If I call the parameter before, it either prints it or causes an error. I wonder if it has to do with the ‘echo’ option.I also tried with get_bloginfo(); and more… no way?
myUrl_Blog = site_url(); echo '<a href="'.myUrl_Blog.'">'.$content.'</a>';
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Trying to get blog URL into a shortcode …?’ is closed to new replies.