Title: zoacode's Replies | WordPress.org

---

# zoacode

  [  ](https://wordpress.org/support/users/zoacode/)

 *   [Profile](https://wordpress.org/support/users/zoacode/)
 *   [Topics Started](https://wordpress.org/support/users/zoacode/topics/)
 *   [Replies Created](https://wordpress.org/support/users/zoacode/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/zoacode/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/zoacode/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/zoacode/engagements/)
 *   [Favorites](https://wordpress.org/support/users/zoacode/favorites/)

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [2 custom post types linking to 2 single.php templates ?](https://wordpress.org/support/topic/2-custom-post-types-linking-to-2-singlephp-templates/)
 *  Thread Starter [zoacode](https://wordpress.org/support/users/zoacode/)
 * (@zoacode)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/2-custom-post-types-linking-to-2-singlephp-templates/#post-2993462)
 * This was resolved with:
 *     ```
       if(get_post_type() == 'Portfolio'){
        echo '<a href="' . 'http://www.mysite.com/web-portfolio'  . '">' .  'Portfolio'. '</a>' . $markup;
   
       } else if(get_post_type() == 'Artwork'){
        echo '<a href="' . 'http://www.mysite.com/art-portfolio'  . '">' . 'Artwork' .  '</a>' . $markup;
       }
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [comments.php error](https://wordpress.org/support/topic/commentsphp-error/)
 *  [zoacode](https://wordpress.org/support/users/zoacode/)
 * (@zoacode)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/commentsphp-error/#post-2404715)
 * Solved this by updating the code in the single.php template with:
 * `<?php comments_template(); ?>`
 * It was previously set to “true” which I don’t believe is supported anymore, hope
   this helps someone.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [comments.php error](https://wordpress.org/support/topic/commentsphp-error/)
 *  [zoacode](https://wordpress.org/support/users/zoacode/)
 * (@zoacode)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/commentsphp-error/#post-2404714)
 * Same problem. I am using custom post types that use custom single templates and
   wonder if it’s related.

Viewing 3 replies - 1 through 3 (of 3 total)