• Resolved AnimeSubways

    (@animesubways)


    Hi there,

    so I have a custom taxonomy called “genetics” where I added 3 values called “A, B and C” to show for posts. In Pods I added a Relationship Fields with that “genetics taxonomy” as Radio Buttons because only one should be choosable.

    In Elementor post template I use a divider field and for text I choose the custom field “genetics” to show the specific value of the genetics relationship field from the post.

    But now if I call the site following error is shown on the post page:

    Warning: preg_match() expects parameter 2 to be string, array given in 
    /.../public_html/wp-includes/class-wp-block-parser.php on line 417
    
    Warning: strlen() expects parameter 1 to be string, array given in 
    /.../public_html/wp-includes/class-wp-block-parser.php on line 489


    Its not working for any Single Select nor Multi Select fields at all.

    One more problem is:
    If only one value is missing/not chosen in a post of a relation field, its not populated in the custom field dropdown for Elementor, therefore I have to add the field name manually to the “custom key” field input…

    • This topic was modified 2 years, 7 months ago by AnimeSubways.
    • This topic was modified 2 years, 7 months ago by AnimeSubways.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter AnimeSubways

    (@animesubways)

    Any updates / fixes on this?

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @animesubways

    You’ll have to contact Elementor for this issue as they have created the Pods integration. We are unable to modify this integration as it is in their core code (paid version).

    Cheers, Jory

    Thread Starter AnimeSubways

    (@animesubways)

    Hi there,

    so I talked to the Elementor Support.

    The told me that the default data type for a relationship is an array which the dynamic tag can’t currently accept. Maybe in a future update. As workaround they told me that you possibly could extend the relationship field in pods to make the output a string rather than an array to get this to work.

    Are you down for that to implement this?

    Plugin Contributor Scott Kingsley Clark

    (@sc0ttkclark)

    For single select —

    Does Elementor have the option to choose to enter a custom field manually? If so, try genetics.name to get just the name value as a string.

    For multiple select —

    There’s not a great workaround currently but the long-term goal is for the Page Builder toolkit Add-On from Pods Pro by SKCDEV to have it’s own Elementor / Elementor Pro integration at some point in the next year which could address these kinds of things.

    Thread Starter AnimeSubways

    (@animesubways)

    Hey Scott,

    you’re a genius! Yes, you can add a custom field and it’s working like charm.
    Currently I am happy with just the single select but it could be possible that I also need it for multiple select in the future.

    I am looking forward to that Toolkit.

    Thanks!

    • This reply was modified 2 years, 7 months ago by AnimeSubways.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom Taxonomy with Relationship Field setup as Radio Button causes error’ is closed to new replies.