Hello, I’m using plugin “Pages with category and tag” to create categories on pages which is working fine (for example next/previous block on my theme (Kadence) is finding same category pages.
Unfortunately with your (promising) plugin no pages are being listed when adding shortcode [catlist categorypage=”other”] . Sortcode renders <ul> but without items.
Your plugin is supporting pages, right?
Do you maybe have any idea what could cause the issue?
Thanks a lot (also for providing this plugin for free)!
Best Pierre
]]>Apologies up front. I am a completely ignorant guy tasked with adding new content to a site someone else set up originally. Another member of our organization was recently added to take care of adding some new content. He knows no more than I, and has somehow edited a template that showed each of our individual categories… I cannot figure out how to get it to work again. I’m not even explaining it correctly, I’m sure, but can someone help me figure this out?
]]>Hi,
A warning appears when I load my homepage with the following message:
Warning: Attempt to read property "ID" on string in /home/httpd/vhosts/echecs-nyon.ch/httpdocs/wp-content/plugins/list-category-posts/include/lcp-catlistdisplayer.php on line 198
(repeated four times)
And here are the calls in my wordpress page to List-category-posts:
[catlist name=scoop catname=no excerpt=no excerpt_strip=no content=full author=no date=no class=lcp_ulclass title_class=lcp_title numberposts=2]
[catlist name=a-la-une excerpt=yes excerpt_size = 57 template=a-la-une thumbnail=yes thumbnail_class=lcp_image orderby=title]
[catlist name=le-fou-du-roi numberposts=2 excerpt=full excerpt_strip=no excerpt_size=60 posts_morelink="Lire la suite…" author=no date=yes date_tag=p dateformat="Y-m-d"]
[catlist name=nouvelles numberposts=5 content=full author=no date=yes date_tag=p dateformat="Y-m-d"]
Apparently, the php version has been updated on the server to 8.2. I didn’t do any other change on my side. Using latest version of wordpress and latest version of List category posts.
Do you know if my problem is related to this question of php version on the server or is it something else? Do you know how I can solve it?
Thanks a lot for helping,
Gabriel
]]>I’m looking to display a custom field inline, so am using the following code:
[catlist tags="31days2021" orderby=date order=asc date=yes numberposts=-1 customfield_display="country" customfield_display_name="no" customfield_tag="span"]
It displays the data I would expect inline, but it pushes the country right up against the rest of the information, without a separator. How would I add a space or ” – ” to the data?
]]>Hello LCP team,
I’m currently in the process of designing a page that displays all the categories on my blog, in an easy-to-read way.
Please forgive this naive question, but what would be the advantages to use LCP over the Latest Posts block that’s native in WordPress? Does LCP have any specific feature that might be useful in the future, or maybe it has better performance in therms of page loading time?
Thank you for your help and sorry if this question has been asked before. I haven’t found any info on this.
]]>After update, the thumbnails are no longer displayed correctly.
Can someone help me, please?
(WordPress 6.5.4 – List category posts Vers.0.89.8)
After Update:
]]>I am very happy with the plugin. I especially like the random function and the option to keep the br tag in the excerpt. I do have a question. By default, the messages are of course displayed with the category at the top and the title of the message or messages below. Because I want to show one message per category, I would like to do this the other way around because it suits my layout better. So at the top the title of the message, then the category and then the excerpt. I put the template in my child theme and experimented with HTML in it, but I couldn’t get it done. The order always remains the same. What should I do to get this done?
]]>Hi there,
Is it possible to set more than one customfield_value? Ill tried it with comma, like: <code>[catlist post_type="post" customfield_name="name" customfield_value="cs.ap.si,cs.ap.si.bpe]</code> but it didn
t work.
Hi!
Thank you for maintaining this great plugin. I have a request or a clarification regarding the plugin’s behavior.
In the file include/lcp-widget.php
on line 50, we have the following code:
$morelink = empty($instance['morelink']) ? ' ' : $instance['morelink'];
If the user leaves the ‘morelink’ input blank, then $morelink
will be assigned a space (' '
) rather than an empty string (''
).
Then, in your plugin file include/lcp-catlist.php
on line 199, we have this function:
/**
* Load morelink name and link to the category:
*/
public function get_morelink() {
if (!empty($this->params['morelink'])) { // <----- This will always return true
$props = ['href' => get_category_link($this->lcp_category_id)];
$readmore = ($this->params['morelink'] !== '' ? $this->params['morelink'] : 'More posts');
return $this->wrapper->to_html('a', $props, $readmore);
} else {
return null;
}
}
The get_morelink()
function will never return null
because the earlier snippet in lcp-widget.php
ensures $this->params['morelink']
contains a space (which is not empty).
My concern is that this creates an empty anchor tag where the “Read more” link should be if the ‘morelink’ input is left blank. This causes accessibility issues, as empty anchor tags are problematic for screen readers.
Thank you for your attention to this matter.
]]>I may be going crazy, but I’ve used this plug-in on several websites, and have always just added the shortcode [catlist name=”whatever”] to a page, and it would show all the posts – the CONTENT of the posts, not just the titles – on that page. But on this website, it is only showing the titles in a list, which is NOT what has been asked for. Please tell me what I’m doing wrong!
]]>I have Custom Post Type and Taxonomies and want to filter posts for home page. I have setup custom taxonomy Job Type and Term Central Government.
Now I am trying to setup home page to filter out Jobs by providing Shortcode, [catlist taxonomy=’Job Type’ terms=’Central Government’] but it is not working. Any suggestion?
This site auto-updated to WP 6.5 this morning. Today the client noticed that the staff directory — which uses List Category Posts — was throwing out errors on the live site:
Deprecated: Creation of dynamic property CatListDisplayer::$parent is deprecated in?/home4/triniuc2/public_html/wp-content/plugins/list-category-posts/include/lcp-catlistdisplayer.php?on line
Simply disabling the plug-in is not a solution. Are you aware of this conflict? How might I resolved it? Thanks.
]]>I have just installed and activated the plugin. But can’t access it in the my dashboard. What can I do now
]]>Hello,
I love this plugin and use it on one of two of the websites I maintain. I want to use it on the website in question (https://www.w6ek.org/) but for some reason when I shrink down to a mobile web view, content indents and bullets are added. I’ve tried tweaking CSS but haven’t been able to make things look right on mobile.
Also, looking to tighten the gap between the page title (Welcome) and the first item shown by List category posts.
Getting lots of these entries in debug.log
[25-Mar-2024 16:34:44 UTC] PHP Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in ../wp-includes/formatting.php on line 4813
Reason is tag_escape()
call with null
as parameter in list-category-posts/include/lcp-catlistdisplayer.php
line 264:
$tag = tag_escape($this->params['title_tag']) ?: tag_escape($tag);
List category posts 0.89.8, WordPress 6.4.3, PHP 8.1.x
]]>I’m using the List category post plugin on my client’s website. Now, I’ve encountered an issue: how can I arrange the following headings in order based on the date mentioned within them, not the publication date of the articles? The headings to be sorted by date are as follows:
I failed using the search function on here, it sucks or I’m dumb. Or both. I hope this question has not already been asked, if it has, I apologize in advance. ??
I created a list of various posts from different categories which is already working great. Now I would like to give each list item a specific icon, depending on the category. Therefore I would like to give the list items a CSS class based on the category names. Is this possible?
I have already tried to solve this with a template. I have managed to create the required HTML structure of the template. Unfortunately, I don’t know nothing about PHP and failed to find the right string to output the categories in the class=”” tag.
I would be very grateful for any help. Also, thanks for the awesome plugin!
]]>Hi, your Plugin works great with Beaver builder!
But I have one question. The link “read more” under the preview text shows the category. Is it possible, that this link shows the post?
Thanks! @brisch
Hello
I have an issue with “pagination”. It show/displays number of all results instead of number of a single category results.
Thank you.
]]>Hello.
Does anyone one how to automatically publish category list after each post based on post’s category.
Thank you.
]]>I observed that this plugin widget is creating a link to the current category without an anchor text at the bottom of the post links. This was observed in my SEO reports. Further analysis suggests that it is due to the more link function which is adding the link even when it is not needed and without an anchor text. Please see if you can fix it by adding a checkbox in the widget setting to switch this “more” link on/off or provide a filter hook to achieve this effect.
]]>[catlist id=4 orderby=date numberposts=0 thumbnail=yes thumbnail_size=normal_thumbnail thumbnail_class="tbr_cat_archive_img" no_post_titles=yes class="tbr_cat_archive_ul"]
Above is the shortcode I’m using to display all posts from category “To Be Read” on a page. I have the CSS set (in my theme’s customizer) as follows. The goal is to display ONLY the featured image from each post in a responsive grid pattern with no li dot. It was working perfectly, I walked away for a bit to fold some laundry, and when I came back it no longer displays correctly:
.tbr_cat_archive_img {
width: auto;
height: 300px;
}
.tbr_cat_archive_ul {
margin: 0 auto;
text-align: center;
}
.tbr_cat_archive_ul li {
display: inline-block;
vertical-align: top;
}
No new plugins nor changes between the time it worked and didn’t. I added one post, but have since deleted it in case that was the issue somehow. I’ve messed around with the thumbnail size (“normal_thumbnail” is a custom size I added to my child theme’s functions.php) and changed it to a different size, and that did work, but it seems like nothing I do with the “class” and “thumbnail_class” parameters affects output all of a sudden.
Any ideas?
]]>Hello, thank you for this plugin, it does exactly what I need. I wanted see if it’s possible to add views next to each post to show how many times each post has been viewed on the list page. Thank you for any help!
]]>I want to show the animated image after the post title list in the post list shown through the LCP plugin. I only want to show that image in the post list not in single post view. Also I’ve to add a check box in the post editer to show that image on particular posts.
Output example: https://snipboard.io/1Yij0O.jpg
Hi,
When using pagination after the second page clicked I’m getting a #038 parameter in the url.
ie. I get: https://xxxx.com/?#038;lcp_page101=12#lcp_instance_101, instead of: https://xxxx.com/?&lcp_page101=12#lcp_instance_101. The pagination works fine without the #38 parameter, but after it apperas it does not work.
This porblem was not in the past and I think the only change I did was updating to WP 6.4.2.
Does any one know how to fix this or get rid of the #038 ?
Thanks, Marcos
]]>Hi,
In the latest version 0.89.4 the breaks in the titles of my posts are gone.
I use <br> to break-up the title in three lines.
Did a rollback to version 0.89.3 and the breaks are back.
How do I solve this in the latest version 0.89.4?
I use my own template:
$lcp_display_output .= $this->get_post_title($post);
Regards, Janet
]]>Please, update plugin to PHP 8.2
Deprecated: Creation of dynamic property?CatList::
Hi, My Website dashboard becomes slow while using the List category post-Plugin. I Tested it many times, but when I do it active, My Dashboard becomes slow, or almost dead for a few minutes, and Again and again, it causes the same problem. Please help me to resolve this issue.
]]>Hi I’m facing this issue on my website, how can I solve it?
]]>Hello –
I have been observing this issue “Attempt to read property “ID” on null” so frequently that my log file was growing quite rapidly. Hence, I had to fix it myself.
The issue is in this function of this file: lcp-parameters.php
// Before fix, problemtic code
private function lcp_get_current_post_id(){
global $post;
return $post->ID;
}
Once I fixed this issue, the code is:
private function lcp_get_current_post_id(){
global $post;
if( ! $post instanceof WP_Post ) {
return;
}
return $post->ID;
}
Please see if you can address this in a better way possible. But the above change resolved my issue that I can confirm.
Thanks.
]]>