0

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...

8
  • 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. Nov 8, 2011 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] Nov 8, 2011 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]? Nov 8, 2011 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... Nov 8, 2011 at 21:14
  • 1
    And.... theres your answer. Nov 8, 2011 at 21:17

1 Answer 1

0

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.

1
  • 1
    TYVM, you are awesome Fernando Nov 9, 2011 at 1:21

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.