- This topic has 10 replies, 2 voices, and was last updated 2 months, 4 weeks ago by .
-
Topic
-
Hi,
I am a user of Oxygen Pagebuilder, where I can add dynamic content (e.g. PHP-functions).
In addition, I am using “MB Custom Table” where a “Custom Posttype” is stored.Now I am using the function acf_value($mb_field) to output the content in a text element (functions are stored in a Code Block/ PHP). This works as intended.
<?php function acf_value($mb_field) { echo rwmb_meta($mb_field, ['storage_type' => 'custom_table', 'table' => $wp_square] ); } function acf_picture($mb_field) { $output_array = rwmb_meta($mb_field, ['storage_type' => 'custom_table', 'table' => $wp_square] ); echo rwmb_meta( $output_array, array( 'size' => 'thumbnail' ) ); } ?>
Now I am trying the same with an image element (using a “single image”, I see the single-ID of the image stored in the relevant DB-field- so “custom table” is working).
I need to get the image URL based on a PHP function.
This is done by using the dynamic data: [oxygen data=’phpfunction’ function=’acf_picture’ arguments=’sq_single_image_field’] which calls the function in the code block.But my trial with acf_picture($mb_field) is not successfull.
What I am doing wrong? How to get the (https-) URL of a single image (with the original size)?BTW: Is there a compatibility check done with Oxygen Pagebuilder – you have addons on different other page builders….?
- You must be logged in to reply to this topic.