# Class 'PG\_Pagination' not found

**URL:** https://forum.pinegrow.com/t/class-pg-pagination-not-found/6347
**Category:** Pinegrow WP
**Created:** [March 4, 2022, 4:21pm UTC](https://forum.pinegrow.com/t/class-pg-pagination-not-found/6347 "2022-03-04T16:21:02Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![miltonardila](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/miltonardila/32/2396_2.png) [@miltonardila](https://forum.pinegrow.com/u/miltonardila)
#### Post date: [March 4, 2022, 4:21pm UTC](https://forum.pinegrow.com/t/class-pg-pagination-not-found/6347/1 "2022-03-04T16:21:02Z")

</div>

Hello,

I’m converting an HTML Theme to Wordpress, following the huge amount of documentation about it (in some cases it’s confusing because they are older versions and the UI doesn’t match).

It seems that so far, setting up pages, posts, titles, links, loops… with the smart actions is very easy. But I had a problem when I got to the pagination.

At the moment of saving I get a warning like this:  
**Quick export was done. But the Whole Theme Export is needed to apply changes to Pagination.**

 ![Screenshot 2022-03-04 at 17.15.40 (2)](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/9/9cdc106c1d7d003783b117af929a2f92db74f4f8.jpeg)

And in the preview it looks like this:

 ![Screenshot 2022-03-04 at 17.19.40](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/1/1a37ed9dbd83d122d8c51a95552a8f47292ab09e.jpeg)

I have already configured to show a maximum of 2 posts per page and I have 4 test posts.

I hope you can help me, thank you very much.

---

<div class="post-metadata">

### Author: ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)
#### Post date: [March 4, 2022, 6:53pm UTC](https://forum.pinegrow.com/t/class-pg-pagination-not-found/6347/2 "2022-03-04T18:53:02Z")

</div>

Hey @miltonardila,  
I have to explore this a little further, but with regards to the full export - Under the WordPress menu the top item is to export the theme. Maybe there were changes to the functions.php that aren’t exported with just a save. Can you try that and see if it fixes your problems?  
Cheers,  
Bob

---

<div class="post-metadata">

### Author: ![miltonardila](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/miltonardila/32/2396_2.png) [@miltonardila](https://forum.pinegrow.com/u/miltonardila)
#### Post date: [March 17, 2022, 12:00pm UTC](https://forum.pinegrow.com/t/class-pg-pagination-not-found/6347/3 "2022-03-17T12:00:48Z")

</div>

Hi @RobM,

Sorry to reply after several days, tasks are piling up and some are more of a priority.

I’ve gone back and exported the theme completely, and I still have errors.

---

<div class="post-metadata">

### Author: ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)
#### Post date: [March 17, 2022, 2:49pm UTC](https://forum.pinegrow.com/t/class-pg-pagination-not-found/6347/4 "2022-03-17T14:49:17Z")

</div>

Hi @miltonardila,  
I’ll set something up locally to test pagination. You are using the latest Pinegrow version?  
Thanks,  
Bob

---

<div class="post-metadata">

### Author: ![miltonardila](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/miltonardila/32/2396_2.png) [@miltonardila](https://forum.pinegrow.com/u/miltonardila)
#### Post date: [March 17, 2022, 3:35pm UTC](https://forum.pinegrow.com/t/class-pg-pagination-not-found/6347/5 "2022-03-17T15:35:51Z")

</div>

Thank you for your support.

Pinegrow: 6.4  
Local: 6.3.1  
Wordpress: 5.9.1  
MySQL: 8.0.16

Download link of the project: [hogarabitat\_blog\_wordpress.zip](https://bit.ly/3u5UwI5)

---

<div class="post-metadata">

### Author: ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)
#### Post date: [March 17, 2022, 8:52pm UTC](https://forum.pinegrow.com/t/class-pg-pagination-not-found/6347/6 "2022-03-17T20:52:42Z")

</div>

Hi @miltonardila,  
So I tested out pagination with your project. For the loop I added a smart actions Show Posts with the following settings:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/3/3a670213474e1fa829d5337f4f4bee694c7799f8.png)  
Then for the pagination I added the pagination smart action:  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/5/54217598e2697c3f5fc267fd213bf03737f1a789.png)  
Then I saved the page and exported the whole theme. Worked just fine.  
You may want to delete everything out of the folder in your WordPress that you are exporting into before doing the theme export. Basically start fresh.  
Let me know if this works,  
Bob

---

<div class="post-metadata">

### Author: ![miltonardila](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/miltonardila/32/2396_2.png) [@miltonardila](https://forum.pinegrow.com/u/miltonardila)
#### Post date: [March 18, 2022, 12:08am UTC](https://forum.pinegrow.com/t/class-pg-pagination-not-found/6347/7 "2022-03-18T00:08:10Z")

</div>

Thank you very much for your help, I have done the same steps you sent me and now it works. I will have to make some modifications in the `li.active` but everything has been fine.

Why the solution was to change the type of Loop?

It’s just to understand how it works and learn how to use it to convert HTML templates to Wordpress.  
When you tell me to delete everything and start again, is it for something special? My client has given me his html template and wants me to convert it into a Wordpress theme.

Thank you again for your help.

---

<div class="post-metadata">

### Author: ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)
#### Post date: [March 18, 2022, 9:40am UTC](https://forum.pinegrow.com/t/class-pg-pagination-not-found/6347/8 "2022-03-18T09:40:20Z")

</div>

Hi @miltonardila,  
I’m not sure where you had set your number of posts. The main post doesn’t allow setting the number of posts per page inside the query. It also doesn’t have an option to paginate.

I told you to delete everything in the export folder because I was concerned that there had been an earlier glitch in exporting that was still giving problems. Since Pinegrow can regenerate the whole theme it never hurts if you are getting odd errors.  
Cheers,  
Bob

---

<div class="post-metadata">

### Author: ![miltonardila](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/miltonardila/32/2396_2.png) [@miltonardila](https://forum.pinegrow.com/u/miltonardila)
#### Post date: [March 18, 2022, 11:20am UTC](https://forum.pinegrow.com/t/class-pg-pagination-not-found/6347/9 "2022-03-18T11:20:19Z")

</div>

I have configured the number of posts in Wordpress (according to the web tutorial), from the reading settings.

 ![Screenshot 2022-03-18 at 12.18.47](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/8/80f58acff6c447b81b85fb2eeabb11457c850fda.png)
