• Hello,

    I’m working on a website with five main categories, but one of which includes only ONE article.

    Therefore I would like the article to show its content DIRECTLY after clicking on that category (rather than displaying the article link unnecessarily, since it is the only one).

    How do I achieve this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • category template?

    https://codex.www.ads-software.com/Category_Templates

    details of the coding of that template depend on your currently used theme.

    Thread Starter cambeaudoin

    (@cambeaudoin)

    Thank you Michael!
    I’m fairly new to WordPress and I wasn’t certain what for, or where to look..! I feel like I’m close; I’m using the Heroic Knowledge Base theme so I think the file directing the way the categories look is hkb.taxonomy.category.php. I see that what I did, according to the link you referred me to, works when using the code below! But it changes all my categories, and not only my desired one…

    <div class="hkb-category__header">
         <h2 class="hkb-category__glossary">
         </h2>
    
         <?php the_content(); ?>
    </div>

    How would I only affect one category?

    Thread Starter cambeaudoin

    (@cambeaudoin)

    HelpGuru theme*

    generally, you would create a template file category-special.php, where ‘special’ would be the slug of your one category with only one post, and add the coding there.

    as your theme might be totally different, please consider to contact the developer of your theme for help with your question;

    https://codex.www.ads-software.com/Forum_Welcome#Commercial_Products

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘In a category, how to show content of article directly?’ is closed to new replies.