Subcategories are displayed as parent categories
-
Hey guys!
Unassigned subcategories are displayed as parent categories. After assigning one of them, they will be displayed correctly as subcategories.
Printscreen: https://pasteboard.co/VIHQUsjseXyT.pngIs this a bug or do I have something set up wrong?
Thank you for the answer and have a nice day!
-
Thanks for using PublishPress.
I have reviewed your screenshot, but I am uncertain if our plugin is related to this issue.
To troubleshoot further, could you please try temporarily deactivating our plugin to see if the issue is resolved? This will help us determine if there is any interaction between our plugin and the problem you are experiencing.
Without using your plugin it displays the categories correctly. The display of the categories in the screenshot is after logging in as a user with limited rights with your plugin.
If you need I can send you screenshots of the plugin settings and the display of categories without your plugin.
@lopatkafilip In that case, do you know how to replicate the issue?
I tested and my subcategories shows as subcategories
I’m sending screenshots, on one you can see the plugin setup, on the next one you can see only one subcategory assigned and on the last one you can see the remaining subcategories, but they are displayed as main categories (which is a mistake).
Plugin settings: https://pasteboard.co/8Ie4YKUjvaEv.png
Assign subcategory: https://pasteboard.co/mpDz32yi0c4Y.png
Other subcategories: https://pasteboard.co/kclLYo7R4zBB.png
If it would help, I can create one test account for you.
If it would help, I can create one test account for you.
Sorry, checking directly in the site is part of premium support for our PRO users.
Also, it’s prohibited on this forum: https://wordpress.org/support/guidelines/#the-bad-stuff
Plugin settings: https://pasteboard.co/8Ie4YKUjvaEv.png
Do you mind send me English version of this setting? So I can try to replicate this issue.
English settings: https://pasteboard.co/tkVdWtNbKopX.png
@lopatkafilip I still could not replicate this issue.
Can you inform me what PHP and PublishPress Permissions version you are using?
PublishPress Permissions version is 3.10.0
PHP version is 8.0.28
But I also use the PublishPress Capabilities plugin, can’t we relate to that?
Yes, it could be. Does the issue disappear if you deactivate PublishPress Capabilities?
So, I’ve tried deactivating PublishPress Capabilities, but the problem still persists..
@lopatkafilip Can you replicate this issue on fresh site? Or does this issue only happens on that specific site?
@lopatkafilip Based on a quick review of this thread, it looks like:
- You have restricted category selection to permit only certain subcategories
- You are expecting their parent categories to be displayed for context even though those parent categories are not selectable
That’s not how the plugin currently works. Only categories which are selectable are included in the checkbox panel. If one of the selectable categories is “orphaned” due to an unavailable parent, it is displayed under the next available ancestor (possibly top level).
I’ve tested it and got it set up correctly. I have set the article editing limited to 2 parent categories and their subcategories and the problem still persists.
For example, if I have parent category number 1 assigned, then its subcategories show up in the list as parent categories, but category 2 and its subcategories show up correctly.
If I assign category number 2, then its subcategories are displayed incorrectly and conversely category number 1 with subcategories is displayed correctly.Please try to send me how the correct setting should look like if I want to limit the editing of articles to 2 parent categories and their subcategories.
Please try to send me how the correct setting should look like if I want to limit the editing of articles to 2 parent categories and their subcategories.
Please try this configuration
We haven’t heard back from you in a while, so I’m going to mark this as resolved. If you have any further questions, please reply again here, or you can start a new thread.
Thanks,
- The topic ‘Subcategories are displayed as parent categories’ is closed to new replies.