post_type ) { $name_specialised_template = 'event'; } else if ( 'fw-services' === $post->post_type ) { $name_specialised_template = 'service'; } /* * Include the post format-specific template for the content. If you want to * use this in a child theme, then include a file called called content-___.php * (where ___ is the post format) and that will be used instead. */ get_template_part( 'template-parts/content', $name_specialised_template ); endwhile; // Previous/next page navigation. solarify_paging_nav(); else : // If no content, include the "No posts found" template. get_template_part( 'template-parts/content', 'none' ); endif; ?>