Forum Replies Created

Viewing 1 replies (of 1 total)
  • 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!

Viewing 1 replies (of 1 total)