WordPress.org

Ready to get started?Download WordPress

Forums

Shiro
[resolved] Two categories in one archive page (2 posts)

  1. MarketRaisen2
    Member
    Posted 12 months ago #

    YES. I know there are a lot of results for this question on Google but none of them appear to work for me or the answers are in fuzzy code speech (which means nothing to me).

    <?php if ( have_posts() ) : ?>
    <?php while ( have_posts() ) : the_post(); ?>
    <?php get_template_part( 'content', get_post_format() ); ?>
    <?php endwhile; ?>
    <?php else : ?><article id="post-0" class="post no-results not-found">
    <header class="entry-header">
    <h1 class="entry-title"><?php _e( 'Nothing Found', 'shiro' ); ?></h1></header>
    div class="entry-content">
    <p>
    <?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'shiro' ); ?>
    </p>
    <?php get_search_form(); ?>
    </div>
    </article>
    <?php endif; ?>

    Thats all from my archive.php, how do I convert that to show just two categories?

    I have already created a new category specific template by simply cutting and pasting the above, adding two categories is beyond me.

    [No bumping. If it's so urgent that you couldn't even wait 1 hour, consider hiring someone.]

  2. MarketRaisen2
    Member
    Posted 12 months ago #

    I just messed around with the category hierarchy, hardly ideal but then this is wordpress.

Reply

You must log in to post.

About this Theme

About this Topic