WordPress.org

Ready to get started?Download WordPress

Forums

Multiple template for a single post (3 posts)

  1. Hakkim P Ahammed
    Member
    Posted 2 years ago #

    Hi Guys,
    Is it possible to assign multiple template for a post depending on the categories it has been assigned to? I mean, I have a post 'Post A' and two different categories 'CatA' and 'CatB'. The 'PostA' has been assigned to both of the above categories. Actually what I need is, when I click 'PostA' from 'CatA' it should be in one layout and when I click from 'CatB' it should be in another layout. How it can be done? Please help guyz.
    Thanks in advance.

    Hakkim.

    [ Please do not bump, it's not permitted here. ]

  2. Pioneer Valley Web Design
    Member
    Posted 2 years ago #

    Try in_category as a conditional statement.

  3. Hakkim P Ahammed
    Member
    Posted 1 year ago #

    Hi Seacoast Web Design, Thank you for your help.
    Hakkim

Topic Closed

This topic has been closed to new replies.

About this Topic