• Hi, I love your plugin! I noticed that template=li works well but template=div does not place the content within p tags as listed in the documentation. Instead, it seems that template=div creates empty p tags at the top of each entry, which don’t include the entry content.

    https://wordpress.org/plugins/list-category-posts/

    example code (which is broken):

    <div class=lcp_catlist id=lcp_instance_0>
        <p></p> /* this is wrong; it should contain the content below */
        <h3><a href=#>Example Title</a></h3>
        <a href=#><img src='example.jpg'></a>
        Some text from the post shows here ... <a href='#'>Read More</a>
    <p></p>
    <p></p>

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Fernando Briano

    (@fernandobt)

    What shortcode are you using? I’m trying to reproduce the issue, but I get the p tags to wrap the title as it should.

    Thread Starter Joe Westcott

    (@redredweb)

    Hi Fernandobt, here is the shortcode I’m using when I see the empty p tag problem:

    [catlist name=blog date=yes excerpt=yes excerpt_overwrite=yes excerpt_strip=yes pagination=yes numberposts=10 orderby=date posts_morelink=”Read More” template=div date_class=post-date date_tag=p title_class=post-title title_tag=h3 thumbnail_class=alignleft thumbnail=yes thumbnail_size=300,125]

    Thread Starter Joe Westcott

    (@redredweb)

    I figured out which part is malfunctioning! It looks like there’s a bug if one uses these two options at the same time:

    template=div
    date_tag=p

    I was expecting this to nest the date p tag inside the main p tag, but it doesn’t.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘template=div fails to put the items within p tags’ is closed to new replies.