Forums

Code syntax error? (2 posts)

  1. JeremiahFyffe
    Member
    Posted 5 months ago #

    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>
  2. JeremiahFyffe
    Member
    Posted 5 months ago #

    It keeps spitting out the string
    ')">MONDAY

Reply

You must log in to post.

About this Topic

Tags