Support Forum » User Profile

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Setting Custom Color Palettes via Field Options #23510
    David NewtonDavid Newton
    Participant

    That works perfectly, thank you.

    Is it possible to do the same with the Background field in some way?

    in reply to: Image Size Using Twig / Block Builder #22585
    David NewtonDavid Newton
    Participant

    To be clear, it was working just fine as you described in your most recent response, but then inside of a group, we can't get the same thing to work.

    We've tried quite a few variations on what you wrote above and with adding "clone." in various positions, and nothing has quite worked.

    The only thing that loads anything at all is {{clone.single_image_psweo3wlxf}} but that is only loading the image ID number.

    in reply to: Image Size Using Twig / Block Builder #22584
    David NewtonDavid Newton
    Participant

    That did work, thank you. Is there something different that needs to be done when using groups / cloning? For all the other fields, we're able to get the right results, but with the images it's not working.

    Thanks!

    in reply to: Image Size Using Twig / Block Builder #22562
    David NewtonDavid Newton
    Participant

    I'm still not getting anything back from that.

    The field ID is: single_image_psweo3wlxf

    So, I have the following under Settings -> Render Options -> Code for that field group:

    {% set my_image = mb.rwmb_meta( 'single_image_psweo3wlxf', '', post_id ) %}
    
    {{ my_image['sizes']['medium']['url'] }}
    
    <pre>
    {{ mb.print_r(my_image) }}
    </pre>

    It doesn't return anything at all right now.

    in reply to: Image Size Using Twig / Block Builder #22559
    David NewtonDavid Newton
    Participant

    It seems like maybe I'm still misunderstanding, though. This is what I have based on I understand you to be saying:

    Code for building block

    But, the result I get is this when I add that block:

    Results of code

    in reply to: Image Size Using Twig / Block Builder #22558
    David NewtonDavid Newton
    Participant

    That's excellent! Thank you for your help with that specific topic and even more so for pointing me to the correct part of the documentation for such things going forward.

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