WordPress.org

Support

Support » Plugins and Hacks » Hacks » Quick php Question

Quick php Question

  • 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.