• Hi all, I have been create custom page like this page-news.php , Then I have code use loop to get all post, So I expected I will get all post show in web site but I got page name instead all post , So how do I fix it and what step I missed

    It’s a my code in page-news.php

    <?php
    if ( have_posts() ) {
    	while ( have_posts() ) {
    		the_title();
    	}
    }
    ?>

    Thank you.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How do I get post to custom page’ is closed to new replies.