I have made a template out of the coding. I am selecting posts per competition round (or heat) on 2 tags. One hardcoded equals heatnumber. So if i add tag: heat1a to a post, this post (competitor) is added to heat 1 as the first competitor. That works fine :)
BUT! I would like to be able to use this page template for different competitions. For a series of events in a championship. So I thought, if I use the pagename in the get_post, I would add that that: pagename to a post, and the would be selected on that competition chart for that pagename.
So I throw in <?php wp_title(''); ?> But it breaks down. Here is the coding. Can someone please help me fix this. I know it's somewhat different then the average blog development but still :)
Error is below
This is the code
<?php $lastposts = get_posts('tag=heat24a&<?php wp_title(''); ?>'); foreach($lastposts as $post) : setup_postdata($post); ?>
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /www.nrgsports.nl/competition/wp-content/themes/comp/competition_tmpl.php on line 601