Wpbb-if to test for custom post type

How would I test to determine the custom post type for a post?

I’m trying to display search results differently for each CPT.

My search results template has a posts module with a custom layout. I want to test each post to determine its CPT. i.e.

[wpbb-if ... custom post type ="dogs"
     show these fields ... 
[/wpbb-if]
[wpbb-if ... custom post type ="cats"
etc.

Cheers, Richard

No, but Custom Content Shortcode plugin can do what you are after.

Thanks. I’ve actually moved from Custom Content Shortcode to Loops & Logic which is fantastic. I’ll explore using that here.

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.