• 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
    http://coelo.eu/parafia/parafia/odwiedziny-chorych/

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

    2. PL server – incorrect
    http://serwer1305481.home.pl/autoinstalator/wordpress1/kancelaria-parafialna/odwiedziny-chorych/

    [caption id="attachment_115" align="alignnone" width="300"]<a href="http://serwer1305481.home.pl/autoinstalator/wordpress1/wp-content/uploads/2014/01/walenty.jpg"><img class="size-full wp-image-115 " title="Sw Walenty" alt="Sw Walenty" src="http://serwer1305481.home.pl/autoinstalator/wordpress1/wp-content/uploads/2014/01/walenty.jpg" width="300" height="400" /></a> Sw Walenty[/caption]

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

    regards,
    Peter

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

    Thread Starter TheElear

    (@peterpap)

    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:
    [Caption…]

    Can you see that?

    regards,
    Peter

    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.