- This topic has 12 replies, 3 voices, and was last updated 3 months, 4 weeks ago by
David.
-
AuthorPosts
-
October 31, 2020 at 9:38 am #1512581
Jim
We use the right sidebar to list all of the individual articles in each issue of Contemporary Haibun Online: https://contemporaryhaibunonline.com/cho-16-2/
The next issue will have 80-100 articles. For some reason, not all of our articles are appearing in the right side bar. Does GeneratePress set a limit on how many items can be displayed there? If so, can we increase that limit?
Below is the email the CHO editor sent to me:
“I’ve been preparing the next edition of cho, and I’ve run into an issue. We have a lot of material this issue (Terri got a bumper crop of submissions and chose 78 haibun, plus we have a number of articles). This morning I was ordering and publishing the pages in preparation for proofing, and the sidebar menu seems to have run out of room: It stops at Richard Grahn’s Snapshots, and there are still about 20 tanka prose pieces to go. I took a look at the entries after Snapshots and couldn’t see any difference in how they’re set up from what came before, nor can I find anything in the cms about increasing the depth of the sidebar. Would you mind taking a look to see if you can find a solution?”
October 31, 2020 at 10:31 am #1512635Leo
StaffCustomer SupportHi there,
Does GeneratePress set a limit on how many items can be displayed there? If so, can we increase that limit?
No. What widget are you using?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 31, 2020 at 8:16 pm #1513011Jim
Advanced Sidebar Menu
November 1, 2020 at 6:05 am #1513308David
StaffCustomer SupportHi there,
this is probably related to the server settings:
max_input_vars
– if this is set to 1000 which is quite common it will allow for around a total of 90 menu items.You check what the max is set to in Dashboard > Tools > Site Heath -> Info –> Server >>>> PHP max input variables
You may also want to check if Suhosin is enabled as this can also limit the number of variables.
Your host should be able to help increase that if you do not have access to .httacccess or php.ini
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 1, 2020 at 7:21 am #1513365Jim
Thanks, David. This is probably what we’ll do. Or change the way we do that menu!
November 1, 2020 at 7:32 am #1513373David
StaffCustomer SupportGlad to be of help
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 2, 2020 at 6:25 pm #1515424Jim
Reopening. I’d like to try again to solve this issue. To recap: We are using Advanced Sidebar Menu to list all of the individual articles in each issue of Contemporary Haibun Online. Only about 70 or so items are displaying in the right sidebar out of about 90 or 100.
I set PHP max input variables to 2000. There was no change in the number of menu items/articles that displayed in the right sidebar.
1. Would setting PHP max input variables above 2000 help, or is that not likely to help?
2. Would using Advanced Sidebar Menu make any difference, here?
November 2, 2020 at 6:37 pm #1515438Jim
Should have written:
2. Would using Advanced Sidebar Menu *PRO* make any difference, here?
November 2, 2020 at 10:40 pm #1515596Leo
StaffCustomer SupportDid you check with the plugin support on this?
I’d assume they would have a better idea of what’s going on here as it doesn’t sound like a theme-related issue.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 6, 2020 at 8:08 am #1520712Jim
This is what Tech Support for the Advanced Sidebar Menu plugin wrote:
“By default the plugin has a limit of 100 pages per level. You may change this by adding the following filter to your active theme’s functions.php file.
add_filter( 'advanced-sidebar-menu/list-pages/parse-args', function( $args ) {
$args['posts_per_page'] = 1000;
return $args;
});_______
I seem to recall that I can add such custom PHP statements through a GeneratePress GUI rather than updating the file. Could you remind me if/how I can do that?
November 6, 2020 at 8:13 am #1520715David
StaffCustomer SupportThat type of function has to be added using one of the methods provided here:
https://docs.generatepress.com/article/adding-php/
TLDR: If you’re using a Child Theme then it can be added to the Child Themes functions.php, if not you could use the Code Snippets plugin.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 6, 2020 at 8:30 am #1520737Jim
Thanks, David. We’ll try the Code Snippets plugin and see what happens.
November 6, 2020 at 8:31 am #1520740David
StaffCustomer SupportYou’re welcome
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.