dynamic php text always displays before other text
-
Another problem I’m having is that when I have an if statment,
if its true I want it to return hand-coded text AND dynamic text determined by what page it is.
I’ve figured out how to do that, but the problem is the dynamic text always displays first even if in the code I write it second, or between two “hand written” text snippets.
Anyone know how to get around this?
Here’s one example of what I mean:
<title> <?php foreach((get_the_category()) as $category) { echo $category->cat_name . ' '; } ?> <?php if (is_single()) wp_title('-',true,'right').$category_name; else bloginfo('name'); ?> </title>
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘dynamic php text always displays before other text’ is closed to new replies.