Support Forum ยป User Profile

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • in reply to: Custom Field available for all posts #29529
    Dragan MarianDragan Marian
    Participant

    HI

    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

    Dragan MarianDragan Marian
    Participant

    Thank You ๐Ÿ™‚

    in reply to: โœ…Filter users in a User-Post Type Relationship #24530
    Dragan MarianDragan Marian
    Participant

    The 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!

    in reply to: โœ…Filter users in a User-Post Type Relationship #24519
    Dragan MarianDragan Marian
    Participant

    While 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?

    in reply to: โœ…Filter users in a User-Post Type Relationship #24515
    Dragan MarianDragan Marian
    Participant

    Thank you! That works!

    in reply to: โœ…One to Many relationship working only with builder #24512
    Dragan MarianDragan Marian
    Participant

    Can 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.

    in reply to: โœ…One to Many relationship working only with builder #24451
    Dragan MarianDragan Marian
    Participant

    I 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.

Viewing 7 posts - 1 through 7 (of 7 total)