WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] custom loop in specific category (2 posts)

  1. nachumi_e
    Member
    Posted 1 year ago #

    hey, im using "loop.php" for all my categories, i wanna use "custom-loop.php" for category 3, and "another-custom-loop.php" for category 13.

    how can i do that?

    thank you.

  2. nachumi_e
    Member
    Posted 1 year ago #

    Vladislavat from wpmudev.org help me:

    @nachumi_e you can just name your files in this way:

    category-3.php for category 3
    category-13.php for category 13

    Here’s a link with some more info: http://codex.wordpress.org/Theme_Development#Query-based_Template_Files

    thats working perfect!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags