I have created a page template:
<?php /* Template Name: homedefault */ ?>
But Instead of text coming from here i.e. wp editor:
I want it to come from the loop:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php $post_id = get_the_ID(); ?> <?php get_template_part('content','home'); ?> <?php endwhile; ?> <?php endif; ?>
But the loop doesn't seem to be working. Is it possible at all?
P.S. → loop is for the posts →