WordPress.org

Ready to get started?Download WordPress

Forums

bloginfo('template_url'); in the_content(); (4 posts)

  1. coOtto
    Member
    Posted 7 years ago #

    Hello all. I want to replace more... link with image, somthing like this:
    <?php the_content("<img src='bloginfo('template_url');/images/bluemore.gif'>"); ?>

    But I get error. I want to put full path of template direcory in the_content(); function. Any ideas?

  2. coOtto
    Member
    Posted 7 years ago #

    Is it so difficult?

  3. Pravin Paratey
    Member
    Posted 7 years ago #

    change it to read

    <?php
    $data = '<img src="' . get_bloginfo('template_url')
    	. '/images/bluemore.gif" />';
    the_content($data);
    ?>
  4. coOtto
    Member
    Posted 7 years ago #

    pravin, I'll try it, thanks ;)

Topic Closed

This topic has been closed to new replies.

About this Topic