# Page not found when I page on "Loop type: custom query" \[Fixed\]

**URL:** <https://forum.pinegrow.com/t/page-not-found-when-i-page-on-loop-type-custom-query-fixed/8064>\
**Category:** WordPress\
**Tags:** wordpress\
**Created:** [May 26, 2023, 3:34am UTC](https://forum.pinegrow.com/t/page-not-found-when-i-page-on-loop-type-custom-query-fixed/8064 "2023-05-26T03:34:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gmzago](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/gmzago/32/5685_2.png) [@gmzago](https://forum.pinegrow.com/u/gmzago)\
**Post date:** [May 26, 2023, 3:34am UTC](https://forum.pinegrow.com/t/page-not-found-when-i-page-on-loop-type-custom-query-fixed/8064/1 "2023-05-26T03:34:39Z")

</div>

I’m trying to do pagination in my loop:

Show post \> custom query \> “procedimentos”  
Look:

 ![01](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/2/2783563cecae212fd9baee380a782c51f1f44bb2.png)

to be continued:  
[https://prnt.sc/7XjFQqkIvNmt](https://prnt.sc/7XjFQqkIvNmt)

My pagination setup looks like this:  
[https://prnt.sc/hjXo2uyQgyre](https://prnt.sc/hjXo2uyQgyre)

On the page displayed in the browser, the number of pages it generated is correctly counted, but when I browse the pages, it generates the error “Page not found”.

Does anyone know where I might be going 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:** [May 26, 2023, 5:13am UTC](https://forum.pinegrow.com/t/page-not-found-when-i-page-on-loop-type-custom-query-fixed/8064/2 "2023-05-26T05:13:07Z")

</div>

Hello @gmzago

maybe its related to this ?

> **[Troubleshooting | Pinegrow Web Editor](https://pinegrow.com/docs/wordpress/troubleshooting/#how-to-fix-wordpress-custom-post-types-related-errors-during-the-development-phase)**
>
> Because the conversion from HTML to WordPress is not a black box process, there are sometimes edge cases that you will need to take into consideration upfront in order to ensure the successful…

---

<div class="post-metadata">

**Author:** ![gmzago](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/gmzago/32/5685_2.png) [@gmzago](https://forum.pinegrow.com/u/gmzago)\
**Post date:** [May 26, 2023, 7:08pm UTC](https://forum.pinegrow.com/t/page-not-found-when-i-page-on-loop-type-custom-query-fixed/8064/3 "2023-05-26T19:08:40Z")

</div>

It worked!

In your link that you sent me, there was another link, which was this:

> **[How to Fix Custom Post Type 404 Errors In WordPress](https://www.wpexplorer.com/post-type-404-error/)**
>
> Hot to fix 404 custom post type errors.Some quick tips for fixing 404 errors that have resulted from the use of Custom Post Types in your WordPress Theme.

Fixes the issue in item 2).

Thanks!!!

---

<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:** [May 27, 2023, 7:03am UTC](https://forum.pinegrow.com/t/page-not-found-when-i-page-on-loop-type-custom-query-fixed/8064/4 "2023-05-27T07:03:49Z")

</div>


