How to nest php inside php
-
I want to display posts from a tag, but I want the tag to be modified based on the page.
Example (only important part: the_title and -suffix. I want to php call the title and then add -suffix myself manually to this code) (obviously this code doesn’t work):
<?php $args=array( 'tag' => '<?php the_title(); ?>-suffix', 'showposts'=>2, 'caller_get_posts'=>1 );
…etc
Is anyone able to show me how to call the title here for tag but make it so its ‘the_title-suffix’?
Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to nest php inside php’ is closed to new replies.