Anybody? Please? I’m about to see if I can find a better plugin without this bug. I have no idea why it’s displaying that way, and there is nothing in the documentation that I can find.
I figured it out, but this is something that should be better documented. Somehow it inserted this as an element with an ID of “post-1234”, so when I set the CSS to “display:none;” the whole thing disappeared. However, now I will have to do that on every single page where I’m trying to insert this. π
Scratch that – that hides the entire list. WTH?
I cannot set the display to none for ANY of the CSS used in this case, b/c it’s meant to be a link back to the original page, but styled like another post. That is just not usable.
Hi
Please share the exact shortcode you used as well as a screenshot of the result.
The generated html would also be useful.
Thanks
The following shortcode used to create an “extra” post at the very beginning of the list, which is essentially only a link back to the page and does not really do anything else. It also doesn’t show up in the list of regular posts, and therefore it cannot be deleted:
[catlist ID=77,79 morelink=”(More)” thumbnail=yes thumbnail_size=50,50 thumbnail_class=lcp_thumbnail numberposts=5 title_class=lcp_title title_tag=h3 date=yes date_tag=span date_class=lcp_date]
You will hate me, but all of a sudden that “mock” post is gone. Not sure what changed.
Well, generally the LCP plugin runs a post query and returns exactly what you asked for. So if you say there was an extra bullet point, it means there must have been a post in the database that matched your parameters and therefore got displayed.
Where that post came from is another issue.
OK, so another report. It seems OK in the normal post list now. However, I am also using the shortcode in the right side bar as a widget:
[catlist ID=77,79 excerpt=yes excerpt_size=25 morelink=”(MORE)” title_class=lcp_title title_tag=h5 date=yes date_tag=span date_class=lcp_date_widget]
This produces the predicted 10 posts as a list, plus an extra one at the very end that really is a link to the main page where they all live. Any idea why it is doing this?
Thanks!
Can you double check if the page itself, the one where the posts live, doesn’t have categories assigned of ids 77 or 79?
I need to keep the categories consistent.
Also, I should mention that 77 is a child of 79.
OK, so I figured out what was causing it. Normally, pages don’t get categories or tags, unless you install a plugin for exactly this reason. That plugin will attach what would technically be a POST category to a page, same with tags. If you then search for posts to display in a particular category, you’ll inevitably get the PAGES as well.
The LCP plugin does not list pages or any other post types other than “post” by default. This means that even if you have a cateogry X assigned to a page, [catlist name="X"] will not display it.
But if you are using a plugin that changes this behavior and makes WordPress treat pages like posts, then the LCP plugin will act accordingly.
You can try the excludeposts parameter, according to the docs:
excludeposts β IDs of posts to exclude from the list. Use βthisβ to exclude the current post. Ex: [catlist excludeposts=this,12,52,37]
Try exludeposts=this in your shortcode
-
This reply was modified 7 years, 10 months ago by
zymeth25.