Viewing 4 replies - 1 through 4 (of 4 total)
  • chezluc

    (@chezluc)

    Hey ottomek,
    I had the same question and figured it out.
    I’m using the template feature, because I would like a different order for how the information is displayed. Inside of the template file their is this function:

    $lcp_display_output .= $this->get_post_title($single);

    What I did was go to the CatListDisplayer.php file inside of the folder plugins/list-category-posts/include/

    and created a new function, based off of the original one.
    The original is:

    private function get_post_title($single, $tag = null, $css_class = null){
            $info = '<a href="' . get_permalink($single->ID).'" >' . $single->post_title . '</a>';
            return $this->assign_style($info, $tag, $css_class);
        }

    I copied it and deleted the reference to the href, and renamed it, leaving the original.

    private function get_mypost_title($single, $tag = null, $css_class = null){
            $info = $single->post_title;
            return $this->assign_style($info, $tag, $css_class);
        }

    then, inside my template file, I changed the code to:

    $lcp_display_output .= $this->get_mypost_title($single);

    hope that helps!

    Anonymous User 7928018

    (@anonymized-7928018)

    Or, for people like me:

    private function get_post_title($single, $tag = null, $css_class = null){
    				$info = $single->post_title;
    				return $this->assign_style($info, $tag, $css_class);
    		}

    Does this allow you on the post list page to click on the link of an article and go directly to an external site to read the article? I want to cut down the selecting of 3 pages after getting to my homepage to get to an external site post. Right now it’s homepage + news page + click on post link which then takes you to the post in my site which then you are able to click on the external link. You could search bing or google and get to the external article quicker and with less effort. https://roundhousetalk.com/

    The current link is under https://roundhousetalk.com/news-2

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: List category posts] Remove Post title link?’ is closed to new replies.