• Resolved Opally

    (@opally)


    I see in the codex that standard usage states
    echo site_url();
    but the output is by default an echo. Is there a good reason to use echo when using site_url() to build paths and links?

    Hmm, I just ran a test of it in the header, and when I removed the “echo” the site_url() link became the local page link. Why is that?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Is echo redundant for site_url()?’ is closed to new replies.