zymeth25
Forum Replies Created
-
Forum: Plugins
In reply to: [List category posts] How can I show the “Tags” on ListYes @genepine, you are welcome to use my code i posted in that GH issue ??
Forum: Plugins
In reply to: [List category posts] Add class to posts_morelinkHi @wputler
The
get_posts_morelink
function doesn’t accept tags and classes as arguments. This is a knows issue. Until it gets fixed you have to useposts_morelink_class
in your shortcode, it will produce the result you want.Forum: Plugins
In reply to: [List category posts] BUG: $this->get_author($post); Malformed markupThanks for reporting this!
Hi @puddleglum
This is not a bug. This is happening because you used
p
as html tag in your template. Important thing to note here is that browser developer tools do not show the actual raw html but how the brower understands the html after having parsed it. So if instead of looking at dev tools you take a look at the page source, you will discover that the LCP plugin wrapped the content just as you wanted.So why are dev tools showing what you are seeing? This is because if you use a
p
tag you will inevitably end up with nestedp
elements – this is invalid html. If you use almost any other tag in your template function it will work nicely.- This reply was modified 7 years, 1 month ago by zymeth25.
First, please share the shortcode that you tried but didn’t produce expected results.
Forum: Plugins
In reply to: [List category posts] How can I show the “Tags” on ListYou are correct, as of now it is not supported by the plugin although this is already being discussed on GitHub and will be included in the future.
However, if you are a bit familiar with PHP you can achieve this with custom templates. You’ll need to use this built in wordpress function:
https://codex.www.ads-software.com/Function_Reference/get_the_tags
Forum: Plugins
In reply to: [List category posts] Can pages be listed?This is all described in the documentation, please read it before opening a support thread!
Forum: Plugins
In reply to: [List category posts] starting_with not work@lorddunvegan It is near to being resolved. If you are interested, the fix is here.
Forum: Plugins
In reply to: [List category posts] [catlist] in PHP not working correctlyI ran a few tests but was unable to reproduce the issue, when I construct the shortcode string with a variable the result is correct. Your issue looks bizzare to me, the only explanation for the shortcode showing all posts regardless of categories is if the string you pass as
$category_slug
is either empty or wrong, but you have found out yourself that it is correct.Does this occur on every page? Try different pages, like single post pages, archive pages etc and see if there is any difference in behavior.
- This reply was modified 7 years, 1 month ago by zymeth25.
Forum: Plugins
In reply to: [List category posts] How to center the thumbnails?Hello @lucio7
Well, the short answer is: yes, of course it’s possible with the plugin but as you have figured out it requires CSS code to be added ?? Unfortunately the plugin doesn’t offer such customization options out of the box.
To produce the result you shared you would have to use CSS not only to style the thumbnails but also to style the entire layout of your list of posts.
You are right that it would be nice to have some examples with CSS code to help people get started. Hope we can find the time to add them.
Forum: Plugins
In reply to: [List category posts] SEARCH functionIt depends on where you want the code to be placed. But assuming we have a
$post
object you can do this:global $post; echo do_shortcode('[catlist search="' . $post->post_title . '"]');
Forum: Plugins
In reply to: [List category posts] [catlist] in PHP not working correctlySo
var_dump
gives expected result but somehow the result is different if you use string concatenation instead of hardcoding. That’s strange, I’ll see if I can reproduce the issue. For now you can try gettng the id from the category object ($category->cat_ID
) and see if that works.Forum: Plugins
In reply to: [List category posts] SEARCH functionYou mean [catlist search=”sometext”] where “sometext” is always current post title? No, this is not possible, only if you use custom PHP code.
- This reply was modified 7 years, 1 month ago by zymeth25.
Forum: Plugins
In reply to: [List category posts] When list is long…page is blankHi @misterdokin
Sorry for asking, but is this really what you want to display on your page (over 1000 posts) or is this just a technical/theoretical question?
Try using WP Debug mode to see if any error messages pop up.
Forum: Plugins
In reply to: [List category posts] [catlist] in PHP not working correctlyHi @chrslcy
Try hardcoding the category slug in the shortcode and see what happenes, eg:
echo do_shortcode ('[catlist name="mycategory" date="yes"]');
Also, for debugging, would be good to try
var_dump($category_slug);
before you echo the shortcode.