• Resolved cathiad

    (@cathiad)


    Hi,

    I’m trying to build a AE template using pods fields. They are all working fine except the bidirectional relationships fields and media wich give “Array” as a response.

    I have 3 data sources : Places, Locations, Regions
    All 3 have related fields and the post fields shows up fine, even the auto completion ones.

    Front end I get the following warnings and I don’t know if the problem is Pods are if AE is unable to deal with that kind of datas :

    Warning: strpos() expects parameter 1 to be string, array given in /htdocs/xxxxx.com/wp-includes/shortcodes.php on line 180

    Warning: preg_match_all() expects parameter 2 to be string, array given in /htdocs/xxxxx.com/wp-includes/shortcodes.php on line 189

    Warning: array_intersect(): Expected parameter 2 to be an array, null given in /htdocs/xxxxx.com/wp-includes/shortcodes.php on line 190

    Do I need to edit the shortcode.php file?

    The “AE Pro custom fields” only ask for the field name wich works perfectly with all the other kind of pods fields, and I don’t have any others options.

    I don’t know if I’m clear enough, english is not my maternal tongue.

    Can you help me please?

    Thank you in advance for your response

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hello @cathiad,

    I’d advice you to go to the support from the AE Pro plugin.
    It could be that their plugin doesn’t support Pods yet.

    Another option is to add the filter below and see if that helps. This deactivates Pods metadata handling and might fix incompatibility issues with the AE plugin.
    add_filter( 'pods_meta_handler_get', '__return_false' );

    Cheers, Jory

    Thread Starter cathiad

    (@cathiad)

    Thank you @keraweb
    Where do I have to put this code?
    I already talked to AE support but I think they don’t support Pods in its fullness, so bad.
    Cheers

    Plugin Author Jory Hogeveen

    (@keraweb)

    This code would go in your theme’s functions.php (make sure to create a child theme!).
    Let me know if this helps!
    Cheers, Jory

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Array from AE Pro template + Pods relationships fields’ is closed to new replies.