How to increase the number of posts displayed on the home page of WordPress, Travel and Tour template – Kagua! Creator Economy News

2024-02-22 21:00:30

The WordPress Travel and Tour theme is an official directory theme that is useful for homepages that get a lot of searches. It’s very easy to use, fast, and stylish, but it limits the number of posts that can be displayed on the front page. We will show you how to change the number of posts on the top page.

WordPress, Travel and Tour templates

>>Travel and Tour – WordPress Theme | WordPress.org

The Travel and Tour theme is really nice. It’s responsive, compatible with smartphones, has movement, and is very modern. It’s also nice that it’s lightweight.

The current number of displayed items is 3.

The number of displayed items on the front page of the Travel and Tour template is 3. Even if you look in the theme customizer or look at the settings, there is no setting to change the number of items.

Probably from the bottom of the page after the page loads with animation, Shuin! I feel that this is because unexpected behavior such as sluggishness can be expected if the number of items is increased.

However, the number of displayed items on the front page was too few, so I looked for a way to increase it.

Found in the parent theme Travel Agency

Travel and Tour is a theme listed in the official WordPress directory called Travel Agency.

of this theme sections>blog.php The number of cases is written in.‘posts_per_page’=>3, That is the line.

3 is the number of posts” width=”656″ height=”465″ class=”alignnone size-full wp-image-175532″ srcset=” 656w, 300w” sizes=”(max-width: 656px) 100vw, 656px”/>

Modify the child theme Travel and Tour

So, it is not easy to say whether changing this posts_per_page will increase the number of displayed posts.

When the theme is updated, the settings will be overwritten and reverted to the original settings. Therefore, let’s make some modifications to the minor theme.

Copy the parent theme blog.php to your PC. Put it in the sections folder. Then, just put that folder into the Travel and Tour child theme folder. If a child theme has the same file name as the parent theme, it will be prioritized.

On top of that, in this blog.php file,‘posts_per_page’=>3, を、’posts_per_page’=>10, It would be better to do this. Now you can increase the number of posts on your front page.

・ ・ ・ ・ ・

>>Cheap!It’s less than half price on Amazonfood time sale
View special sale page

↓↓↓Free newsletter is now being distributed

Travel and Tour

Post Views: 287

1708843355
#increase #number #posts #displayed #home #page #WordPress #Travel #Tour #template #Kagua #Creator #Economy #News

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.