Call to a page banner in page.php
-
I am trying to display a banner at the top of pages automaticly based on the slug name. Here is the code:
<img src=”<?php echo $siteurl; ?>/images/<?php echo $my_permalink; ?>.jpg” />
and here is what it renders:
<img src=”/images/.jpg” />
- The topic ‘Call to a page banner in page.php’ is closed to new replies.