picandocodigo / List-Category-Posts

WordPress plugin which allows you to list posts from a category into a post/page using the [catlist] shortcode.
http://wordpress.org/extend/plugins/list-category-posts/
GNU General Public License v2.0
241 stars 112 forks source link

catlink title empty with more than one List Category Posts widget #155

Closed Anguel closed 6 years ago

Anguel commented 9 years ago

I have two List Category Posts widgets on a page - one is set to display posts from the current category, the other is set to display posts from a specific category. Both have catlink set as their title. Unfortunately, the widget that should display from the current category does not display any title and returns an empty The other widget works as expected.

Sophist-UK commented 9 years ago

Have you set instances for these to avoid conflicts of ids?

Anguel commented 9 years ago

Sorry, I am not sure how to set instances. I have two widgets and I enter "catlink" (without the quotes) as their titles. The widget that does not work is set to "Current category". If I understand correctly it should detect the category of a post and display it in the title. It seems to detect the category as it correctly lists other posts from the current category. But it does not show any title.

Sophist-UK commented 9 years ago

I am not sure about the widgets as I use shortcodes on my site - do you have a public URL that I can look at with the two widgets?

Also check the javascript console to see if you are getting any js errors.

Anguel commented 9 years ago

Sorry, I cannot provide a public link at this time. The problem is with the widget. No JS errors, the a href is just empty, had posted this above but github "ate" my html tags. Now I removed the other widget and still the same problem. It looks like "Current Category" setting in the widget just does not work with "catlink" in title for some reason.

Sophist-UK commented 9 years ago

You don't need to set "catlink" as the title of the widget for the specific category as that is fixed - have you tried entering your own title to see if that helps?

Anguel commented 9 years ago

As described above, it actually works with "catlink" but only if I select to list posts from a specific category. However, if I want it to dynamically fetch the category of the post -> "Current Category" choice in the widget, it does not work anymore.