Quick php Question (1 post)

  1. guided
    Posted 6 years ago #

    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>
    <?php endif; ?>

    Is there anything wrong with that?

Topic Closed

This topic has been closed to new replies.

About this Topic