michaellarge214
Member
Posted 1 year ago #
I have been trying to find a definite answer to ONLY display content from a specific category on a page. Like...anything in the "Blog" category will display on the "Blog" page. Does anyone know who I could do this? forgive me, while i have a knowledge of html and css I dont know PHP very much. Thanks!
<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args= array(
'category_name' => 'News',
'paged' => $paged
);
query_posts($args);
?>
http://codex.wordpress.org/Function_Reference/query_posts
michaellarge214
Member
Posted 1 year ago #
Forgive me, I am very new to wordpress concepts and coding. Where would I apply this code?