Support » Plugin: WP Show Posts » Remove links

  • How can I remove the link from the image and post title? I am using this plugin for a page where I want the posts to display in full, in a grid. I do not need or want them to link to the WP post page.

Viewing 1 replies (of 1 total)
  • Plugin Author Tom

    (@edge22)

    Hi there,

    You can do this:

    add_filter( 'wpsp_disable_image_link', 'tu_disable_links', 10, 2 );
    add_filter( 'wpsp_disable_title_link', 'tu_disable_links', 10, 2 );
    function tu_disable_links( $output, $settings ) {
        if ( 123 === $settings['list_id'] ) {
            return true;
        }
    
        return $output;
    }

    You just need to update 123 to the ID of the list you’re targeting.

    Adding PHP: https://docs.wpshowposts.com/article/adding-php/

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.