Custom post types problem
-
I sometimes get asked to write a review on my blog about music, games, books, …
When I do such a review it’s just a normal blogpost among the others. I had the idea to create 3 custom post types: muziek (music), boeken (books), games. I want to use the custom post types to get a nice overview of everything I reviewed in a certain category (post-type). I want https://epicnic.be/?post_type=muziek to show a overview like in the videos of Ben where It shows just a picture and a rating of the reviewed product (in this case the music).Now I know i can do this by using an if statement which checks if get_post_type == muziek and tweeking the css to align everything in a grid.
Now my prolbem is that if I include the music post types posts in my normal blog It should still display them like a normal blogpost.
Is there maybe a function I can include in my if statement that could solve my problem?
Note1: I didn’t use custom taxonomy because my post-types itself are the only “taxonomy” I need.
Note2: I tried to use the is_home() and the is_front_page() function but when I do this on https://epicnic.be/?post_type=muziek it also returns value “1”
- The topic ‘Custom post types problem’ is closed to new replies.