0

On my Main Menu, I have made category called "Blog" and then under that a drop down tab listed "News". I am trying to add a News item in this subcategory, but for some reason keeps positing under Blog, and Leaving "News" blank, any help would be greatly appreciated, Thanks!

1 Answer 1

0

You have created a simple page name News from the Admin and displayed under the Blog Menu. You have to create a page template and use the WordPress loop to display your posts. You can use this code in your page template and select templates when you publish the page.

$args = array(    
    'post_type'       => 'post',  
    'order'           => 'DESC',  
);   

$the_query = new WP_Query( $args );   
while ($the_query -> have_posts()) : $the_query -> the_post();   
    php the_title();  
    the_excerpt(__('(more…)'));     
endwhile;

You can pass more parameters to filter your loop as per your need.

1
  • I'm still not understanding correctly :-(
    – Liz
    Commented Feb 9, 2015 at 15:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.