Support » Fixing WordPress » Something else on WP, post selection on dynamic page-title

  • Hi, I am building this on allmighty and beloved WP, I am nicely on track

    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

     $lastposts = get_posts('tag=heat24a&amp;<?php wp_title(''); ?>');
     foreach($lastposts as $post) :

    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in / on line 601

  • The topic ‘Something else on WP, post selection on dynamic page-title’ is closed to new replies.