• Resolved monika21

    (@monika21)


    I have now the “current category” in the sidebar. is it possible to exclude the current post of the listing?

    Second question: Now it is possible to ad “catlink” to the widget title. Is it possible to link to the category, but write another widget title? like “more from this topic”?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Monika21,

    is it possible to exclude the current post of the listing?

    Simplest way to accieve this would be to exclude it’s appearance in the frontend by triggering it’s CSS class.

    The current post has the CSS class “current” – I use this to give it a highlight in the list of the current category posts. But as well you could give it something like

    li.current { display:none; }

    That would do the trick in the frontend.

    • This reply was modified 6 years, 4 months ago by jbt-csm.
    Plugin Contributor zymeth25

    (@zymeth25)

    1. Yes, in the widget options type this in the “Exclude posts (id’s)” field.
    2. No, this is not possible. You could achieve something similar by using the LCP shortcode in a text widget. [catlist name=cats morelink="more from this topic"] would work but the link would be inserted after the post list so this wouldn’t affect the title.
    Thread Starter monika21

    (@monika21)

    1. Thank you for the tip! It works!

    2. This would be a great feature

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Widget exclude current posts’ is closed to new replies.