How to display Custom Post Types on homepage with correct styling

Hi, thanks first of all for the pinbin theme - it’s great to work with.

I have created some Custom Post Types and would like to include these in the homepage too. I’ve add this to the functions page to include them:

 * Show not just posts on the homepage but also the custom post type Properties

add_filter( 'pre_get_posts', 'my_get_posts' );

function my_get_posts( $query ) {

	if ( is_home() && $query->is_main_query() )
		$query->set( 'post_type', array( 'post', 'properties' ) );

	return $query;

And this works fine. However, it’s not styled like the normal posts and displays as a basic lists of posts.

Does anyone know which bits in the style file I might have to change to include the post type ‘Properties’?



Hi Konrad,

I hope you are well today and sorry for the delay here.

Do you still need assistance regarding this question?

Please advise.

Kind Regards,