Forums

[resolved] Call to a page banner in page.php (1 post)

  1. Zchoff
    Member
    Posted 6 years ago #

    I am trying to display a banner at the top of pages automaticly based on the slug name. Here is the code I have:
    <img src="<?php echo $siteurl; ?>/images/<?php echo $my_permalink; ?>.jpg" />
    and here is what it renders:
    <img src="/images/.jpg" />

Topic Closed

This topic has been closed to new replies.

About this Topic