I’m editing a client website, and had a question regarding the Post Object field.
My client has a slider on their homepage. In the back-end, I’m utilizing a Repeater field for each slide, with a Post Object field within that. As of now, the Post Object field only allows one post type. However, we’re going to be adding a second post type into the Post Object field.
The issue I’m running into is that the second post type has different fields that I’d like to display within that slider, and I’m not sure what the proper code would be to target that new post type. Would I use a conditional statement? And if so, would that be something along the lines of “if( is_post_type(‘post-type’) )”?