• I’ve stared at this code, but I can’t get the link <p>test</p> work correctly in the following code.

    What am I missing?

    <div class="grid_2 alpha" >
    <p>
    <a href="javascript:ReplaceContentInContainer('reflectioncontent','
    <?php
    $post_id = $testpost_id[5];
    $queried_post = get_post($post_id);
    ?>
    <h2><?php echo $queried_post->post_title; ?></h2>
    <p><?php echo $queried_post->post_content; ?></p>
    <p><a href="http://test.com">test</a></p>
    ')">
    MONDAY
    </a>
    </p>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Code syntax error?’ is closed to new replies.