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

Posts of a pods cpt are not filtered by current language #7010

Open piernext opened 1 year ago

piernext commented 1 year ago

Description

I have three custom post types (machines, machine type, products) created with pods in a multilanguage website (polylang with three languages, multisite environment).

The ‘machines’ CPT is linked to the other two with bidirectional relationships and all CPTs are set as translatable and translated, rest api active and polylang’s ‘custom meta’ synchronisation is not enabled.

The problem is that posts are not filtered by language:

  1. When I edit any post of the three mentioned, the relationship fields lists all related post in all the three languages, which is problematic.

  2. When I add a ‘pods item list’ gutenberg block, it outputs posts in all the three languages. This happens when using no template, but also with pods templates. I’ve added a bit of code from the docs ( https://docs.pods.io/plugins/polylang/#Translate_Pods_Templates_pre_Pods_28 ) to activate translations of the templates.

Another odd thing: when outputting posts through pods Gutenberg block or even with find() the items are not language filtered, so each one is present in all the three languages. But using Gutenberg’s loop block or wp_query posts are diplayed correctly in the right language.

Thanks. everything is up to date (Polylang pro Version 3.3.1, network active pods Version 2.9.11.1 and WordPress Version 6.0.1). The website where the issue appears in currently not publicly reachable online.

Bug report opened as per suggestion here: https://wordpress.org/support/topic/posts-of-a-pods-cpt-are-not-filtered-by-current-language/

Version

2.9.11.1

Testing Instructions

No response

Screenshots / Screencast

Schermata 2023-02-13 alle 13 17 02

Possible Workaround

No response

Site Health Information

`
### wp-core ###

version: 6.1.1
site_language: en_GB
user_language: en_GB
timezone: +00:00
permalink: /%postname%/
https_status: true
multisite: true
user_registration: false
blog_public: 1
default_comment_status: closed
environment_type: production
site_count: 30
network_count: 1
user_count: 12
dotorg_communication: true

### wp-dropins (1) ###

sunrise.php: true

### wp-active-theme ###

name: [...]
version: 1.0.0
author: Nextindustry
author_website: [...]
parent_theme: Astra (astra)
theme_features: core-block-patterns, astra_hooks, widgets-block-editor, align-wide, automatic-feed-links, title-tag, post-thumbnails, starter-content, html5, post-formats, custom-logo, customize-selective-refresh-widgets, editor-style, woocommerce, rank-math-breadcrumbs, amp, editor-color-palette, widgets, menus
theme_path: [...]
auto_update: Disabled

### wp-parent-theme ###

name: Astra (astra)
version: 4.0.2
author: Brainstorm Force
author_website: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme
theme_path: /var/www/clients/client0/web1/web/wp-content/themes/astra
auto_update: Disabled

### wp-themes-inactive (9) ###

Your Website: version: 1.0.0, author: Bill Erickson, Auto-updates disabled
Aspire Theme: version: 1.2, author: Appfinite, Auto-updates disabled
Dante Child Theme: version: 1.0, author: Swift Ideas, Auto-updates disabled
Dante: version: 3.5.25, author: Swift Ideas, Auto-updates disabled
Genesis: version: 2.9.1, author: StudioPress, Auto-updates disabled
Twenty Twenty: version: 2.1, author: the WordPress team, Auto-updates disabled
Twenty Twenty-One: version: 1.7, author: the WordPress team, Auto-updates disabled
Twenty Twenty-Three: version: 1.0, author: the WordPress team, Auto-updates disabled
Twenty Twenty-Two: version: 1.3, author: the WordPress team, Auto-updates disabled

### wp-mu-plugins (1) ###

Health Check Troubleshooting Mode: author: (undefined), version: 1.7.2

### wp-plugins-active (31) ###

Astra Pro: version: 4.0.1, author: Brainstorm Force, Auto-updates disabled
Blocks Animation: CSS Animations for Gutenberg Blocks: version: 2.2.2, author: ThemeIsle, Auto-updates enabled
Breadcrumb NavXT: version: 7.2.0, author: John Havlik, Auto-updates enabled
Contact Form 7: version: 5.7.3, author: Takayuki Miyoshi, Auto-updates enabled
Contact Form CFDB7: version: 1.2.6.5, author: Arshid, Auto-updates enabled
Custom Fonts: version: 1.3.7, author: Brainstorm Force, Auto-updates enabled
Custom Post Type Permalinks: version: 3.4.5, author: Toro_Unit, Auto-updates enabled
Flamingo: version: 2.3, author: Takayuki Miyoshi, Auto-updates enabled
Gravity Forms: version: 2.5.14.3, author: Gravity Forms, Please register your copy of Gravity Forms to enable automatic updates.
Gutenslider — The last WordPress slider you will ever need.: version: 5.10.1, author: eedee, Auto-updates disabled
Health Check & Troubleshooting: version: 1.5.1, author: The WordPress.org community, Auto-updates enabled
HurryTimer: version: 2.7.3, author: Nabil Lemsieh, Auto-updates enabled
Italy Cookie Choices (for EU Cookie Law & Cookie Notice): version: 2.5.3, author: Enea Overclokk, Andrea Pernici, Andrea Cardinale, Auto-updates disabled
Mapplic: version: 5.0.2, author: sekler, Auto-updates disabled
Menu Icons: version: 0.13.2, author: ThemeIsle, Auto-updates enabled
Multiple Post Passwords: version: 1.1.1, author: Andreas Münch, Auto-updates enabled
Multisite Enhancements: version: 1.6.1, author: Frank Bültge, Auto-updates enabled
Pods - Custom Content Types and Fields: version: 2.9.11.1, author: Pods Framework Team, Auto-updates disabled
Polylang Pro: version: 3.3.1, author: WP SYNTEX, Auto-updates disabled
Popups - WordPress Popup: version: 1.9.3.8, author: timersys, Auto-updates disabled
PublishPress Future: version: 2.8.3, author: PublishPress, Auto-updates enabled
Really Simple SSL: version: 6.2.0, author: Really Simple Plugins, Auto-updates enabled
Regenerate Thumbnails: version: 3.1.5, author: Alex Mills (Viper007Bond), Auto-updates disabled
Search & Replace: version: 3.2.1, author: Inpsyde GmbH, Auto-updates disabled
Spectra: version: 2.3.5, author: Brainstorm Force, Auto-updates enabled
SSH SFTP Updater Support: version: 0.8.5, author: TerraFrost, David Anderson + Team Updraft, Auto-updates disabled
SVG Support: version: 2.5.5, author: Benbodhi, Auto-updates disabled
User Role Editor: version: 4.63.2, author: Vladimir Garagulya, Auto-updates disabled
Videopack: version: 4.8.6, author: Kyle Gilman, Auto-updates disabled
Visualizer: Tables and Charts for WordPress: version: 3.9.5, author: Themeisle, Auto-updates enabled
WordPress MU Domain Mapping: version: 0.5.5.1, author: Donncha O Caoimh, Auto-updates disabled

### wp-plugins-inactive (32) ###

Advanced Custom Fields: version: 6.0.7, author: WP Engine, Auto-updates enabled
Advanced Custom Fields PRO: version: 5.8.0, author: Elliot Condon, Auto-updates disabled
All In One WP Security: version: 5.1.4, author: All In One WP Security & Firewall Team, Auto-updates enabled
Astra Widgets: version: 1.2.12, author: Brainstorm Force, Auto-updates disabled
Autoptimize: version: 3.1.5, author: Frank Goossens (futtta), Auto-updates enabled
Custom Adobe Fonts (Typekit): version: 1.0.18, author: Brainstorm Force, Auto-updates enabled
Custom Field Bulk Editor: version: 1.9.1, author: SparkWeb Interactive, Inc., Auto-updates enabled
Download Plugins and Themes from Dashboard: version: 1.8.1, author: WPFactory, Auto-updates enabled
Easy FancyBox: version: 1.9.5, author: RavanH, Auto-updates enabled
FancyBox for WordPress: version: 3.3.3, author: Colorlib, Auto-updates enabled
FV Player: author: (undefined), version: 7.5.31.7212, Auto-updates disabled
Gravity Forms: version: 2.3.4.3, author: rocketgenius, Please register your copy of Gravity Forms to enable automatic updates.
Gravity Forms Event Tracking: version: 2.4.14, author: Ronald Huereca, Auto-updates enabled
Gravity Forms Iframe Add-on: version: 2.0.1, author: Cedaro, Auto-updates disabled
Mailster - Email Newsletter Plugin for WordPress: version: 2.4.9, author: EverPress, Auto-updates disabled
Mailster Gravity Forms: version: 2.0, author: EverPress, Auto-updates disabled
Mailster reCaptcha: version: 1.6, author: EverPress, Auto-updates disabled
Matomo Analytics - Ethical Stats. Powerful Insights.: version: 4.13.3, author: Matomo, Auto-updates enabled
MyMail - Email Newsletter Plugin for WordPress: version: 2.1.4, author: revaxarts.com, Auto-updates disabled
MyMail Legacy Code Helper: author: (undefined), version: (undefined), Auto-updates disabled
MyMail reCaptcha™ for Forms: version: 0.7, author: revaxarts.com, Auto-updates disabled
Password Protected: version: 2.6.0, author: WPExperts, Auto-updates enabled
Polylang: version: 3.3.1, author: WP SYNTEX, Auto-updates disabled
Redirection: version: 5.3.9, author: John Godley, Auto-updates disabled
Safe SVG: version: 2.0.3, author: 10up, Auto-updates disabled
ShortPixel Image Optimizer: version: 5.1.6, author: ShortPixel - Convert WebP/AVIF & Optimize Images, Auto-updates disabled
Simple Website Redirect: version: 1.2.8, author: Micah Wood, Auto-updates enabled
Slider Revolution: version: 6.1.2, author: ThemePunch, Auto-updates disabled
WP Bodymovin: version: 2.1.0, author: ioDSGN, Auto-updates disabled
WP Mail SMTP: version: 3.7.0, author: WPForms, Auto-updates enabled
WP Reel: version: 1.0, author: Alexey Tikhonov, Auto-updates disabled
Yoast SEO Premium: version: 15.9.2, author: Team Yoast, 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: 300M
upload_max_filesize: 300M
max_effective_size: 300 MB
max_file_uploads: 20
gd_version: 2.3.0
gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
ghostscript_version: 9.50

### wp-server ###

server_architecture: Linux 5.4.0-121-generic x86_64
httpd_software: nginx/1.18.0
php_version: 7.4.30 64bit
php_sapi: fpm-fcgi
max_input_variables: 1000
time_limit: 30
memory_limit: 128M
admin_memory_limit: 256M
max_input_time: 60
upload_max_filesize: 300M
php_post_max_size: 300M
curl_version: 7.68.0 OpenSSL/1.1.1f
suhosin: false
imagick_availability: false
pretty_permalinks: true
htaccess_extra_rules: true

### wp-database ###

extension: mysqli
server_version: 10.3.37-MariaDB-0ubuntu0.20.04.1
client_version: mysqlnd 7.4.30
max_allowed_packet: 16777216
max_connections: 151

### wp-constants ###

WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /var/www/clients/client0/web1/web/wp-content
WP_PLUGIN_DIR: /var/www/clients/client0/web1/web/wp-content/plugins
WP_MEMORY_LIMIT: 64M
WP_MAX_MEMORY_LIMIT: 256M
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_ENVIRONMENT_TYPE: 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: nginx/1.18.0
pods-user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36
pods-session-save-path: /var/www/clients/client0/web1/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: No
pods-object-cache-redis: No
pods-memory-current-usage: 38.605M
pods-memory-current-usage-real: 18.000M
pods-network-wide: Yes
pods-install-location: /wp-content/plugins/pods/
pods-developer: No
pods-tableless-mode: No
pods-relationship-table-enabled: Yes
pods-light-mode: No
pods-strict: No
pods-allow-deprecated: Yes
pods-api-cache: Yes
pods-shortcode-allow-evaluate-tags: No
pods-sessions: Disable sessions
pods-can-use-sessions: Yes
pods-relationship-table-status: 2,724

### pll_options ###

browser: 0: Detect browser language deactivated
rewrite: 1: Remove /language/ in pretty permalinks
hide_default: 0: Display URL language information for default language
force_lang: 1: The language is set from the directory name in pretty permalinks
redirect_lang: 1: The front page URL contains the language code instead of the page name or page ID
media_support: 0: The media are not translated
sync: 0: Synchronisation disabled
post_types: post, page, wp_block, application, machine, packstyle, wp_navigation, wp_template_part, _pods_template
taxonomies: category, post_tag, machine_type
version: 3.3.1
default_lang: en
primary: en => 2 | it => 114 | de => 399
secondary_menu: en => 0 | it => 0 | de => 0
mobile_menu: en => 2 | it => 114 | de => 399
loggedin_account_menu: en => 0 | it => 0 | de => 0
footer_menu: en => 486 | it => 485 | de => 487
previous_version: 3.2.5

### pll_language_en ###

term_id: 54
name: English
slug: en
term_group: 0
term_taxonomy_id: 54
count: 304
tl_term_id: 55
tl_term_taxonomy_id: 55
tl_count: 72
locale: en_GB
is_rtl: 0
w3c: en-GB
facebook: en_GB
home_url: [...]
search_url: [...]
mo_id: 2177
page_on_front: 4
page_for_posts: 0
flag_code: gb
flag_url: [...]
custom_flag_url: 0
fallbacks: 0

### pll_language_it ###

term_id: 108
name: Italiano
slug: it
term_group: 1
term_taxonomy_id: 108
count: 301
tl_term_id: 109
tl_term_taxonomy_id: 109
tl_count: 61
locale: it_IT
is_rtl: 0
w3c: it-IT
facebook: it_IT
home_url: [...]
search_url: [...]
mo_id: 2178
page_on_front: 2437
page_for_posts: 0
flag_code: it
flag_url: [...]
custom_flag_url: 0
fallbacks: 0

### pll_language_de ###

term_id: 396
name: Deutsch
slug: de
term_group: 2
term_taxonomy_id: 396
count: 255
tl_term_id: 397
tl_term_taxonomy_id: 397
tl_count: 14
locale: de_DE
is_rtl: 0
w3c: de-DE
facebook: de_DE
home_url: [...]
search_url: [...]
mo_id: 2984
page_on_front: 2985
page_for_posts: 0
flag_code: de
flag_url: [...]
custom_flag_url: 0
fallbacks: 0

### pll_warnings ###

wpml: 
    plugins/ultimate-addons-for-gutenberg: /var/www/clients/client0/web1/web/wp-content/plugins/ultimate-addons-for-gutenberg/wpml-config.xml
    themes/astra: /var/www/clients/client0/web1/web/wp-content/themes/astra/wpml-config.xml

`

Pods Package

{
    "@meta": {
        "version": "2.9.11.1",
        "build": 1676291497
    },
    "settings": {
        "types_only": "0",
        "watch_changed_fields": "1",
        "metadata_integration": "1",
        "metadata_override_get": "1",
        "session_auto_start": "0",
        "wisdom_opt_out": "1"
    },
    "pods": [
        {
            "name": "application",
            "id": 416,
            "label": "Applications",
            "description": "",
            "label_singular": "Application",
            "public": "1",
            "show_ui": "1",
            "supports_title": "1",
            "supports_editor": "1",
            "type": "post_type",
            "storage": "meta",
            "publicly_queryable": "1",
            "exclude_from_search": "0",
            "capability_type": "page",
            "capability_type_custom": "application",
            "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": "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_clients-category": "0",
            "built_in_taxonomies_faqs-category": "0",
            "built_in_taxonomies_gallery-category": "0",
            "built_in_taxonomies_jobs-category": "0",
            "built_in_taxonomies_link_category": "0",
            "built_in_taxonomies_portfolio-category": "0",
            "built_in_taxonomies_post_tag": "0",
            "built_in_taxonomies_team-category": "0",
            "built_in_taxonomies_testimonials-category": "0",
            "show_in_menu": "1",
            "menu_position": "0",
            "show_in_nav_menus": "1",
            "show_in_admin_bar": "1",
            "pfat_enable": "0",
            "pfat_single": "Application template",
            "pfat_append_single": "append",
            "pfat_append_archive": "append",
            "menu_icon": "dashicons-art",
            "built_in_taxonomies_wpsl_store_category": "0",
            "built_in_taxonomies_machine_type": "0",
            "pll_ajax_backend": "1",
            "built_in_taxonomies_language": "0",
            "built_in_taxonomies_post_translations": "0",
            "built_in_taxonomies_term_language": "0",
            "built_in_taxonomies_term_translations": "0",
            "pfat_filter_single": "the_content",
            "pfat_filter_archive": "the_content",
            "_migrated_28": "1",
            "revisions_to_keep_limit": "0",
            "delete_with_user": "1",
            "rest_enable": "1",
            "pfat_filter_archive_custom": "the_content",
            "pfat_run_outside_loop": "0",
            "groups": [
                {
                    "name": "more_fields",
                    "id": 9499,
                    "label": "More Fields",
                    "description": "",
                    "weight": 0,
                    "fields": [
                        {
                            "name": "packaging_machine",
                            "id": 417,
                            "label": "Packaging Machine",
                            "description": "Machinery dedicated to this area",
                            "weight": 0,
                            "type": "pick",
                            "pick_object": "post_type",
                            "pick_val": "machine",
                            "required": "0",
                            "pick_format_type": "multi",
                            "pick_format_single": "dropdown",
                            "pick_format_multi": "checkbox",
                            "pick_taggable": "0",
                            "pick_limit": "0",
                            "pick_allow_html": "0",
                            "pick_user_role": "Administrator",
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "unique": "0",
                            "sister_id": "423",
                            "pick_post_status": "publish",
                            "pick_table": "-- Select One --",
                            "pick_display_format_multi": "default",
                            "pick_display_format_separator": ", ",
                            "pick_allow_add_new": "0",
                            "pick_show_icon": "1",
                            "pick_show_edit_link": "1",
                            "pick_show_view_link": "1",
                            "pick_post_author": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "1",
                            "rest_write": "1",
                            "rest_read": "1"
                        },
                        {
                            "name": "pack_styles",
                            "id": 427,
                            "label": "Pack Styles",
                            "description": "Related pack styles",
                            "weight": 1,
                            "type": "pick",
                            "pick_object": "post_type",
                            "pick_val": "packstyle",
                            "sister_id": "426",
                            "required": "0",
                            "pick_format_type": "multi",
                            "pick_format_single": "dropdown",
                            "pick_format_multi": "checkbox",
                            "pick_taggable": "0",
                            "pick_limit": "0",
                            "pick_allow_html": "0",
                            "pick_user_role": "Administrator",
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "unique": "0",
                            "pick_post_status": "publish",
                            "pick_table": "-- Select One --",
                            "pick_display_format_multi": "default",
                            "pick_display_format_separator": ", ",
                            "pick_allow_add_new": "0",
                            "pick_show_icon": "1",
                            "pick_show_edit_link": "1",
                            "pick_show_view_link": "1",
                            "pick_post_author": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "1",
                            "rest_read": "1",
                            "rest_write": "1"
                        },
                        {
                            "name": "image",
                            "id": 584,
                            "label": "Image",
                            "description": "",
                            "weight": 2,
                            "type": "file",
                            "required": "0",
                            "file_format_type": "single",
                            "file_uploader": "attachment",
                            "file_attachment_tab": "upload",
                            "file_edit_title": "1",
                            "file_linked": "0",
                            "file_limit": "0",
                            "file_restrict_filesize": "10MB",
                            "file_type": "images",
                            "file_add_button": "Add File",
                            "file_modal_title": "Attach a file",
                            "file_modal_add_button": "Add File",
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "unique": "0"
                        }
                    ]
                }
            ]
        },
        {
            "name": "machine_type",
            "id": 1363,
            "label": "Machine types",
            "description": "",
            "label_singular": "Machine type",
            "public": "1",
            "show_ui": "1",
            "type": "taxonomy",
            "storage": "meta",
            "hierarchical": "0",
            "rewrite": "1",
            "rewrite_with_front": "1",
            "rewrite_hierarchical": "1",
            "query_var": "0",
            "sort": "0",
            "built_in_post_types_application": "0",
            "built_in_post_types_clients": "0",
            "built_in_post_types_faqs": "0",
            "built_in_post_types_galleries": "0",
            "built_in_post_types_jobs": "0",
            "built_in_post_types_landingpage": "0",
            "built_in_post_types_machine": "0",
            "built_in_post_types_newsletter": "0",
            "built_in_post_types_packstyle": "0",
            "built_in_post_types_page": "0",
            "built_in_post_types_portfolio": "0",
            "built_in_post_types_post": "0",
            "built_in_post_types_team": "0",
            "built_in_post_types_testimonials": "0",
            "built_in_post_types_wpsl_stores": "0",
            "built_in_post_types_attachment": "0",
            "menu_location": "default",
            "menu_position": "0",
            "show_in_nav_menus": "1",
            "show_tagcloud": "1",
            "show_admin_column": "0",
            "pfat_enable": "0",
            "pfat_append_archive": "append",
            "pfat_single": "Packaging machinery template",
            "_migrated_28": "1",
            "groups": [
                {
                    "name": "more_fields",
                    "id": 9601,
                    "label": "More Fields",
                    "description": "",
                    "weight": 0,
                    "fields": [
                        {
                            "name": "machine",
                            "id": 1364,
                            "label": "Machine",
                            "description": "",
                            "weight": 0,
                            "type": "pick",
                            "pick_object": "post_type",
                            "pick_val": "machine",
                            "required": "0",
                            "pick_format_type": "single",
                            "pick_format_single": "dropdown",
                            "pick_format_multi": "checkbox",
                            "pick_taggable": "0",
                            "pick_limit": "0",
                            "pick_allow_html": "0",
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ]
                        }
                    ]
                }
            ]
        },
        {
            "name": "machine",
            "id": 414,
            "label": "Machines",
            "description": "",
            "label_singular": "Machine",
            "public": "1",
            "show_ui": "1",
            "supports_title": "1",
            "supports_editor": "1",
            "type": "post_type",
            "storage": "meta",
            "publicly_queryable": "1",
            "exclude_from_search": "0",
            "capability_type": "post",
            "capability_type_custom": "machine",
            "capability_type_extra": "1",
            "has_archive": "0",
            "hierarchical": "0",
            "rewrite": "1",
            "rewrite_with_front": "0",
            "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": "1",
            "supports_post_formats": "0",
            "built_in_taxonomies_category": "1",
            "built_in_taxonomies_clients-category": "0",
            "built_in_taxonomies_faqs-category": "0",
            "built_in_taxonomies_gallery-category": "0",
            "built_in_taxonomies_jobs-category": "0",
            "built_in_taxonomies_link_category": "0",
            "built_in_taxonomies_portfolio-category": "0",
            "built_in_taxonomies_post_tag": "0",
            "built_in_taxonomies_team-category": "0",
            "built_in_taxonomies_testimonials-category": "0",
            "show_in_menu": "1",
            "show_in_nav_menus": "1",
            "show_in_admin_bar": "1",
            "pfat_enable": "0",
            "pfat_single": "Landing Page Template",
            "pfat_append_single": "replace",
            "pfat_append_archive": "append",
            "menu_icon": "dashicons-admin-generic",
            "built_in_taxonomies_machine_type": "0",
            "pll_ajax_backend": "1",
            "built_in_taxonomies_language": "0",
            "built_in_taxonomies_post_translations": "0",
            "built_in_taxonomies_term_language": "0",
            "built_in_taxonomies_term_translations": "0",
            "pfat_filter_single": "the_content",
            "pfat_filter_archive": "the_content",
            "rewrite_custom_slug": "packaging-machinery",
            "built_in_taxonomies_flamingo_contact_tag": "0",
            "built_in_taxonomies_flamingo_inbound_channel": "0",
            "built_in_taxonomies_yst_prominent_words": "0",
            "pfat_run_outside_loop": "0",
            "rest_enable": "1",
            "read_all": "0",
            "write_all": "0",
            "_migrated_28": "1",
            "built_in_taxonomies_wp_template_part_area": "0",
            "built_in_taxonomies_wp_theme": "0",
            "_postexpiratornonce": "a307182c9b",
            "_wp_http_referer": "\/[...]\/wp-admin\/admin.php?page=pods&action=edit&id=414",
            "expirationdate_year": "2022",
            "expirationdate_month": "07",
            "expirationdate_day": "13",
            "expirationdate_hour": "15",
            "expirationdate_minute": "05",
            "expirationdate_formcheck": "true",
            "expirationdate_expiretype": "draft",
            "required": "0",
            "repeatable": "0",
            "groups": [
                {
                    "name": "more_fields",
                    "id": 9483,
                    "label": "More Fields",
                    "description": "",
                    "weight": 0,
                    "fields": [
                        {
                            "name": "machine_type",
                            "id": 415,
                            "label": "Machine Type",
                            "description": "Packaging machinery type",
                            "weight": 0,
                            "type": "pick",
                            "pick_object": "custom-simple",
                            "pick_custom": "Horizontal\nVertical\nLines\nWeighers\nDosing Systems",
                            "required": "0",
                            "pick_format_type": "multi",
                            "pick_format_single": "dropdown",
                            "pick_format_multi": "checkbox",
                            "pick_taggable": "0",
                            "pick_limit": "0",
                            "pick_allow_html": "0",
                            "pick_user_role": "Administrator",
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "unique": "0",
                            "pick_post_status": "publish",
                            "pick_allow_add_new": "1",
                            "pick_show_icon": "1",
                            "pick_show_edit_link": "1",
                            "pick_show_view_link": "1",
                            "rest_read": "1",
                            "rest_write": "1",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "sister_id": "-- Select One --",
                            "pick_table": "-- Select One --",
                            "pick_display_format_multi": "default",
                            "pick_display_format_separator": ", ",
                            "pick_post_author": "0"
                        },
                        {
                            "name": "applications",
                            "id": 423,
                            "label": "Applications",
                            "description": "Applications related to this machine",
                            "weight": 1,
                            "type": "pick",
                            "pick_object": "post_type",
                            "pick_val": "application",
                            "sister_id": "417",
                            "required": "0",
                            "pick_format_type": "multi",
                            "pick_format_single": "dropdown",
                            "pick_format_multi": "checkbox",
                            "pick_taggable": "0",
                            "pick_limit": "0",
                            "pick_allow_html": "0",
                            "pick_user_role": "Administrator",
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "unique": "0",
                            "pick_post_status": "publish",
                            "pick_allow_add_new": "0",
                            "pick_show_icon": "1",
                            "pick_show_edit_link": "1",
                            "pick_show_view_link": "1",
                            "pick_table": "-- Select One --",
                            "pick_display_format_multi": "default",
                            "pick_display_format_separator": ", ",
                            "pick_post_author": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "1",
                            "rest_read": "1",
                            "rest_write": "1"
                        },
                        {
                            "name": "pack_style",
                            "id": 428,
                            "label": "Pack Style",
                            "description": "Related pack style",
                            "weight": 2,
                            "type": "pick",
                            "pick_object": "post_type",
                            "pick_val": "packstyle",
                            "sister_id": "425",
                            "required": "0",
                            "pick_format_type": "multi",
                            "pick_format_single": "dropdown",
                            "pick_format_multi": "checkbox",
                            "pick_taggable": "0",
                            "pick_limit": "0",
                            "pick_allow_html": "0",
                            "pick_user_role": "Administrator",
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "unique": "0",
                            "pick_post_status": "publish",
                            "pick_allow_add_new": "0",
                            "pick_show_icon": "1",
                            "pick_show_edit_link": "1",
                            "pick_show_view_link": "1",
                            "pick_table": "-- Select One --",
                            "pick_display_format_multi": "default",
                            "pick_display_format_separator": ", ",
                            "pick_post_author": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "1",
                            "rest_read": "1",
                            "rest_write": "1"
                        },
                        {
                            "name": "image",
                            "id": 548,
                            "label": "Image",
                            "description": "",
                            "weight": 3,
                            "type": "file",
                            "required": "0",
                            "file_format_type": "single",
                            "file_uploader": "attachment",
                            "file_attachment_tab": "upload",
                            "file_edit_title": "1",
                            "file_linked": "0",
                            "file_limit": "0",
                            "file_restrict_filesize": "10MB",
                            "file_type": "images",
                            "file_add_button": "Add File",
                            "file_modal_title": "Attach a file",
                            "file_modal_add_button": "Add File",
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "unique": "0",
                            "file_show_edit_link": "0",
                            "file_field_template": "rows"
                        },
                        {
                            "name": "intro_text",
                            "id": 9787,
                            "label": "Intro text",
                            "description": "",
                            "weight": 4,
                            "type": "wysiwyg",
                            "sister_id": "-- Select One --",
                            "required": "0",
                            "repeatable": "0",
                            "wysiwyg_editor": "tinymce",
                            "roles_allowed": "administrator",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "1"
                        },
                        {
                            "name": "customers_stories",
                            "id": 10059,
                            "label": "Customers stories",
                            "description": "",
                            "weight": 5,
                            "type": "pick",
                            "pick_object": "post_type",
                            "pick_val": "post",
                            "sister_id": "9806",
                            "pick_table": "-- Select One --",
                            "required": "0",
                            "pick_format_type": "multi",
                            "pick_format_single": "dropdown",
                            "pick_format_multi": "list",
                            "pick_display_format_multi": "default",
                            "pick_display_format_separator": ", ",
                            "pick_allow_add_new": "0",
                            "pick_taggable": "0",
                            "pick_show_icon": "1",
                            "pick_show_edit_link": "1",
                            "pick_show_view_link": "1",
                            "pick_limit": "0",
                            "pick_user_role": "Administrator",
                            "pick_post_status": "publish",
                            "pick_post_author": "0",
                            "repeatable": "0",
                            "repeatable_format": "default",
                            "roles_allowed": "administrator",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "1"
                        }
                    ]
                }
            ]
        },
        {
            "name": "packstyle",
            "id": 424,
            "label": "Pack Styles",
            "description": "",
            "label_singular": "Pack Style",
            "public": "1",
            "show_ui": "1",
            "supports_title": "1",
            "supports_editor": "1",
            "type": "post_type",
            "storage": "meta",
            "publicly_queryable": "1",
            "exclude_from_search": "1",
            "capability_type": "post",
            "capability_type_custom": "packstyle",
            "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": "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_clients-category": "0",
            "built_in_taxonomies_faqs-category": "0",
            "built_in_taxonomies_gallery-category": "0",
            "built_in_taxonomies_jobs-category": "0",
            "built_in_taxonomies_link_category": "0",
            "built_in_taxonomies_portfolio-category": "0",
            "built_in_taxonomies_post_tag": "0",
            "built_in_taxonomies_team-category": "0",
            "built_in_taxonomies_testimonials-category": "0",
            "show_in_menu": "1",
            "menu_position": "0",
            "show_in_nav_menus": "1",
            "show_in_admin_bar": "1",
            "pfat_enable": "0",
            "pfat_single": "Landing Page Template",
            "pfat_append_single": "append",
            "pfat_append_archive": "append",
            "menu_icon": "dashicons-share-alt",
            "built_in_taxonomies_machine_type": "0",
            "pll_ajax_backend": "1",
            "built_in_taxonomies_language": "0",
            "built_in_taxonomies_post_translations": "0",
            "built_in_taxonomies_term_language": "0",
            "built_in_taxonomies_term_translations": "0",
            "built_in_taxonomies_wpsl_store_category": "0",
            "pfat_filter_single": "the_content",
            "pfat_filter_archive": "the_content",
            "_migrated_28": "1",
            "revisions_to_keep_limit": "0",
            "delete_with_user": "1",
            "write_all": "packstyle",
            "rest_enable": "1",
            "groups": [
                {
                    "name": "more_fields",
                    "id": 9503,
                    "label": "More Fields",
                    "description": "",
                    "weight": 0,
                    "fields": [
                        {
                            "name": "machines",
                            "id": 425,
                            "label": "Machines",
                            "description": "Related machinery",
                            "weight": 0,
                            "type": "pick",
                            "pick_object": "post_type",
                            "pick_val": "machine",
                            "required": "0",
                            "pick_format_type": "multi",
                            "pick_format_single": "dropdown",
                            "pick_format_multi": "checkbox",
                            "pick_taggable": "0",
                            "pick_limit": "0",
                            "pick_allow_html": "0",
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "sister_id": "428",
                            "unique": "0",
                            "pick_post_status": "publish"
                        },
                        {
                            "name": "applications",
                            "id": 426,
                            "label": "Applications",
                            "description": "Related applications",
                            "weight": 1,
                            "type": "pick",
                            "pick_object": "post_type",
                            "pick_val": "application",
                            "required": "0",
                            "pick_format_type": "multi",
                            "pick_format_single": "dropdown",
                            "pick_format_multi": "checkbox",
                            "pick_taggable": "0",
                            "pick_limit": "0",
                            "pick_allow_html": "0",
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "sister_id": "427",
                            "unique": "0",
                            "pick_post_status": "publish"
                        }
                    ]
                }
            ]
        },
        {
            "name": "post",
            "id": 9804,
            "label": "Post",
            "description": "",
            "type": "post_type",
            "storage": "meta",
            "object": "post",
            "_migrated_28": "1",
            "required": "0",
            "repeatable": "0",
            "built_in_taxonomies_machine_type": "0",
            "groups": [
                {
                    "name": "more_fields",
                    "id": 9805,
                    "label": "More Fields",
                    "description": "",
                    "weight": 0,
                    "fields": [
                        {
                            "name": "related_machines",
                            "id": 9806,
                            "label": "Related machines",
                            "description": "",
                            "weight": 0,
                            "type": "pick",
                            "pick_object": "post_type",
                            "pick_val": "machine",
                            "sister_id": "10059",
                            "pick_table": "-- Select One --",
                            "required": "0",
                            "repeatable": "0",
                            "pick_format_type": "multi",
                            "pick_format_single": "dropdown",
                            "pick_format_multi": "list",
                            "pick_display_format_multi": "default",
                            "pick_display_format_separator": ", ",
                            "pick_allow_add_new": "0",
                            "pick_taggable": "0",
                            "pick_show_icon": "1",
                            "pick_show_edit_link": "1",
                            "pick_show_view_link": "1",
                            "pick_limit": "0",
                            "pick_user_role": "Administrator",
                            "pick_post_status": "publish",
                            "pick_post_author": "0",
                            "roles_allowed": "administrator",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "1",
                            "repeatable_format": "default"
                        },
                        {
                            "name": "related_applications",
                            "id": 9914,
                            "label": "Related Applications",
                            "description": "",
                            "weight": 1,
                            "type": "pick",
                            "pick_object": "post_type",
                            "pick_val": "application",
                            "sister_id": "-- Select One --",
                            "pick_table": "-- Select One --",
                            "required": "0",
                            "repeatable": "0",
                            "pick_format_type": "multi",
                            "pick_format_single": "dropdown",
                            "pick_format_multi": "list",
                            "pick_display_format_multi": "default",
                            "pick_display_format_separator": ", ",
                            "pick_allow_add_new": "0",
                            "pick_taggable": "0",
                            "pick_show_icon": "1",
                            "pick_show_edit_link": "1",
                            "pick_show_view_link": "1",
                            "pick_limit": "0",
                            "pick_user_role": "Administrator",
                            "pick_post_status": "publish",
                            "pick_post_author": "0",
                            "roles_allowed": "administrator",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "1"
                        }
                    ]
                }
            ]
        }
    ],
    "templates": [
        {
            "name": "Packaging machinery template DE",
            "code": "<li class=\"application-pack clearfix portfolio-item col-sm-3 masonry-item masonry-gallery-item [each applications]{@applications.post_name} [\/each][each pack_style]{@pack_style.post_name} [\/each]{@machine_type}\" >\r\n<figure class=\"animated-overlay overlay-alt\">\r\n<img itemprop=\"image\" src=\"{@image._src.medium}\" width=\"600\" height=\"419\" alt=\"{@post_title}\">\r\n<a href=\"{@permalink}\" class=\"link-to-post\"><\/a><figcaption><div class=\"thumb-info thumb-info-alt\"><i class=\"ss-navigateright\"><\/i><\/div><\/figcaption><\/figure>\r\n<div class=\"portfolio-item-details\">\r\n<div class=\"comments-likes\"><\/div><h3 class=\"portfolio-item-title\" itemprop=\"name headline\"><a href=\"{@permalink}\" class=\"link-to-post\">{@post_title}<\/a><\/h3>\r\n<\/div>\r\n<\/li>",
            "id": 3548,
            "_edit_lock": "1511783325:1",
            "_edit_last": "1",
            "slide_template": "default",
            "pod_reference": {
                "pod": "machine"
            }
        }
    ]
}
JoryHogeveen commented 1 year ago

Hi @piernext

I couldn't reproduce this then and I still cannot reproduce this issue. Do you still encounter this issue? And if so, can you reproduce this on a fresh installation with only Pods and Polylang active?