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.

After the last update of the plugin "List Category Posts" the first post item under each category is just text, no link. This request is made at the request of the plugin author as per the help file associated with the plugin as the means to get answers from HIM.

See example here: http://oneangrycitizen.me/categories/

So the category links work but the post links are not working on the first link...

share|improve this question
1  
Can you include the code that generates this? Also, it looks more like a posts list than a category list. Each link takes me to single posts and not category archives. –  Kevin Langley Jr. Nov 8 '11 at 18:45
    
The category links include the list of posts: [catlist id=3 catlink=yes numberposts=-1] [catlist id=11 catlink=yes numberposts=-1] [catlist id=6 catlink=yes numberposts=-1] [catlist id=5 catlink=yes numberposts=-1] [catlist id=4 catlink=yes numberposts=-1] –  The Citizen Nov 8 '11 at 21:07
    
This is just the shortcode for the code. Do you have the code for the shortcode that creates the actual lists from the [catlist]? –  Kevin Langley Jr. Nov 8 '11 at 21:12
    
This is from a plugin - "List Category Posts" there are 6 .php files associated with it. The author requested bug / problem reports through this website... –  The Citizen Nov 8 '11 at 21:14
1  
And.... theres your answer. –  Kevin Langley Jr. Nov 8 '11 at 21:17
show 3 more comments

1 Answer

up vote 0 down vote accepted

The first link was displaying incorrectly because of a bug with a " sign. On line 60 of ListCatDisplayer.php, there was a wrong ":

$this->lcp_output .= '<' . $tag;
        if (isset($this->params['class'])): $this->lcp_output .= ' class="' . $this->params['class']; endif;
        $this->lcp_output .= '">';

As you can see, I was always adding the " when closing the tag. So this produced: enter image description here And if you specified a class and added more parameters, the wrong " made the whole markup to be wrong.

I've fixed it to add the " only on the class line:

$this->lcp_output .= '<' . $tag;
        if (isset($this->params['class'])): $this->lcp_output .= ' class="' . $this->params['class'] . '"'; endif;
        $this->lcp_output .= '>';

It was fixed in version 0.20.2, now ready for update. Sorry for the inconvenience, and sorry you didn't get much help in the comments. Usually users tend to be friendlier over here.

share|improve this answer
1  
TYVM, you are awesome Fernando –  The Citizen Nov 9 '11 at 1:21
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.