WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Trying to get blog URL into a shortcode …?

[Resolved] Trying to get blog URL into a shortcode …?

  • Agnes
    Participant

    @agneslesagegmailcom

    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>';

    http://wordpress.org/extend/plugins/shortcode-exec-php/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Trying to get blog URL into a shortcode …?’ is closed to new replies.