Support » Plugin: List category posts » Disable Thumbnail Link

  • Resolved manakuke


    We use this great plugin everywhere. Very useful! We have a scenario using it to show a very basic staff listing, but have no need and do not want users to go to the actual post. Is there a way to disable the link to the post that is automatically generated when using thumbnail?

    This is my shortcode:

    [catlist numberposts=-1 post_type="staff-member" thumbnail="yes" force_thumbnail="yes" thumbnail_size="250" thumbnail_class="board-thumbnail" title_tag=h4 customfield_tag=p template="staff-list" link_titles="false" content="full"]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support zymeth25


    Please try using the link_titles parameter, as per the documentation:

    link_titles – Option to display titles without links. If set to false, the post titles won’t be linking to the article.

    So link_titles=false should resolve your issue. Let me know how it goes.

    Plugin Support zymeth25


    Ah, sorry, you already did that, let me look into it then.

    Plugin Support zymeth25


    Unfortunately the link wrapping is hardcoded into the plugin right now and cannot be removed with a shortcode parameter or in a template. I’ll add it to a to-do list.

    As a temporary solution you could delete lines 53-54 and the </a> at the end of line 63 from include/lcp-thumbnail.php but you would have to re-do it every time you reinstall/update the plugin.

    • This reply was modified 1 year, 2 months ago by  zymeth25.

    I appreciate you looking into this. As a future feature for the short code, it would be super helpful (to avoid needing to use the template or edit your core code).

    The work around that I’ve tried and seems to work was that in a custom template, I switched:

    $lcp_display_output .= $this->get_thumbnail($post);


    $lcp_display_output .= get_the_post_thumbnail( $_post->ID, 'stafflist-thumb', ['class' => 'board-thumbnail', 'title' => 'Staff Photo - '.$this->get_post_title($post) ] );
    Plugin Support zymeth25


    Yes, your solution works but then LCP thumbnail parameters are ignored. But if you can figure out how to use get_the_post_thumbnail in a template, you should be totally fine until we release a fix 😉


Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Disable Thumbnail Link’ is closed to new replies.