• Hello,

    Im pretty new to wordpress and have created a custom post type called dogs.

    I would like to use the orginal index.php and just add a if statement that checks if the post type is dogs and then use another format to display that specific post for that post types in the loop.

    So to sum up:

    IF post_type = dogs THEN show special post format in loop
    ELSE show orginal post format in loop

    Have seached but can’t get any if statements to work properly.
    All inputs higly appreciated.

Viewing 1 replies (of 1 total)
  • by post format… are you referring to that actual built in post formats in WordPress? like aside, status, ertc

    Or do you just mean you want the post to be formatted differently?

    If the latter, what sort of different, stylistic changes, different layout, etc

Viewing 1 replies (of 1 total)

The topic ‘Different post format based on post type in the loop’ is closed to new replies.