Support » Fixing WordPress » can’t figure out how to do a step in static-text procedure

  • I’m trying to follow a step in a procedure that’s supposed to allow me to create static text on top of my categories. However, I can’t find how to do the following step:

    “For #1, to show category description at top of category page … In index.php, look for this:
    <?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
    and change it to … [for rest of procedure, see http://wordpress.org/support/topic/12005?replies=8%5D

    I can’t find the code the person references above, which I’m supposed to replace. I looked in my index.php, but it wasn’t there. I’m using the Blix theme at http://stc-suncoast.org. Thanks for any help,

    Tom

Viewing 1 replies (of 1 total)
  • I don’t use that theme or know anything about it but that appears to be the WordPress Loop. The WordPress Loop can be written in a few ways, either using the for loop or a while loop. They can be seen either all on one line or broken into pieces. This is the code for the loop I use broken into two parts:

    <?php if (have_posts()) : ?>
    .
    .
    .
    <?php while (have_posts()) : the_post(); ?>

    Try looking for something like this in your index.php file. Other files that may also include this would be your single.php, archive.php, or category.php to name a few. You may or may not have these depending on how your theme was built.

    Regards and good luck.

Viewing 1 replies (of 1 total)
  • The topic ‘can’t figure out how to do a step in static-text procedure’ is closed to new replies.