Forums

[resolved] Show one category with Remix template (4 posts)

  1. bowoolley
    Member
    Posted 4 years ago #

    Hi - sorry to bother... I've been reading for hours on this site and others on how to show only one category, but I think the Remix version of the code has me stumped... If anyone could help, I'd be more than grateful!

    I have this code in place, and it works:

    But I'd like to modify it so it shows only one category, and NOT just recent posts but ALL posts from that category. I can't figure out what to change... Sorry if the question is a bit dumb!

  2. Otto
    Tech Ninja
    Posted 4 years ago #

    Could you explain what the heck you're talking about? What is "Remix"?

  3. bowoolley
    Member
    Posted 4 years ago #

    Sorry - Remix is a WordPress template that I purchased and am using for my site. The code evidently makes reference to Remix template or style files that I can't locate anywhere...

    Should have been clearer in my question!

  4. bowoolley
    Member
    Posted 4 years ago #

    Halleluia, life is good! After another few hours of head-scratching (yes, I'm a php noob, I admit it) I finally found the solution. I replaced the above code with this:

    <!--remix:<?php query_posts('cat=21'); ?>:remix-->

    <!--remix:<?php while(have_posts()) : the_post();?>:remix-->

  5. <!--remix:">:remix--> <!--remix:<?php the_title(); ?>:remix--> <!--remix:<!--remix:<?php the_content(); ?>:remix-->:remix-->
  6. <!--remix:<?php endwhile; ?>:remix-->

    That was entirely too simple to justify hours and hours of research!

    Thanks anyway...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags