Different post format based on post type in the loop
-
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 loopHave seached but can’t get any if statements to work properly.
All inputs higly appreciated.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Different post format based on post type in the loop’ is closed to new replies.