Adding raw PHP into pages – bad practice?
-
Run a few WP sites, used some new developers for this one – they have added PHP into all pages, mostly to add images.
For example:
<img src=”<?php bloginfo(‘template_url’); ?>/images/facebook.png” alt=”” />
As such we get lots of warnings that saving this article will render all contained PHP code permanently unuseful.
Compared to me, they are supposedly the experts at WP, but that seems wrong to me?
Any opinions greatly welcome.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Adding raw PHP into pages – bad practice?’ is closed to new replies.