# Problem with showing posts \[Solved\]

**URL:** <https://forum.pinegrow.com/t/problem-with-showing-posts-solved/7804>\
**Category:** Pinegrow WP\
**Created:** [March 8, 2023, 6:21pm UTC](https://forum.pinegrow.com/t/problem-with-showing-posts-solved/7804 "2023-03-08T18:21:53Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roxy](https://avatars.discourse-cdn.com/v4/letter/r/53a042/32.png) [@Roxy](https://forum.pinegrow.com/u/Roxy)\
**Post date:** [March 8, 2023, 6:21pm UTC](https://forum.pinegrow.com/t/problem-with-showing-posts-solved/7804/1 "2023-03-08T18:21:53Z")

</div>

Hi.  
Problem with showing posts on Home page and News page ( archive or archive-(…).php )

Mission:  
Show 3 last post on Home (index page)  
Show 6 posts on News (archive page)  
Conclusion:  
3 last posts on home page added (ok)  
6 posts on News archive (failed) - it shows the same as the Home page (3 posts)

This is not my first site and this is the first time I encountered this problem…  
Has anyone the same problem?

---

<div class="post-metadata">

**Author:** ![Emmanuel](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/emmanuel/32/6294_2.png) [@Emmanuel](https://forum.pinegrow.com/u/Emmanuel)\
**Post date:** [March 9, 2023, 8:56am UTC](https://forum.pinegrow.com/t/problem-with-showing-posts-solved/7804/2 "2023-03-09T08:56:11Z")

</div>

@Roxy Can you please send your project folder to [the support](https://pinegrow.com/contact-us/) so we can check your templates?

**IMPORTANT** : Please do not send a direct link to one of our email addresses from the sharing service but rather create a private **SHARE LINK** from [Google Drive](https://www.google.com/intl/en_in/drive/), [Dropbox](https://www.dropbox.com) or [WeTransfer](https://wetransfer.com) which you will then copy into your reply to us.

If possible, please **do not set an expiration date on your file share**. We cannot guarantee that we will be able to view your files immediately after you send them.

---

<div class="post-metadata">

**Author:** ![Roxy](https://avatars.discourse-cdn.com/v4/letter/r/53a042/32.png) [@Roxy](https://forum.pinegrow.com/u/Roxy)\
**Post date:** [March 9, 2023, 11:24am UTC](https://forum.pinegrow.com/t/problem-with-showing-posts-solved/7804/3 "2023-03-09T11:24:30Z")

</div>

Hi Emmanuel.

Thx for reply. I already sent to support. I am in contact with Matjaz but I haven’t received a reply to the last email for some days (I’m in a bit of a hurry)…can I ask you please to try this process (it takes you five minutes 🙂)

1.making index.html (which will be **index.php** ) - shows 3 x posts  
2.making some.html (which will be **archive.php** ) - shows 6 x posts

It would really help me if you could try.

Thx

---

<div class="post-metadata">

**Author:** ![Emmanuel](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/emmanuel/32/6294_2.png) [@Emmanuel](https://forum.pinegrow.com/u/Emmanuel)\
**Post date:** [March 9, 2023, 12:12pm UTC](https://forum.pinegrow.com/t/problem-with-showing-posts-solved/7804/4 "2023-03-09T12:12:06Z")

</div>

@Roxy If I understood the problem correctly, here is my test (which took me more than 5 minutes)

[https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/a/acbd4b8a5fb51092cb4548bcf41e649e522ea466.mp4](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/a/acbd4b8a5fb51092cb4548bcf41e649e522ea466.mp4)

---

<div class="post-metadata">

**Author:** ![Roxy](https://avatars.discourse-cdn.com/v4/letter/r/53a042/32.png) [@Roxy](https://forum.pinegrow.com/u/Roxy)\
**Post date:** [March 9, 2023, 12:41pm UTC](https://forum.pinegrow.com/t/problem-with-showing-posts-solved/7804/5 "2023-03-09T12:41:59Z")

</div>

Thank you very much Emmanuel for your kindness.

I have the same settings (the only difference is I didn’t wrote “post” in archive page under Show post smart - Post type … but as I know it is by default)

And the second…in wp dashboard I did the news page - selecting the news template - and in Reading I selected - Posts page: News

If I watched the url was ok /news but posts they were the same as on the home page (only 3 and not 6)

---

<div class="post-metadata">

**Author:** ![Emmanuel](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/emmanuel/32/6294_2.png) [@Emmanuel](https://forum.pinegrow.com/u/Emmanuel)\
**Post date:** [March 9, 2023, 1:09pm UTC](https://forum.pinegrow.com/t/problem-with-showing-posts-solved/7804/6 "2023-03-09T13:09:19Z")

</div>

just in case, here is the archive of my test project.

> **[test-wp001.zip](https://www.dropbox.com/s/q7xfiokxegic9wq/test-wp001.zip?dl=0)**
>
> Shared with Dropbox

---

<div class="post-metadata">

**Author:** ![Roxy](https://avatars.discourse-cdn.com/v4/letter/r/53a042/32.png) [@Roxy](https://forum.pinegrow.com/u/Roxy)\
**Post date:** [March 9, 2023, 1:35pm UTC](https://forum.pinegrow.com/t/problem-with-showing-posts-solved/7804/7 "2023-03-09T13:35:30Z")

</div>

Thanks Emmanuel.

I want to upload my settings video. In which format is it possible to upload?

---

<div class="post-metadata">

**Author:** ![Roxy](https://avatars.discourse-cdn.com/v4/letter/r/53a042/32.png) [@Roxy](https://forum.pinegrow.com/u/Roxy)\
**Post date:** [March 9, 2023, 1:44pm UTC](https://forum.pinegrow.com/t/problem-with-showing-posts-solved/7804/8 "2023-03-09T13:44:15Z")

</div>

My test…

[https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/4/48c7a5864ed5953277169a8ea840aac9dbe6fad4.mp4](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/4/48c7a5864ed5953277169a8ea840aac9dbe6fad4.mp4)

---

<div class="post-metadata">

**Author:** ![Emmanuel](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/emmanuel/32/6294_2.png) [@Emmanuel](https://forum.pinegrow.com/u/Emmanuel)\
**Post date:** [March 9, 2023, 1:54pm UTC](https://forum.pinegrow.com/t/problem-with-showing-posts-solved/7804/9 "2023-03-09T13:54:24Z")

</div>

@Roxy Can you install [Query Monitor](https://wordpress.org/plugins/query-monitor/) and show us/me what you see?

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/d/df45ca4a3b70909fc13e9a033f9cc279074517e6.png)

---

<div class="post-metadata">

**Author:** ![Roxy](https://avatars.discourse-cdn.com/v4/letter/r/53a042/32.png) [@Roxy](https://forum.pinegrow.com/u/Roxy)\
**Post date:** [March 9, 2023, 3:59pm UTC](https://forum.pinegrow.com/t/problem-with-showing-posts-solved/7804/10 "2023-03-09T15:59:07Z")

</div>

Sorry for my late reply…this is on news page

 ![Screenshot 2023-03-09 at 17.18.53](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/d/db79412cc25820d63ff855f9e86484bb7e8f3626.png)

---

<div class="post-metadata">

**Author:** ![Roxy](https://avatars.discourse-cdn.com/v4/letter/r/53a042/32.png) [@Roxy](https://forum.pinegrow.com/u/Roxy)\
**Post date:** [March 9, 2023, 4:02pm UTC](https://forum.pinegrow.com/t/problem-with-showing-posts-solved/7804/11 "2023-03-09T16:02:00Z")

</div>

Home page…

 ![Screenshot 2023-03-09 at 17.24.37](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/f/fcab8d463c9154d16b99e8b701c67b2793c9a6b6.png)

---

<div class="post-metadata">

**Author:** ![Roxy](https://avatars.discourse-cdn.com/v4/letter/r/53a042/32.png) [@Roxy](https://forum.pinegrow.com/u/Roxy)\
**Post date:** [March 9, 2023, 4:31pm UTC](https://forum.pinegrow.com/t/problem-with-showing-posts-solved/7804/12 "2023-03-09T16:31:14Z")

</div>

And this is my archive.php file from wp…

 ![Screenshot 2023-03-09 at 17.29.18](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/5/500645395cbee26b79081138d21f23a9fe76f2aa.png)

---

<div class="post-metadata">

**Author:** ![Emmanuel](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/emmanuel/32/6294_2.png) [@Emmanuel](https://forum.pinegrow.com/u/Emmanuel)\
**Post date:** [March 9, 2023, 5:30pm UTC](https://forum.pinegrow.com/t/problem-with-showing-posts-solved/7804/13 "2023-03-09T17:30:51Z")

</div>

@Roxy As you can see, both views use the same template \> index.php  
So you are “calling the wrong view” hence the same content.

Take a look at my example and also [read about using archive.php in your WordPress themes](https://codex.wordpress.org/Creating_an_Archive_Index) and you should be able to get a better understanding of the situation and solve your issue 🙂

---

<div class="post-metadata">

**Author:** ![Roxy](https://avatars.discourse-cdn.com/v4/letter/r/53a042/32.png) [@Roxy](https://forum.pinegrow.com/u/Roxy)\
**Post date:** [March 9, 2023, 5:53pm UTC](https://forum.pinegrow.com/t/problem-with-showing-posts-solved/7804/14 "2023-03-09T17:53:31Z")

</div>

Ok…Thx Emmanuel…just one last question…  
but if I want to display all posts (default posts) in some page with pagination (let’s say we call it News or Posts)…which .php name I have to use…  
I think archive.php or I’m wrong…

---

<div class="post-metadata">

**Author:** ![Emmanuel](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/emmanuel/32/6294_2.png) [@Emmanuel](https://forum.pinegrow.com/u/Emmanuel)\
**Post date:** [March 9, 2023, 6:04pm UTC](https://forum.pinegrow.com/t/problem-with-showing-posts-solved/7804/15 "2023-03-09T18:04:56Z")

</div>

(as in my example) The archive template is used when visitors request posts by **category** , **author** , or **date**. **Note** : this template will be overridden if more specific templates are present like `category.php` , `author.php` , and `date.php` .

For your need, you can build any page template and use a custom query so you can display exactly what you want. (What is important is how you call to the corresponding page)

---

<div class="post-metadata">

**Author:** ![Roxy](https://avatars.discourse-cdn.com/v4/letter/r/53a042/32.png) [@Roxy](https://forum.pinegrow.com/u/Roxy)\
**Post date:** [March 9, 2023, 6:06pm UTC](https://forum.pinegrow.com/t/problem-with-showing-posts-solved/7804/16 "2023-03-09T18:06:50Z")

</div>

Thank you very much, Emmanuel.

---

<div class="post-metadata">

**Author:** ![Emmanuel](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/emmanuel/32/6294_2.png) [@Emmanuel](https://forum.pinegrow.com/u/Emmanuel)\
**Post date:** [March 9, 2023, 6:12pm UTC](https://forum.pinegrow.com/t/problem-with-showing-posts-solved/7804/17 "2023-03-09T18:12:20Z")

</div>

@Roxy Something like

 ![SCR-20230309-qsua](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/4/40b859d122d842aebcb397b5fee1e7e560a853b6.png)  
 ![SCR-20230309-qsfu](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/8/8d724d2af3daba9046dc496c0ac98e61ecc766ef.png)  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/f/f535cdad9170208005ee7920bc3555dad22b55dc.png)

---

<div class="post-metadata">

**Author:** ![Emmanuel](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/emmanuel/32/6294_2.png) [@Emmanuel](https://forum.pinegrow.com/u/Emmanuel)\
**Post date:** [March 9, 2023, 6:23pm UTC](https://forum.pinegrow.com/t/problem-with-showing-posts-solved/7804/18 "2023-03-09T18:23:28Z")

</div>

This situation gave me the opportunity to introduce you to [Query Monitor](https://wordpress.org/plugins/query-monitor/) which is a perfect complement for any WordPress developer. Here we could use it to (easily) determine that the view was not using the right template. (examining the displayed code could also have given this information, but here it is presented in a visual way)

Switching your site to [debug mode](https://wordpress.org/documentation/article/debugging-in-wordpress/) is also very useful to see all the possible problems in your templates.

---

<div class="post-metadata">

**Author:** ![Roxy](https://avatars.discourse-cdn.com/v4/letter/r/53a042/32.png) [@Roxy](https://forum.pinegrow.com/u/Roxy)\
**Post date:** [March 9, 2023, 6:30pm UTC](https://forum.pinegrow.com/t/problem-with-showing-posts-solved/7804/19 "2023-03-09T18:30:31Z")

</div>

Yes very useful…thanks  
About a year ago i was making a website and used archive-news.php for default wordpress posts with template News with pagination and everything was ok…and it still works today…

---

<div class="post-metadata">

**Author:** ![Emmanuel](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/emmanuel/32/6294_2.png) [@Emmanuel](https://forum.pinegrow.com/u/Emmanuel)\
**Post date:** [March 9, 2023, 6:33pm UTC](https://forum.pinegrow.com/t/problem-with-showing-posts-solved/7804/20 "2023-03-09T18:33:12Z")

</div>

**archive-{post-type}.php (classic theme)**

The archive post type template is used when visitors request a custom post type archive. For example, `archive-books.php` would be used for displaying an archive of posts from the custom post type named _books_. The archive template file is used if the `archive-{post-type} template` is not present.

And so on.  
More about WordPress template files : [Template Files | Theme Developer Handbook | WordPress Developer Resources](https://developer.wordpress.org/themes/basics/template-files/)

But your main concern in this case, I remind you, is that you don’t seem to call the right document. Not that archive.php is problematic.

[Next page](https://forum.pinegrow.com/t/problem-with-showing-posts-solved/7804.md?page=2)
