• I?′ve made a category template to show only the excerpts, following the instructions showed in https://codex.www.ads-software.com/Category_Templates. But the posts shows one above the other, like normal posts (you can see that here: https://www.nn45.com/main/nav/art/dibujos/original/bn-sketches/). I?′ve made that template trying to make a image gallery using the excerpts. There is a way to anihilate the “” tags the loop creates and show al the excerpts in horizontal way?

    The code I use for the template is that:

    <td rowspan=”2″ bgcolor=”#FFFFFF” width=”100%” height=”100%” valign=”top” align=”justify”><?php if ($posts) : foreach ($posts as $post) : start_wp(); ?><?php the_excerpt(); ?>

    <?php endforeach; else: ?>
    <p style=”margin-top: 0; margin-bottom: 0″ align=”justify”>Imposible encontrar concordancia
    <p style=”margin-top: 0; margin-bottom: 0″ align=”justify”>
    <?php endif; ?>
    <p style=”margin-top: 0; margin-bottom: 0″ align=”center”><font face=”Arial” size=”2″><?php posts_nav_link(‘ — ‘, __(‘« Pagina anterior’), __(‘Pagina siguiente »’)); ?></font></td>

Viewing 2 replies - 1 through 2 (of 2 total)
  • Either give the <td> a class (for example below, I’ll label it “sketches”), or slip a <div> around your post excerpt loop and give that the class, and then in your theme’s css add:

    .sketches p {
    display: inline;
    }

    Thread Starter madcore

    (@madcore)

    Kafkaesqui, thanks ^^! That works very good! Kudos for you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show posts excerpts in category in horizontal, not vertical’ is closed to new replies.