Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer

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?

share|improve this answer
    
Hi Fernando. Yes - this is exactly what I need. Thank you so much. cheers –  KC media Jun 2 '11 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! –  Fernando Briano Jun 2 '11 at 14:06
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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