pods-framework / pods

The Pods Framework is a Content Development Framework for WordPress - It lets you create and extend content types that can be used for any project. Add fields of various types we've built in, or add your own with custom inputs, you have total control.
https://pods.io/
GNU General Public License v2.0
1.07k stars 264 forks source link

Problem with Nested Categories not showing correcty #5798

Open martin-neumann-at opened 4 years ago

martin-neumann-at commented 4 years ago

Describe the bug Nested categories do not show correctly when you assign one of them to a Pod

To Reproduce Steps to reproduce the behavior: Create a pod and assign a nested category to it. Create a main category and 2 or more subcategories. Add a new item to the created pod. Assign one of the subcategories to it. Publish your item. As soon as it is saved, the nested category structure is messed up. Will show some subcategories wrongly as top level.

Pods Version

Please provide the version of Pods you are running: 2.7.21

WordPress Environment

Debug Information

WordPress Version: 5.4.2

PHP Version: 7.3.20

MySQL Version: 5.7.25

Server Software: Apache

Your User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0

Session Save Path: /tmp

Session Save Path Exists: Yes

Session Save Path Writeable: Yes

Session Max Lifetime: 1440

Opcode Cache:

Apc: No
Memcached: No
OPcache: Yes
Redis: No

Object Cache:

APC: No
APCu: No
Memcache: No
Memcached: Yes
Redis: No

WPDB Prefix: ovv_

WP Multisite Mode: Yes

WP Memory Limit: 64M

Current Memory Usage: 5.801M

Current Memory Usage (real): 8.000M

Pods Network-Wide Activated: No

Pods Install Location: /home/customer/www/health4u.me/public_html/wp-content/plugins/pods/

Pods Tableless Mode Activated: No

Pods Light Mode Activated: No

Currently Active Theme: Wellness Pro

Currently Active Plugins:

Pods - Custom Content Types and Fields: 2.7.21

Pods Package Export (helpful!)

{"meta":{"version":"2.7.21","build":1596755602},"pods":{"3305":{"id":3305,"name":"recipy","label":"Recipes","description":"","type":"post_type","storage":"meta","object":"","alias":"","fields":[],"show_in_menu":"1","label_singular":"Recipy","public":"1","show_ui":"1","supports_title":"1","supports_editor":"1","publicly_queryable":"1","exclude_from_search":"0","capability_type":"post","capability_type_custom":"recipy","capability_type_extra":"1","has_archive":"0","hierarchical":"0","rewrite":"1","rewrite_with_front":"1","rewrite_feeds":"0","rewrite_pages":"1","query_var":"1","can_export":"1","default_status":"draft","supports_author":"0","supports_thumbnail":"0","supports_excerpt":"0","supports_trackbacks":"0","supports_custom_fields":"0","supports_comments":"0","supports_revisions":"0","supports_page_attributes":"0","supports_post_formats":"0","supports_genesis_seo":"0","supports_genesis_layouts":"0","supports_genesis_simple_sidebars":"0","built_in_taxonomies_category":"0","built_in_taxonomies_link_category":"0","built_in_taxonomies_post_tag":"0","built_in_taxonomies_recipy_type":"1","menu_position":"0","show_in_nav_menus":"1","show_in_admin_bar":"1","pfat_enable":"0","pfat_run_outside_loop":"0","pfat_append_single":"append","pfat_filter_single":"the_content","pfat_append_archive":"append","pfat_filter_archive":"the_content","rest_enable":"0","read_all":"0","write_all":"0"},"3341":{"id":3341,"name":"recipy_type","label":"Recipy Types","description":"","type":"taxonomy","storage":"meta","object":"","alias":"","fields":[],"show_in_menu":"1","label_singular":"Recipy Type","public":"1","show_ui":"1","hierarchical":"1","built_in_post_types_recipy":"1","rewrite":"1","rewrite_with_front":"1","rewrite_hierarchical":"1","capability_type":"default","capability_type_custom":"recipy_type","query_var":"0","sort":"0","built_in_post_types_custom_css":"0","built_in_post_types_customize_changeset":"0","built_in_post_types_oembed_cache":"0","built_in_post_types_page":"0","built_in_post_types_post":"0","built_in_post_types_user_request":"0","built_in_post_types_wp_block":"0","built_in_post_types_attachment":"0","menu_location":"default","menu_position":"0","show_in_nav_menus":"1","show_tagcloud":"1","show_tagcloud_in_edit":"1","show_in_quick_edit":"1","show_admin_column":"0","pfat_enable":"0","pfat_run_outside_loop":"0","pfat_append_archive":"append","rest_enable":"0","read_all":"0","write_all":"0"}}}
issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label Type: Bug to this issue, with a confidence of 0.95. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.