Image in text widget does not work (4 posts)

  1. TheElear
    Posted 2 years ago #

    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="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

    [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.


  2. vtxyzzy
    Posted 2 years ago #

    I see the image on both sites. Maybe it is a cache issue?

  3. TheElear
    Posted 2 years ago #

    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?


  4. vtxyzzy
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic