A little php help
-
I am trying to replace the READ MORE text in my theme with
<?php the_content('<img src="/images/readmore.gif" alt="read more" title="Read more..." />'); ?>
I would like to use random images there :D, but I am confused how to put the tag
I tried
<?php the_content('<img src="/images/readmore_'rand(1,4);'.gif" alt="read more" title="Read more..." />'); ?> '); ?>
But I get ..
Parse error: syntax error, unexpected T_STRING in ***/index.php on line 22
Any help ?? ?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘A little php help’ is closed to new replies.