WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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, gmazzap Nov 27 '14 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

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.