• Resolved peregrine99

    (@peregrine99)


    I am using the plugin widget to show the last post in “This Week” category and until recently the HTML in the post would show up and the excerpt was formatted in the same way as the post. I’m guessing that an update in WordPress, the theme or the plugin means that the excerpt no longer shows itself formatted using HTML, it just shows the text which is not very clear. I have tried to use a text widget and [catlist name=”This Week” numberposts=1 excerpt=full excerpt_strip=no excerpt_size=400] but this doesn’t give any word wrap at the end of the line.
    I would appreciate some help as it was working beautifully before!

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor zymeth25

    (@zymeth25)

    Try [catlist name="This Week" numberposts=1 excerpt=yes excerpt_strip=no excerpt_size=400] and please post a screenshot of the result.

    Thread Starter peregrine99

    (@peregrine99)

    Thanks for your reply. HTML is showing but there is still no word wrap and spacing is wrong.

    Can’t see how to post a screenshot so here is link to screenshot in Google Drive https://drive.google.com/open?id=1YKfpahSSnxVXs1ntm82UddRHSPGew11m

    Plugin Contributor zymeth25

    (@zymeth25)

    Yes, this is how you post screenshots here, there is no better way.

    Ok, so the shortcode works as it should. I visited your website to see the change in action. The reason for the grey background of the widget and wrong spacing is because your theme or some plugin is wrapping the output of the LCP plugin in a <pre> tag. This is what it looks like now on your site:

    <pre><ul class="lcp_catlist" id="lcp_instance_0"><li class="current"><a href="https://allhallowsleeds.org/2018/08/12/this-week-13th-19th-august/" title="This Week 13th-19th August">This Week 13th-19th August</a>  <p><strong>Mon 13 Aug @11-3 </strong><i>Rainbow Junktion Cafe<br>
    </i><strong>Tue 14 Aug @7:30-9pm</strong>&nbsp;<i>Bible Study at church (07930 815911 for further info)<br>
    </i><strong>Wed 15 Aug @12-2pm</strong>&nbsp;<i>OWLS lunch<br>
    </i><strong>Wed 15 Aug @ 7pm</strong><i> ‘Blood of Christ’ or ‘Cup of Blessing’ – or ‘Both and More’?! Eucharistic theology at AH vicarage<br>
    </i><strong>Thu 16 Aug @11-3</strong><i>&nbsp;Rainbow Junktion Cafe<br>
    </i><strong>Fri 17 Aug @11-3</strong><i>&nbsp;Rainbow Junktion Cafe<br>
    </i><strong>Sun 19 Aug @10.30am&nbsp;</strong><i>Sunday morning worship<br>
    </i>See&nbsp;<a href="http://allhallowsleeds.org/whats-on/events/">our calendar</a>&nbsp;for more details of what is happening at All Hallows’</p>
    </li></ul></pre>

    If you remove the <pre> and closing </pre> everything is back to normal.

    Wordpress does not automatically add these tags. It could be your theme or a plugin. It is also worth going to the text widget’s edit panel, switch to “Text” tab (not “Visual”) and make sure there is nothing else but the shortcode.

    Thread Starter peregrine99

    (@peregrine99)

    That’s brilliant! Many thanks, have removed the pre tags and it has worked. Thank you for your amazing support and brilliant widget!
    Paul

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

The topic ‘HTML stopped working’ is closed to new replies.