I don’t know why, but I can’t navigate to post by click. I have tried get_permalink() and the_permalink() but changes only url. And i need to see only post that was pushed (alone) after click. Does anybody know what I’m doing wrong ?
<?php
$args = array(
'post_type'=> 'post'
);
$the_query = new WP_Query( $args );
// The Loop
if ( $the_query->have_posts() ) {
while ( $the_query->have_posts() ) {
$the_query->the_post(); ?>
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<p><?php the_content(); ?></p>
<?php
}
}
?>