Forum Replies Created

Viewing 15 replies - 46 through 60 (of 104 total)
  • Hi,
    nothing seems to be clearing the thumbnail and as it’s longer than the extract (on a normal size screen, if you shrink the screen size you’ll see the titles going to the left hand side as you want), the stuff from the next post starts off being shown beside the thumbnail.

    As a work-around, you probably need to make .lcp_catlist h3 have clear:both; style to make sure you clear the thumbnail before starting the next post. Or, remove the template=div and go the default unordered list way of showing the posts.

    [I say ‘a workaround’ because we might have expected LCP putting each post between p tags to help, but I suspect this gets in a muddle with having the other tags inside and/or WP is tidying up the p tags automatically.]

    Hi again, I’ve managed to get a similar problem to yours, though it happened when I had pagination on the first catlist call.

    The problem was solved by adding a instance=0 parameter to the first catlist call, instance=1 to the second catlist call and so on. I don’t know if you are using catlist anywhere else on your page, but it may be worth adding the instance=n to each call to ensure they look different.

    Hi, I’ve just put your page (http://www.sancoale.net/) through W3C Validator and it has quite a few bugs. I don’t know that they can cause your problem, but it’s worth getting the code correct to eliminate that. For example, there are several instances of id=homelist.

    Hi, it seems to work for me.

    I’m using LCP version 0.51. Is that the version you are using?

    Could you try two really simple calls like:
    [catlist name=featured numberposts=1 offset=0]
    [catlist name=featured numberposts=1 offset=1]

    in a test page and see what you get? [I can’t believe it’s your template that is the problem, but best to get rid of everything to see if the basics are working].

    Also you could try
    [catlist name=features numberposts=3]
    just to make sure catlist can pick up the 3 most recently published posts (which I guess is what you are trying to show at the bottom of your page).

    Hi, I can’t immediately see anything wrong with what you are doing.

    Is the problem that you aren’t seeing any output, or that it’s taking a long time?

    Hi Ameet, can you show the full [catlist …] call that you are using? Thanks.

    Hi Ameet, unfortunately this wont work in this case as there are apparently many, many categories to exclude. Hence the suggestion above that a different approach be taken to managing what seems to be a data structure.

    You may have a problem with your theme. Can you show us a url so we can see the problem?

    Hi, can you show us exactly what your catlist call is?

    orderby=asc and orderby=desc work fine for me.

    Hi, how many posts do you have in category 1 and how many in category 12 and how many in category 1 AND 12?

    Just a silly thought, 1 and 12 are the IDs of the relevant categories are they, not the names?

    Hi

    the template default.php is I think just a few examples of what you can put in a template – it doesn’t list everything. If you want to put out the morelink then you need to put this line

    $lcp_display_output .= $this->get_posts_morelink($single);

    in the template file after the line that outputs the content of a post which looks something like:
    $lcp_display_output .= $this->get_content($single, ‘p’, ‘lcp_content’);

    However,as the default.php is just an example, if you don’t really need a template, then don’t use the template=default parameter in your catlist call and see whether you get what you want.

    If you do need your own template, then you can take default.php as a guide (but it doesn’t have everything in it, and you may want to add things or alter the order in which things appear). Put your own copy (probably named something other than default) into a folder called list-category-posts inside your child theme directory. Otherwise you will find your template overwritten when you next update the plugin.

    Hi,

    could you try

    [catlist numberposts=1]

    and say exactly what you see?
    Thanks

    Ah, I see. Yes I think I had misunderstood.

    So, if I’ve understood right this time: you can list those posts which have both category 1+2 OK but the problem is listing the ones that have ONLY category 1? Sorry, I can’t think how to do that.

    I wonder whether using custom post types and custom fields for your data structure rather than just relying on categories (as you say, you are ending up with hundreds of them) might help? For example, having one custom post type for orders, one for customers, one for products?

    There are plugins to help with managing customfields, e.g. Advanced Custom Fields.

    Hi, couple of thoughts.

    Have you tried putting the shortcode direct into one of the relevant posts content, just to see if you get the right list then?

    Silly, question, but you don’t have posts all in a common category do you (e.g. they aren’t all in Uncategorized are they?)

    Hi, from the documentation in Other Notes:
    Exclude a category with the minus sign (-): [catlist id=11,-32,16]

    so if you have several categories to exclude, then I think you need to put a minus sign before each one. e.g [catlist id=-22,-45,-56]

Viewing 15 replies - 46 through 60 (of 104 total)