Title: Exclude php code from bbpress
Last modified: August 21, 2016

---

# Exclude php code from bbpress

 *  Resolved [ronthai](https://wordpress.org/support/users/ronthai/)
 * (@ronthai)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/exclude-php-code-from-bbpress/)
 * Hi,
    In posts, my theme only has page-navigation at the bottom. I added it also
   at the top of posts, no problem
 * The issue is that now there is also a (sort of) page-navigation at the top of
   every page in the bbpress plugin part, which I don’t want of course.
 * How do I exclude the added code from showing on the bbpress pages (the whole 
   plugin pages for that matter)
 * Thanks, Ron

Viewing 1 replies (of 1 total)

 *  Thread Starter [ronthai](https://wordpress.org/support/users/ronthai/)
 * (@ronthai)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/exclude-php-code-from-bbpress/#post-4368643)
 * SOLVED:
    Had to put it inbetween:
 *     ```
       <?php if ( is_singular('post') ) : ?>
   
       <?php endif; ?>
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Exclude php code from bbpress’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [ronthai](https://wordpress.org/support/users/ronthai/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/exclude-php-code-from-bbpress/#post-4368643)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
