0
I am creating a theme for wordpress but I am not managing to call a certain category on a page ( that is in the menu ) .
For example : I have a page in the menu about MUSICAS and I would like you to call 1 category example : ROCK.
I tried with the code below but appeared all categories not only the one I mentioned above ( https://wordpress.org/support/topic/display-the-posts-of-one-category-in-a-page-solved )
<?php
/* Template name: solo */
?>
<?php get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?Php
query_posts ('cat = 15 ');
while (have_posts ()): the_post ();
the_content ();
endwhile;
?>
</main>
</div>
<?php get_sidebar(); ?>