offset parameter not working
-
The “offset” parameter is not working.
offset=0 and offset=1 displays the same post. see lower part of page which displays 3 posts, on following url:
http://www.sancoale.net/
-
Hi Ameet, can you show the full [catlist …] call that you are using? Thanks.
Hi AACT,
I am using the following code
`
[catlist name=featured numberposts=1 excerpt=yes excerpt_size=24 excerpt_class=lcp_excerpt title_class=lcp_title posts_morelink_class=lcp_morelink offset=0 thumbnail=yes thumbnail_size=medium posts_morelink=”more »” template=”homelisting”][catlist name=featured numberposts=1 excerpt=yes excerpt_size=24 excerpt_class=lcp_excerpt title_class=lcp_title posts_morelink_class=lcp_morelink offset=1 thumbnail=yes thumbnail_size=medium posts_morelink=”more »” template=”homelisting”]
[catlist name=featured numberposts=1 excerpt=yes excerpt_size=24 excerpt_class=lcp_excerpt title_class=lcp_title posts_morelink_class=lcp_morelink offset=2 thumbnail=yes thumbnail_size=medium posts_morelink=”more »” template=”homelisting”]
‘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’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 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.
Thanks AACT.
I was hoping usinginstance=0would work, but it did not.
[catlist name=features numberposts=3]is working fine, only problem is the list is displayed vertically instead of horizontally.
I tried using float=left on the li in the css but no success.
Can you suggest something?You can see it here:
http://www.sancoale.netThanks AACT for all your help.
Finally nailed it with[catlist name=features numberposts=3]and CSS styles.
The topic ‘offset parameter not working’ is closed to new replies.