- msimon June 2, 2023 at 8:39 pm
I would like to add all of my info boxes but it will only show 3. I added the function below that I found on the forum but it didn’t work.
// filter the amount of info boxes items displayed on the home page
function nice_home_infobox_limit( $limit ){// -1 = all, 1=1, 2=2, etc.
$limit = -1;return $limit;
}add_filter( ‘nice_home_infobox_posts’, ‘nice_home_infobox_limit’ );
Juanfra Aldasoro June 5, 2023 at 3:49 pmHi,
Thank you for reaching out. I hope you’re doing well.
We don’t have the
nice_home_infobox_posts
filter, but we have thenicethemes_infoboxes_args
you can use.In the following example, it’s setting the limit to four, and four columns.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters<?php //* Do NOT include the opening php tag add_filter( 'nicethemes_infoboxes_args', 'custom_infoboxes_args' ); function custom_infoboxes_args( $args ) { $args['columns'] = 4; // change this value if needed $args['numberposts'] = 4; // change this value if needed return $args; } You can use that code, and modify it to use the value -1 for the numberposts to list all the infoboxes you have.
Best,
Juan.msimon June 5, 2023 at 6:18 pmThank you that worked. I have one more issue with categories. I have articles that fall under subcategories but it’s listing them weirdly. It lists the category then the subcategory and then the articles. I would really like it to list the category and then the subcategory with the articles underneath the proper sub.
Front Desk/Administrative Documentation(22) (MAIN)
Basic Navigation (SUB)
Front Desk Scheduling(SUB)
Life Cycle of a Client: Intake and Assessment(SUB)
– Introduction to the Home Page and Icons
-How to Schedule a Follow-up Appt
– Introduction to Widgets
-How to Reschedule an Appt
– How to Use the Tracking Widgets
– How to Document a No-Show Appt
You must be logged in to reply to this topic.