WordPress.org

Ready to get started?Download WordPress

Forums

bloginfo inside printf statement! (2 posts)

  1. mamouri
    Member
    Posted 7 years ago #

    Hi
    I want use bloginfo function inside a printf statement. Here is my code:

    printf ('<li><a href="'.bloginfo('url').'"files%s"</a></li>', $np->meta_value);

    The output:
    http://localhost/wp<li><a href="filetest.zip"</a></li> </ul>

    Is there any alternative for bloginfo that could be used inside a printf statement?

  2. leonardof
    Member
    Posted 6 years ago #

    Use get_bloginfo instead of bloginfo.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.