Borjan Tchakaloff
Forum Replies Created
-
Hey,
you’re more than welcome, but your appreciations should definitely go to Fernando Briano, the author of the plugin.To answer your question, yes, you can use it as usual but please note that what I did is merely hack the plugin. That means that the name and the version are the original ones so if you upgrade later on with Fernando’s version, you will have to re-apply the hack if he has not merged it in the code base.
Here you go: the pull request on GitHub, and the plugin as-is.
OK. The issue appears because your title is hard-coded.
The result is the same as with a widget, the title is still showing even if the cat-list returns nothing.AFAIK, you cannot do this right now.
I think that this feature is quite easy to code with some new parameters and a few lines of code.
I will hack it later in the day and post back here a link.
Then, Fernando will accept or not to merge it (but the code will be here for you to use as-is).Hello,
what you want is basically a title for the listed posts, right?
Just like one can obtain when using the widget?I don’t get your “nice thing” about showing both title and category. Can you please explain further?
But yes, the issue with the widget title is that even though there is no post displayed in the widget, its title remains.Hello,
you have two ways of achieving this.
- you can use the short codes of the plugin instead of the widget form (see the documentation, and more specifically the Other notes page).
- I have updated the widget code and submitted this enhancement to Fernando on GitHub. You can wait for a) him to integrate it, b) download my updated version or c) apply yourself the following small fix.
The fix is really simple, you only need to add in include/lcp-widget-form.php
at l.114:"modified" => __("Modified Date", "list-category-posts"),
.