v4ds
Forum Replies Created
-
Unfortunately I couldn’t find the attribute neither in the output of
var_dump( get_post($post_ID) );nor invar_dump( get_post_meta($post_ID) );.I also tried a custom meta field that is linked with the block attribute (https://wholesomecode.ltd/guides/post-meta-fields-store-attributes-wordpress-gutenberg/), but then it is the same for every embed block.
For the moment I will handle it via ACF and a global placeholder. Thank you for your ideas nonetheless.
Hello,
thanks for your answers, I am happy about any hint…
@bcworkz Ok, that sounds interesting. I think I need those in the frontend, but there I can’t see the data comments. I was hoping for a solution without parsing all blocks, but maybe there is no other way currently without modifying the whole core/embed block…
@joyously Yes, the third parameter has some attributes, but there seems to be saved the width and height of the iframe only:
var_dump($attr);gets me:array(2) { ["width"]=> int(500) ["height"]=> float(750) }If it is possible to somewhat “inject” the previewImage data into the $attr array it would be great.
- This reply was modified 5 years, 2 months ago by v4ds.
Yes, it’s Events Manager Version 5.9.5 and Events Manager Pro Version 2.6.4.2
But after you mentioned this, I discovered a hook for a CRM sync. I think that is making the trouble. Thanks for hinting me at this.
Super, danke, das war’s! 🙂