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

Permalink Structure Broken/Rewrite #6109

Open tprinty opened 3 years ago

tprinty commented 3 years ago

Description

I have had to revert to using the standard WP query structure for PODS that existed before 2.7 and created in 2.7.

Example of a new POD not working with default settings. https://nelsonhill.com/test-pod/test/

Testing instructions

  1. Create a New POD
  2. Add Title field to POD
  3. Add body field to POD
  4. Add Content to the new POD type
  5. Try to view new POD content

Expected behavior

Expected to see the new content type displayed

Screenshots / screencast

Receieved a 404 Page

Possible workaround

Switch back to non url re-write

Pods version

2.7.30

Other super helpful information

WordPress Environment ` ### wp-core ### version: 5.8 site_language: en_US user_language: en_US timezone: +00:00 permalink: /%postname%/ https_status: true multisite: false user_registration: 0 blog_public: 1 default_comment_status: open environment_type: production user_count: 3 dotorg_communication: true ### wp-paths-sizes ### wordpress_path: /home/customer/www/nelsonhill.com/public_html wordpress_size: 55.73 MB (58439952 bytes) uploads_path: /home/customer/www/nelsonhill.com/public_html/wp-content/uploads uploads_size: 431.43 MB (452384941 bytes) themes_path: /home/customer/www/nelsonhill.com/public_html/wp-content/themes themes_size: 18.00 MB (18872613 bytes) plugins_path: /home/customer/www/nelsonhill.com/public_html/wp-content/plugins plugins_size: 112.62 MB (118090755 bytes) database_size: 60.47 MB (63406080 bytes) total_size: 678.25 MB (711194341 bytes) ### wp-active-theme ### name: GeneratePress (generatepress) version: 3.0.4 author: Tom Usborne author_website: https://tomusborne.com parent_theme: none theme_features: core-block-patterns, widgets-block-editor, automatic-feed-links, post-thumbnails, post-formats, woocommerce, title-tag, html5, customize-selective-refresh-widgets, align-wide, responsive-embeds, custom-logo, menus, editor-style, widgets theme_path: /home/customer/www/nelsonhill.com/public_html/wp-content/themes/generatepress auto_update: Disabled ### wp-themes-inactive (5) ### EAC Starter: version: 1.0, author: Edison Avenue Consulting, Auto-updates disabled Twenty Nineteen: version: 2.1, author: the WordPress team, Auto-updates disabled Twenty Seventeen: version: 2.8, author: the WordPress team, Auto-updates disabled Twenty Twenty: version: 1.8, author: the WordPress team, Auto-updates disabled Twenty Twenty-One: version: 1.4, author: the WordPress team, Auto-updates disabled ### wp-mu-plugins (1) ### ManageWP - Worker Loader: author: GoDaddy, version: (undefined) ### wp-plugins-active (13) ### BTS Properties: version: 1.8.78, author: BTS Brands, Auto-updates disabled Contact Form 7: version: 5.4.2, author: Takayuki Miyoshi, Auto-updates disabled Custom Twitter Feeds: version: 1.8.2, author: Smash Balloon, Auto-updates disabled Elementor: version: 3.4.3, author: Elementor.com, Auto-updates disabled Elementor Pro: version: 3.4.0, author: Elementor.com, Auto-updates disabled Essential Addons for Elementor: version: 4.8.4, author: WPDeveloper, Auto-updates disabled Essential Addons for Elementor - Pro: version: 4.4.8, author: WPDeveloper, Auto-updates disabled ManageWP - Worker: version: 4.9.9, author: GoDaddy, Auto-updates disabled Pods - Custom Content Types and Fields: version: 2.7.30, author: Pods Framework Team, Auto-updates disabled Rank Math SEO: version: 1.0.70, author: Rank Math, Auto-updates disabled Simple Custom CSS and JS: version: 3.37, author: SilkyPress.com, Auto-updates disabled SiteGround Optimizer: version: 5.9.5, author: SiteGround, Auto-updates disabled Slider Revolution: version: 6.2.23, author: ThemePunch, Auto-updates disabled ### wp-media ### image_editor: WP_Image_Editor_GD imagick_module_version: Not available imagemagick_version: Not available imagick_version: Not available file_uploads: File uploads is turned off post_max_size: 256M upload_max_filesize: 256M max_effective_size: 256 MB max_file_uploads: 20 gd_version: 2.2.5 gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM ghostscript_version: 9.27 ### wp-server ### server_architecture: Linux 3.12.18-clouder0 x86_64 httpd_software: Apache php_version: 7.4.22 64bit php_sapi: cgi-fcgi max_input_variables: 3000 time_limit: 120 memory_limit: 768M max_input_time: 120 upload_max_filesize: 256M php_post_max_size: 256M curl_version: 7.66.0 OpenSSL/1.1.1l-fips suhosin: false imagick_availability: false pretty_permalinks: true htaccess_extra_rules: true ### wp-database ### extension: mysqli server_version: 5.7.32-35-log client_version: mysqlnd 7.4.22 ### wp-constants ### WP_HOME: undefined WP_SITEURL: undefined WP_CONTENT_DIR: /home/customer/www/nelsonhill.com/public_html/wp-content WP_PLUGIN_DIR: /home/customer/www/nelsonhill.com/public_html/wp-content/plugins WP_MEMORY_LIMIT: 40M WP_MAX_MEMORY_LIMIT: 768M WP_DEBUG: false WP_DEBUG_DISPLAY: true WP_DEBUG_LOG: false SCRIPT_DEBUG: false WP_CACHE: false CONCATENATE_SCRIPTS: undefined COMPRESS_SCRIPTS: undefined COMPRESS_CSS: undefined WP_LOCAL_DEV: undefined DB_CHARSET: utf8 DB_COLLATE: undefined ### wp-filesystem ### wordpress: writable wp-content: writable uploads: writable plugins: writable themes: writable mu-plugins: writable ### pods ### pods-server-software: Apache pods-user-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0 pods-session-save-path: /tmp pods-session-save-path-exists: Yes pods-session-save-path-writable: Yes pods-session-max-lifetime: 1440 pods-opcode-cache-apc: No pods-opcode-cache-memcached: No pods-opcode-cache-opcache: Yes pods-opcode-cache-redis: No pods-object-cache-apc: No pods-object-cache-apcu: No pods-object-cache-memcache: No pods-object-cache-memcached: Yes pods-object-cache-redis: No pods-memory-current-usage: 14.582M pods-memory-current-usage-real: 16.000M pods-network-wide: No pods-install-location: /home/customer/www/nelsonhill.com/public_html/wp-content/plugins/pods/ pods-developer: No pods-tableless-mode: No pods-light-mode: No pods-strict: No pods-allow-deprecated: Yes pods-api-cache: Yes pods-shortcode-allow-evaluate-tags: No `
Pods Package Export {"meta":{"version":"2.7.30","build":1630437369},"pods":{"589":{"id":589,"name":"case_study","label":"Case Studies","description":"","type":"post_type","storage":"meta","object":"","alias":"","fields":{"is_featured_case_study":{"id":1948,"name":"is_featured_case_study","label":"Is Featured Case Study","description":"","help":"","class":"","type":"boolean","weight":0,"pick_object":"","pick_val":"","sister_id":"","required":"1","oembed_enabled_providers_facebookcom":"0","oembed_enabled_providers_instagramcom":"0","pick_post_status":["publish"],"boolean_format_type":"radio","boolean_yes_label":"Yes","boolean_no_label":"No","default_value":"No","admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2","unique":"0"},"address_and_category":{"id":590,"name":"address_and_category","label":"Address and Category","description":"","help":"","class":"","type":"wysiwyg","weight":1,"pick_object":"","pick_val":"","sister_id":"","required":"0","wysiwyg_editor":"tinymce","wysiwyg_media_buttons":"1","wysiwyg_oembed":"0","wysiwyg_wptexturize":"1","wysiwyg_convert_chars":"1","wysiwyg_wpautop":"1","wysiwyg_allow_shortcode":"0","oembed_enabled_providers_facebookcom":"0","oembed_enabled_providers_instagramcom":"0","pick_post_status":["publish"],"admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2","unique":"0","wysiwyg_repeatable":"0","wysiwyg_editor_height":"","wysiwyg_allowed_html_tags":""},"pictures":{"id":591,"name":"pictures","label":"Pictures","description":"","help":"","class":"","type":"wysiwyg","weight":2,"pick_object":"","pick_val":"","sister_id":"","required":"0","wysiwyg_editor":"tinymce","wysiwyg_media_buttons":"1","wysiwyg_oembed":"0","wysiwyg_wptexturize":"1","wysiwyg_convert_chars":"1","wysiwyg_wpautop":"1","wysiwyg_allow_shortcode":"0","oembed_enabled_providers_facebookcom":"0","oembed_enabled_providers_instagramcom":"0","pick_post_status":["publish"],"admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2","unique":"0","wysiwyg_repeatable":"0","wysiwyg_editor_height":"","wysiwyg_allowed_html_tags":""}},"show_in_menu":"1","label_singular":"Case Study","public":"1","show_ui":"1","supports_title":"1","supports_editor":"1","publicly_queryable":"1","exclude_from_search":"0","capability_type":"post","capability_type_custom":"case_study","capability_type_extra":"1","has_archive":"0","hierarchical":"0","rewrite":"0","rewrite_with_front":"0","rewrite_feeds":"0","rewrite_pages":"1","query_var":"1","can_export":"1","default_status":"draft","supports_author":"0","supports_thumbnail":"1","supports_excerpt":"0","supports_trackbacks":"0","supports_custom_fields":"0","supports_comments":"0","supports_revisions":"0","supports_page_attributes":"0","supports_post_formats":"0","built_in_taxonomies_category":"0","built_in_taxonomies_elementor_font_type":"0","built_in_taxonomies_elementor_library_category":"0","built_in_taxonomies_elementor_library_type":"0","built_in_taxonomies_link_category":"0","built_in_taxonomies_post_tag":"0","menu_position":"0","show_in_nav_menus":"1","show_in_admin_bar":"1","pfat_enable":"1","pfat_run_outside_loop":"1","pfat_single":"Case Study Page","pfat_append_single":"replace","pfat_filter_single":"the_content","pfat_append_archive":"replace","pfat_filter_archive":"custom","rest_enable":"0","read_all":"0","write_all":"0","built_in_taxonomies_category_pro":"0","built_in_taxonomies_wp_theme":"0","pfat_filter_archive_custom":"the_content","has_archive_slug":"case_study_archive"},"424":{"id":424,"name":"featured_project","label":"Featured Projects","description":"","type":"post_type","storage":"meta","object":"","alias":"","fields":{"square_area":{"id":425,"name":"square_area","label":"Square Area","description":"","help":"","class":"","type":"text","weight":0,"pick_object":"","pick_val":"","sister_id":"","required":"1","text_allow_shortcode":"0","text_allow_html":"0","text_allowed_html_tags":"strong em a ul ol li b i","text_max_length":"255","oembed_enabled_providers_facebookcom":"0","oembed_enabled_providers_instagramcom":"0","pick_post_status":["publish"],"admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2","unique":"0","text_repeatable":"0","text_placeholder":""},"picture":{"id":427,"name":"picture","label":"Picture","description":"","help":"","class":"","type":"file","weight":1,"pick_object":"custom-simple","pick_val":"","sister_id":"","required":"1","file_format_type":"single","file_uploader":"attachment","file_attachment_tab":"upload","file_edit_title":"1","file_show_edit_link":"0","file_linked":"0","file_limit":"0","file_restrict_filesize":"10MB","file_type":"images","file_field_template":"rows","file_add_button":"Add File","file_modal_title":"Attach a file","file_modal_add_button":"Add File","file_wp_gallery_output":"0","file_wp_gallery_link":"post","file_wp_gallery_columns":"1","file_wp_gallery_random_sort":"0","file_wp_gallery_size":"thumbnail","oembed_enabled_providers_facebookcom":"0","oembed_enabled_providers_instagramcom":"0","pick_post_status":["publish"],"admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2","unique":"0","file_upload_dir":"wp","file_upload_dir_custom":"","file_allowed_extensions":""}},"show_in_menu":"1","label_singular":"Featured Project","public":"1","show_ui":"1","supports_title":"1","supports_editor":"1","publicly_queryable":"1","exclude_from_search":"0","capability_type":"post","capability_type_custom":"featured_project","capability_type_extra":"1","has_archive":"0","hierarchical":"0","rewrite":"0","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","built_in_taxonomies_category":"0","built_in_taxonomies_elementor_font_type":"0","built_in_taxonomies_elementor_library_category":"0","built_in_taxonomies_elementor_library_type":"0","built_in_taxonomies_link_category":"0","built_in_taxonomies_post_tag":"0","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":"custom","rest_enable":"0","read_all":"0","write_all":"0","built_in_taxonomies_category_pro":"0","built_in_taxonomies_wp_theme":"0","pfat_filter_archive_custom":"the_content"},"2638":{"id":2638,"name":"test_pod","label":"Test PODS","description":"","type":"post_type","storage":"meta","object":"","alias":"","fields":{"podtitle":{"id":2639,"name":"podtitle","label":"Title","description":"The title","help":"","class":"","type":"text","weight":0,"pick_object":"","pick_val":"","sister_id":"","required":"0","text_allow_shortcode":"0","text_allow_html":"0","text_allowed_html_tags":"strong em a ul ol li b i","text_max_length":"255","pick_post_status":["publish"],"admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"1","text_repeatable":0,"text_placeholder":""},"body":{"id":2640,"name":"body","label":"Body","description":"","help":"","class":"","type":"wysiwyg","weight":1,"pick_object":"","pick_val":"","sister_id":"","required":"0","wysiwyg_editor":"tinymce","wysiwyg_media_buttons":"1","wysiwyg_oembed":"0","wysiwyg_wptexturize":"1","wysiwyg_convert_chars":"1","wysiwyg_wpautop":"1","wysiwyg_allow_shortcode":"0","pick_post_status":["publish"],"admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"1","wysiwyg_repeatable":0,"wysiwyg_editor_height":"","wysiwyg_allowed_html_tags":""}},"show_in_menu":"1","label_singular":"Test POD","public":"1","show_ui":"1","supports_title":"1","supports_editor":"1","publicly_queryable":"1","exclude_from_search":"0","capability_type":"post","capability_type_custom":"test_pod","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","built_in_taxonomies_category":"0","built_in_taxonomies_category_pro":"0","built_in_taxonomies_elementor_font_type":"0","built_in_taxonomies_elementor_library_category":"0","built_in_taxonomies_elementor_library_type":"0","built_in_taxonomies_link_category":"0","built_in_taxonomies_post_tag":"0","built_in_taxonomies_wp_theme":"0","menu_position":"0","show_in_nav_menus":"1","show_in_admin_bar":"1","pfat_enable":"0","pfat_append_single":"append","pfat_filter_single":"the_content","pfat_append_archive":"append","pfat_filter_archive":"the_excerpt","pfat_run_outside_loop":"0","rest_enable":"0","read_all":"0","write_all":"0"}},"templates":{"Case Study Page":{"id":595,"name":"Case Study Page","code":"[elementor-template id=\"1690\"]\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \"arrow-back\"\r\n <\/a>\r\n <\/div>\r\n
\r\n

\r\n CASE STUDIES<\/a>\r\n <\/h2>\r\n <\/div>\r\n <\/div>\r\n <\/div>\r\n <\/div>\r\n<\/div>\r\n[if pictures]\r\n
\r\n
\r\n
\r\n
\r\n {@address_and_category}\r\n <\/div>\r\n {@post_content}\r\n <\/div>\r\n
\r\n {@pictures}\r\n <\/div>\r\n <\/div>\r\n<\/div>\r\n[else]\r\n
\r\n
\r\n
\r\n
\r\n {@address_and_category}\r\n <\/div>\r\n {@post_content}\r\n <\/div>\r\n <\/div>\r\n<\/div>\r\n[\/if]\r\n","type":"template","slug":"case-study-page","options":{"_edit_lock":"1601957866:3","_edit_last":"3","admin_only":"","restrict_capability":"","capability_allowed":"","slide_template":"","rs_page_bg_color":"","pod_reference":"a:1:{s:3:\"pod\";s:10:\"case_study\";}"}},"Case Studies Grid":{"id":637,"name":"Case Studies Grid","code":"

sc0ttkclark commented 3 years ago

Do you see any difference after you go to Pods Admin > Settings > and click "Clear Pods Cache"?