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.

Using the list category posts plugin I'm trying to work out how to include a title for the link

In my main theme the links are styles as follows:

<a title="Article - Post title" rel="bookmark" href="http://mysite/mypage/">Post title</a>

I want to do that using the category list plugin too, can that be done using the shortcode tags or would I need to put together a template?

share|improve this question

closed as off-topic by Pieter Goosen, birgire, cybmeta, Mark Kaplun, G. M. Nov 27 at 14:59

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

1  
This is finally going in (at least a first version) on release 0.24. I'll further work on it :) –  Fernando Briano Apr 19 '12 at 7:22

1 Answer 1

Actually, I should include this as an option on the plugin. Right now the code looks like this:

$info = '<a href="' . get_permalink($single->ID).'" >' . $single->post_title . '</a>';

So this generates a simple link:

<a href="yourpost.html">Post Title</a>

I'll see what I can do on a next version to make this customizable, but in the meantime you can go to line 164 on /include/CatListDisplayer.php and change that line into something like this:

$info = '<a href="' . get_permalink($single->ID).'" rel="bookmark" title='. $single->post_title . '>' . $single->post_title . '</a>';
share|improve this answer

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