Title: Quick php Question
Last modified: August 19, 2016

---

# Quick php Question

 *  [guided](https://wordpress.org/support/users/guided/)
 * (@guided)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/quick-php-question-5/)
 * I’m trying to make WordPress display category specific subheadings by placing
   a php loop after the_title call. I’ve modified a plugin to do the first loop,
   and it works perfectly, but the second doesn’t – either before or after the first.
 * The second looks like this:
 *     ```
       <?php if (in_category(281)) : ?>
                       	<div id="titleleft">
             			<div id="categorytitle">Postponed Class</div>
       <div id="authortop">Teacher:&nbsp;<?php the_author_link(); ?></div>
                               </div>
       <?php endif; ?>
       ```
   
 * Is there anything wrong with that?

The topic ‘Quick php Question’ is closed to new replies.

## Tags

 * [if](https://wordpress.org/support/topic-tag/if/)
 * [loop](https://wordpress.org/support/topic-tag/loop/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 0 replies
 * 1 participant
 * Last reply from: [guided](https://wordpress.org/support/users/guided/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/quick-php-question-5/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
