Forum Replies Created
-
AuthorPosts
-
Dragan Marian
ParticipantHI
Thank you. It works great. I managed to render the my text field at the end of the posts using a settings page.
$step1 = rwmb_meta( wysiwyg_6ij16pfr8wx, ['object_type' => 'setting'], 'optname' ); echo $step1;However I have trouble displaying my 'Single Image' custom field.
I tried
$step2 = rwmb_meta( single_image_wzsxrnm25hl, ['object_type' => 'setting'], 'optname' ); echo $step2;And what it renders is "array" ....
I have however managed to render my 'single image' custom field when that field is attached to a normal post via:
$large = rwmb_meta('single_image_wzsxrnm25hl', array('size' => 'large')); echo '<img src="' . $large['url'] . '" />';but I cannot get it to work when the 'single image' custom field is attached to the 'settings page'
Thank YOU
June 27, 2021 at 1:21 PM in reply to: โ WYSWIYG field - Render Contact Form 7 Shortcode on Front End #29147Dragan Marian
ParticipantThank You ๐
Dragan Marian
ParticipantThe administrator is the one doing this changes so I'll have to check the profile he's trying to edit, not the current user. Anyway, the example was pretty straight forward. Thank you!
Dragan Marian
ParticipantWhile that works, when I am on the user profile, I would like to reflect that behavior here as well.
So, given that I can only add stores to administrators, I would like to only show the Relationship Metabox only for those particular roles.
Is there a way to achieve that?Dragan Marian
ParticipantThank you! That works!
February 21, 2021 at 1:30 PM in reply to: โ One to Many relationship working only with builder #24512Dragan Marian
ParticipantCan we hook on a builder created relationship and add that to the admin columns via code?
If not, that would be a great feat to have.February 15, 2021 at 3:13 AM in reply to: โ One to Many relationship working only with builder #24451Dragan Marian
ParticipantI have found out what the problem is.
The PHP code generator added the 'max_clone' value as string, when the accepted value is an integer.
I have changed
'max_clone' => '1',
to
'max_clone' => 1,
And the Add More button disappears.So, this is a bug on the generator side, because it is not printing 1 value, without single quotes, or on the MB Relationship side, because it is not accepting '1' value as number;
Still, I would like to know how to add a Builder created Relationship value to the Admin Columns.
-
AuthorPosts