I am trying to show view all post with this link

<a class="btn-primary" 
href="<?php echo get_permalink( get_option( 'page_for_posts' ) );?>">View All</a>

It directing the correct page id, but with that page it showing home page, not working that page. N.B. i have set from setting>Reading Setting> posts page Blog page which is current page which is not working. any solution.

Read more here: Showing Specific page or View all posts is not working in wordpress


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: