WordPress don’t have a function show_content
. Content in wordpress is displayd using the_content()
. The excerpt is displayd using the_excerpt()
. Just a point of note, move your WP_Query
outside your if
statement and change if ( have_posts() )
to if ( $wp_query->have_posts() )