• I have some blog category like news,play etc and i want to each has to be different temple so how can i do this??

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

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

    You can create custom templates

    category-news.php
    category-play.php

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Hi Rupam Hazra!

    This could be done in a few ways. What I recommend is using a child theme and taking advantage of the template hierarchy. What Steve posted is a great example of that as well.

    There are a few other resources that explain a little more in-depth how that works. The one which could help most is: https://wphierarchy.com/

    As it is a visual representation of how it works.

    How you fully implement that is up to you of course.

    Let us know if that helps!

    Thread Starter Rupam Hazra

    (@rupamhazra)

    @jose and @steve fine it’s working and now i want to show single blog as per category template i.e whenever i click on a blog which has in sports category then blog showing with sports category template for single post.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘One template for each blog category’ is closed to new replies.