• Hi, My website is a blog about Mixed Martial Arts, And I would like to create a page for Videos. Is there anyway to make it so that I basically post the videos into a regular Post and specify the category as “Videos” then on a separate page on my blog show posts that are only in that “Videos” category.

    Can anyone help me with this? My sites URL is https://www.strikemma.com

    Thank you =]

Viewing 7 replies - 1 through 7 (of 7 total)
  • No, you don’t use Pages for displaying posts (categories). For categories use Category_Templates.

    Thread Starter strikemma

    (@strikemma)

    I check out that page but I think my template is a little different, I don’t necessarily have a category’s page. I do however have an Archives file. And when I modified the archives file, it actually showed up in my category page. Like i changed content to excerpt and on my category page i saw does changes.

    Can anyone give me any specific help? Or if anyone is willing to do this for me I could pay you for your services, as I need this job done ASAP.

    – Thanks

    1. You can always create a category template in any theme, e.g. saving your archive.php template file as category.php or category-XX.php and editing it as you wish. XX=your special cat ID.
    2. Never mix the archive.php and the archives.php template files – those are two different things. The first one (singular: archive.php) is used to display monthly and category archives), while the latter one (plural: archives.php) is a Page template!
    3. Again, you don’t need any Page for this – just a custom Category Template. If any. Even now, clicking on “Videos” in the top horizontal menu… it takes you exactly to the “category archive view”, i.e. displaying all the posts in that specific category. Where is the problem?

    Isn’t this: https://www.strikemma.com/category/videos/ what you mean?

    Hi,

    Moshu — I also think I would need a page which would show certain category posts only. Because I use templates that automaticly generate the menu links depending on the child pages. I wold like one of these pages to be an archive for a certain category. How can I do that using category templates?

    Thanks and have a good day, Zh

    I think I’m doing something like what you want with the List Category Posts plugin. I combine that with mCatfilter to keep some posts off the opening page.

    Tery

    I actually solved this placing the following code using a query in a template file. However, the navigation is not working — would anyone have an idea why that is? Thank you so much, zh

    <?php get_header(); ?>
    
    <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $the_query = new WP_Query('cat=36&paged='.$paged.'&showposts=30&orderby=post_date&order=desc'); while ($the_query->have_posts()) : $the_query->the_post(); $do_not_duplicate = $post->ID; ?>
    
    DO STUFF
    
    <?php endwhile; ?>
    
    <div id="pagenavi">
    	<?php if(function_exists('wp_pagenavi')) : ?>
    		<?php wp_pagenavi() ?>
    	<?php endif; ?>
    </div>
    
    <?php get_footer(); ?>
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Show Posts Of a Certain Category On a Page’ is closed to new replies.