Title: Code syntax error?
Last modified: August 20, 2016

---

# Code syntax error?

 *  [JeremiahFyffe](https://wordpress.org/support/users/jeremiahfyffe/)
 * (@jeremiahfyffe)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/code-syntax-error/)
 * I’ve stared at this code, but I can’t get the link <p>[test](http://test.com)
   </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)

 *  Thread Starter [JeremiahFyffe](https://wordpress.org/support/users/jeremiahfyffe/)
 * (@jeremiahfyffe)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/code-syntax-error/#post-2451021)
 * It keeps spitting out the string
    `')">MONDAY`

Viewing 1 replies (of 1 total)

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

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)

 * 1 reply
 * 1 participant
 * Last reply from: [JeremiahFyffe](https://wordpress.org/support/users/jeremiahfyffe/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/code-syntax-error/#post-2451021)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
