• Resolved mstudioIL

    (@mstudioil)


    this “Only works for simple text based values” limitation means that I can’t use a image field? It work l only for the text field?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support ACF Support

    (@acfsupport)

    Hi there!

    ACF Support Team here, Thanks for reaching out with your query we would be happy to assist

    Yes, it is not possible at the moment to use the ACF shortcode to display images. The ACF shortcode is for text-based fields such as text and number field types.

    However, ACF gives developers the freedom to render content on the front end as per their preferences. In other words, ACF doesn’t render content on the front end and one has to add custom code in order to.

    Usually, developers use the get_field() and the_field() functions to render values on the front end.

    Unfortunately, different themes have different file hierarchies and it is always a good idea to consult your theme support so that they can advise on the correct file to place your code.

    Please have a look at the resources below:

    https://www.advancedcustomfields.com/resources/displaying-custom-field-values-in-your-theme/

    If you need further clarification, please create a ticket using our ​support form and we can advise further.

    Thread Starter mstudioIL

    (@mstudioil)

    Thanks, so to show image I need something like

    [acf field="{$field_name}"]

    as in the example, what about the alt tag?

    Will it work on Elementor?

    Plugin Support ACF Support

    (@acfsupport)

    Hi there,

    Thanks for getting back to us.

    As we stated earlier,  it is not possible at the moment to use the ACF shortcode to display images.

    For help using the Elementor with ACF to display data, I would recommend that you reach out to Elementor support since they know ins and outs of their code and integration. Hopefully, they will be able to shed some light on the same. 🙂

    If you need further clarification, please create a ticket using our ​support form and we can look into it further.

    Thread Starter mstudioIL

    (@mstudioil)

    Thanks for the answer, Elementor support is not that great, but I found solution for what I needed

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Use with Shortcode’ is closed to new replies.