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

paragraph tags stripped from first records's default post_content #5380

Closed verityweb closed 5 years ago

verityweb commented 5 years ago

Issue Overview

The first pods post's default WordPress WYSIWYG content is missing the paragraph tags but all following records are fine.

Expected Behavior

All records should display fully formatted content from WordPress default post_content since autop is enabled by default.

Current Behavior

As you can see from these 2 pages, there are 2 columns, each with the same query. https://veritywebsvs.com/odhh/intepreters2/ https://veritywebsvs.com/odhh/intepreters3/

The query is only displaying content from the post_content of each record. All of the records have content with an h3 at the top then mixed content separated by paragraphs below. The content of the first record on column 1 is not properly formatted. The

tags are missing. The exact same record in column 2 is formatted correctly. This is true for any record that appears in the first position if the query order is changed or filtered.

NOTE: I tried deactivating ALL plugins including Beaver Builder (not Pods) and used the default WordPress Twenty Nineteen theme but the behavior remained on the page using the shortcode. See screenshot at: https://www.screencast.com/t/i3Yi8CH4V3

Steps to Reproduce (for bugs)

  1. created a pod and custom taxonomy
  2. entered information into pods and formatted content into the WYSIWYG editor
  3. displayed on page using Beaver Builder or Pods shortcode

Possible Solution

???

WordPress Environment

``` WordPress Version: 5.2.1 PHP Version: 7.1.29 MySQL Version: 5.6.40 Server Software: Apache Your User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.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: odhh_ WP Multisite Mode: No WP Memory Limit: 40M Current Memory Usage: 18.379M Current Memory Usage (real): 20.000M Pods Network-Wide Activated: No Pods Install Location: /home/veritywe/public_html/odhh/wp-content/plugins/pods/ Pods Tableless Mode Activated: No Pods Light Mode Activated: No Currently Active Theme: SEO SEM Pros child theme Currently Active Plugins: Accessibility by UserWay: 1.2 All-in-One Event Calendar by Time.ly: 2.5.40 AMP: 1.1.1 BackupBuddy: 8.4.15.0 Beaver Builder Plugin (Agency Version): 2.2.3 Beaver Themer: 1.2.3.4 Classic Editor: 1.5 Embed Any Document: 2.4.1 FacetWP: 3.3.7 FacetWP - Pods integration: 1.2.1 Feedzy RSS Feeds Lite: 3.3.6 Formidable Forms: 4.0 Pods - Custom Content Types and Fields: 2.7.12 TinyMCE Advanced: 5.2.1 Ultimate Addons for Beaver Builder: 1.17.0 Wordfence Security: 7.3.2 Yoast SEO: 11.2.1 ```

Pods Package Export (helpful!)

{"meta":{"version":"2.7.12","build":1558620889},"pods":{"496":{"id":496,"name":"certification_type","label":"Certification Types","description":"","type":"taxonomy","storage":"meta","object":"","alias":"","fields":[],"show_in_menu":"1","label_singular":"Certification Type","public":"1","show_ui":"1","hierarchical":"1","built_in_post_types_interpreter":"1","rewrite":"1","rewrite_with_front":"1","rewrite_hierarchical":"1","capability_type":"default","capability_type_custom":"certification_type","query_var":"0","sort":"0","built_in_post_types_ai1ec_event":"0","built_in_post_types_amp_validated_url":"0","built_in_post_types_custom_css":"0","built_in_post_types_customize_changeset":"0","built_in_post_types_feedzy_categories":"0","built_in_post_types_fl-builder-template":"0","built_in_post_types_fl-theme-layout":"0","built_in_post_types_frm_form_actions":"0","built_in_post_types_frm_styles":"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","show_in_nav_menus":"1","show_tagcloud":"0","show_tagcloud_in_edit":"0","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"},"477":{"id":477,"name":"interpreter","label":"Interpreters","description":"","type":"post_type","storage":"meta","object":"","alias":"","fields":{"interpreter_name":{"id":504,"name":"interpreter_name","label":"Interpreter's Name","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","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":""},"city":{"id":480,"name":"city","label":"City","description":"","help":"","class":"","type":"text","weight":1,"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":"2","unique":"0","text_repeatable":"0","text_placeholder":""},"county":{"id":487,"name":"county","label":"County","description":"","help":"","class":"","type":"text","weight":2,"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":"2","unique":"0","text_repeatable":"0","text_placeholder":""},"int_state":{"id":488,"name":"int_state","label":"State","description":"","help":"","class":"","type":"pick","weight":3,"pick_object":"us_state","pick_val":"","sister_id":"","required":"1","pick_format_type":"single","pick_format_single":"dropdown","pick_format_multi":"checkbox","pick_allow_add_new":"1","pick_taggable":"0","pick_show_icon":"1","pick_show_edit_link":"1","pick_show_view_link":"1","pick_limit":"0","pick_user_role":[],"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","pick_select_text":"","pick_table_id":"","pick_table_index":"","pick_display":"","pick_where":"","pick_orderby":"","pick_groupby":""},"zip":{"id":489,"name":"zip","label":"Zip","description":"","help":"","class":"","type":"text","weight":4,"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":"2","unique":"0","text_repeatable":"0","text_placeholder":""},"phone":{"id":498,"name":"phone","label":"Phone","description":"","help":"","class":"","type":"text","weight":5,"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":"2","unique":"0","text_repeatable":"0","text_placeholder":""}},"show_in_menu":"1","label_singular":"Interpreter","public":"1","show_ui":"1","supports_title":"1","supports_editor":"1","publicly_queryable":"1","exclude_from_search":"0","capability_type":"post","capability_type_custom":"interpreter","capability_type_extra":"1","has_archive":"1","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":"1","supports_page_attributes":"0","supports_post_formats":"0","built_in_taxonomies_amp_validation_error":"0","built_in_taxonomies_category":"0","built_in_taxonomies_events_categories":"0","built_in_taxonomies_events_feeds":"0","built_in_taxonomies_events_tags":"0","built_in_taxonomies_fl-builder-template-category":"0","built_in_taxonomies_fl-builder-template-type":"0","built_in_taxonomies_link_category":"0","built_in_taxonomies_post_tag":"0","show_in_nav_menus":"1","show_in_admin_bar":"1","pfat_enable":"1","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","built_in_taxonomies_certification_type":"1","pfat_single":"Interpreters List","has_archive_slug":"int"}}}

Workaround or Alternate Solution Until Bug is Addressed

Related Issues and/or PRs

issue-label-bot[bot] commented 5 years ago

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

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

verityweb commented 5 years ago

PS. I was able to duplicate this same problem with Custom Post Type UI & Advanced Custom Fields on an identical website so there must be something else causing it. On that site, I was able to fix it by using a custom WYSIWYG editor and displaying the content from it instead of the default WordPress post_content. I haven't tried the same with Pods yet.

verityweb commented 5 years ago

I confirmed that using a custom WYSIWYG field solved the problem: https://veritywebsvs.com/odhh/intepreters4/