• Resolved monika21

    (@monika21)


    I have this issue: I want fo use List category posts on the frontpage, but I have also a featured section and I don’t want to have the same post two times on the frontpage. is this possible?

    I have the same problem when I use two “List category posts” shortcodes…

Viewing 1 replies (of 1 total)
  • Plugin Contributor zymeth25

    (@zymeth25)

    You can use the exludeposts shortcode parameter as described in the documentation, but this only allows to either specify IDs to exclude or this for current post. The LCP plugin executes every instance of the shortcode/widget independently, i.e. if you use two shortcodes, they do not know anything about each other’s existence or content. It is therefore impossible, in the current implementation, to set one shortcode to automatically exclude a post that is listed by another shortcode.

    One solution I can think of is to write and include in your theme a bit of JavaScript that will compare the two LCP lists and remove duplicates.

Viewing 1 replies (of 1 total)

The topic ‘exclude doubleposts’ is closed to new replies.