WordPress.org

Forums

Shortcode Exec PHP
[resolved] Trying to get blog URL into a shortcode ...? (3 posts)

  1. Agnes
    Member
    Posted 2 years ago #

    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/

  2. M66B
    Member
    Plugin Author

    Posted 2 years ago #

    Try putting a dollar sign before myUrl_Blog like $myUrl_Blog (two times).

  3. Agnes
    Member
    Posted 2 years ago #

    Right, that should be....!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Shortcode Exec PHP
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.