• Resolved teocalli

    (@teocalli)


    I’m getting duplicate images in the List Posts by Category on my site. I can’t see why this is happening. If there are multiple images in a post then all images are duplicated. I’m using USP Pro to submit user posts.

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

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

    (@zymeth25)

    You mentioned “List Posts by Category” but this is the “List Category Posts” plugin. Are you sure you are in the right place?

    If so, you need to give more details: how exactly are you using the plugin? What shortcode are you using?

    Thread Starter teocalli

    (@teocalli)

    Yes I am using List Category Posts and my shortcodes are
    [catlist name=bikes content=full author=yes date=yes display_id=yes customfield_display_separately=yes no_post_titles=no thumbnail=no conditional_title=”Previous Posts” order=desc catlink=yes]
    My settings are
    Number of Posts 10
    Pagination True
    Order by Date
    Order Ascending

    Plugin Contributor zymeth25

    (@zymeth25)

    Thanks, I’ll look into it.

    Plugin Contributor zymeth25

    (@zymeth25)

    I tested plain embedded images and they display without an issue, there seems to be a problem with the plugin you are using, USP Pro. It produces a rather strange output, if you inspect the source of your page you will notice that what that plugin generates is invalid HTML in a few cases.

    So it turns out posts generated by that other plugin are formatted in a way that causes [catlist content=full] to display the image twice. Our plugin only grabs data from the database to display the content, it doesn’t reformat it in any way.

    You can try playing around with excerpt=yes excerpt_strip=no to see if it produces a different result.

    As a side note: I recommend checking the html your plugins generate and refrain from using those that produce invalid html, they are likely to cause problems.

    Thread Starter teocalli

    (@teocalli)

    OK Many thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Duplicate images in Listed Posts’ is closed to new replies.