0

thank you for an amazing plugin! I´m having a problem that I hope you can help me with:

I´m using List Category Posts on a private user-page with tabbed content. As I would like users to stay on their own page I was wondering if you could tell me how to remove the link from the posts title?

1 Answer 1

1

It's not an expected behavior for the plugin, though I could make the link something more generic. In the meantime, you can manually change the code on your CatListDisplayer.php file, search for this:

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

Remove the a tag, and leave just this:return $single->post_title;

This will return just the post title, though this doesn't give you the link to the post anywhere. Is this what you need?

2
  • Hi Fernando. Yes - this is exactly what I need. Thank you so much. cheers
    – KC media
    Jun 2, 2011 at 9:00
  • OK, glad it helped. You can mark the answer as accepted if it solved the problem. I'll look further into this on future versions of the plugin. Thanks for using it, regards! Jun 2, 2011 at 14:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.