php - Why my Post Titles are same in showing to users?

Solution:
You shouldn't use capitals for variable names, in this context it must be $post instead of $Post to work properly. Your updated code would be the following:
<?php
$args = array( 'posts_per_page' => 4, 'order'=> 'DESC', 'category' => 2 );
$posts = get_posts( $args );
foreach ( $posts as $post ) : setup_postdata( $post );
?>
<div class="Post">
<div class="Image">
<img src="<?php bloginfo('template_url'); ?>/Images/Fruits.png" class="responsive-img">
</div>
<div class="Context">
<a href="<?php the_permalink(); ?>" class="Title"><?php the_title(); ?></a>
<p class="Text"><?php the_content(); ?></p>
</div>
</div>
<?php
endforeach;
wp_reset_postdata();
?>
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: fastcgi sent in stderr: "primary script unknown" while reading response header from upstream
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.