Support » Fixing WordPress » Image in text widget does not work

  • Hi All,

    I insert image in the text widget using
    [caption...]<img... /> text[/caption]

    I have a test site on a UK server where the image is displayed correctly and a PL server where part of code [caption] is showing.

    THe code in the text widget is exactly the same with the exception for the image URL.

    I tried everything and cannot come up with the solution.
    I can see in the code that not all divs are rendered in the code but how to fix it?

    Below the links to the 2 web pages:

    1. UK server – correct

    [caption id="attachment_247" align="alignnone" width="300"]<a href=""><img class="size-full wp-image-247" alt="Jezu Ufam Tobie" src="" width="300" height="389" style="border: 3px solid #f9f9f9" /></a> Św. Walenty[/caption]

    2. PL server – incorrect

    [caption id="attachment_115" align="alignnone" width="300"]<a href=""><img class="size-full wp-image-115 " title="Sw Walenty" alt="Sw Walenty" src="" width="300" height="400" /></a> Sw Walenty[/caption]

    Please send me your ideas.
    Your help will be invaluable on that one.


Viewing 3 replies - 1 through 3 (of 3 total)
  • I see the image on both sites. Maybe it is a cache issue?

    Hi vtxyzzy,

    Yep this is correct. The image is visible on both sites but the Caption is not. ON the UK site it is nicely fomratted. ON the PL site you can see the code:

    Can you see that?


    Sorry, I overlooked that.

    I suspect that shortcodes are not enabled in the PL server site. Make sure that the functions.php file has the line add_filter('widget_text', 'do_shortcode'); in it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Image in text widget does not work’ is closed to new replies.