[closed] Two categories in one archive page (6 posts)

  1. MarketRaisen2
    Posted 2 years 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">
    <?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'shiro' ); ?>
    <?php get_search_form(); ?>
    <?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.

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    Please post in http://wordpress.org/support/theme/shiro

    And start by creating a child theme for your customisations.

  3. MarketRaisen2
    Posted 2 years ago #

    I could post it there but me using shiro is bordering on irrelevant given the amount of customisation I've done to the theme, I could;ve started with any responsive two column template.

    It's too late for me to make a child theme, I'm pretty much finished my little project.

    Can you help me post two categories in one page?

  4. esmi
    Forum Moderator
    Posted 2 years ago #

  5. MarketRaisen2
    Posted 2 years ago #

    This topic isnt shiro specific.

    I'll happily switch my theme to something else if you'll answer my original question.

  6. esmi
    Forum Moderator
    Posted 2 years ago #

    This is very much theme-specific. Please post in http://wordpress.org/support/theme/shiro

Topic Closed

This topic has been closed to new replies.

About this Topic