Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Eliot Akira

    (@miyarakira)

    I tested this, and it’s working as expected on my end.

    Hmm.. I can’t think of a workaround at this moment. The issue seems related to the change in WP 4.2.3 regarding the use of shortcode in HTML attribute.

    When you say it is no longer working, could you describe the exact output? Does it output the shortcode as it is without running, or is it empty like the following?

    background-image:url('');

    Also, is the code in the post content, or loaded from somewhere else using another shortcode or PHP?

    Thread Starter Sergio Cabral

    (@sergio-cabral)

    Hello Eliot, thanks for your fast response. I’m using the shortcode on a sidebar, and the output is just as you suggested, empty.

    Plugin Author Eliot Akira

    (@miyarakira)

    I tested the code in a sidebar, and it’s still working on my end. How strange, I wonder what is different about your setup.

    In the plugin settings, do you have “shortcodes inside text widget” enabled?

    Since the output is empty, it sounds like the shortcode is running but can’t find the current post.

    Could you check if it makes a difference between single and archive template?

    Also, as a test, can you see if the following displays anything in the sidebar?

    Current post: [field id]
    Featured image URL: [field image-url]
    Thread Starter Sergio Cabral

    (@sergio-cabral)

    Yes, “shortcodes inside text widget” is enabled, and I added the test you suggested to the sidebar and it worked. Can you please explain me a little more about the single and archive template in order for me to proceed with that test?

    Plugin Author Eliot Akira

    (@miyarakira)

    For single template, I meant when the site is displaying a single page or post. For archive, I meant like a post archive view, for example: example.com/category/uncategorized

    But, it sounds like the issue exists on a single post template – which should have a featured image URL.

    Can you try the newest plugin update to see if it makes a difference? There was another person with a similar issue (shortcodes in sidebar widget) so hopefully the same solution will work in your case also.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Field image-url inside style attrinute’ is closed to new replies.