373 reputation
113
bio website getbutterfly.com
location Ireland
age 34
visits member for 3 years, 3 months
seen yesterday

I am a web developer and programmer, and occasionally designer. I love to learn new things about programming and enhance my skills even further.


Sep
26
accepted How to limit get_posts()?
Sep
25
comment How to limit get_posts()?
Thanks Otto, I solved the problem using a different approach. See my updated answer.
Sep
25
revised How to limit get_posts()?
added extended explanation
Sep
24
comment How to limit get_posts()?
What if I have 10000 posts? How do I limit the query? Isn't there a parameter or a hook or a filter to modify the query?
Sep
24
comment How to limit get_posts()?
Can you give me an example of a get_posts() query for 100 posts and 5 posts per page?
Sep
24
comment How to limit get_posts()?
Thank you @Otto. I usually use posts_per_page to define the number of posts per page to display. So I have 10 pages, with 5 posts per page, that's a total of 50 posts. I cannot set posts_per_page to 50 in this case, correct? I need to set it to 5.
Sep
24
comment How to limit get_posts()?
I have updated my question. I need a limit parameter to pass to the SQL LIMIT query.
Sep
24
revised How to limit get_posts()?
added 282 characters in body
Sep
24
comment How to limit get_posts()?
The queries are created dinamically, so there's no primary or secondary one. I don't want to use offset, I want to use get_posts() with posts_per_page set to 99999 and limit the database query to 100.
Sep
24
comment How to limit get_posts()?
Also, I cannot use the paged parameter, as I am using multiple queries on the same page.
Sep
24
comment How to limit get_posts()?
My solution is not a true WordPress one. I display 100 posts and use a jQuery pagination technique. So the question is not yet answered. I need a posts_per_page solution combined with a limit parameter. I only need get_posts() to retrieve 100 posts, so I can paginate them, I don't know, 5 or 10 per page. There is no way to limit the get_posts() query, without using the posts_per_page parameter.
Sep
24
comment How to limit get_posts()?
posts_per_page does not limit the actual get_posts() query. Also, numberposts does not work.
Sep
24
answered How to limit get_posts()?
Sep
24
asked How to limit get_posts()?
Sep
1
revised How to implement AJAX pagination for get_posts (CPT)?
added custom solution
Aug
27
revised How to implement AJAX pagination for get_posts (CPT)?
added 182 characters in body
Aug
26
asked How to implement AJAX pagination for get_posts (CPT)?
May
6
comment WordPress Following? Social Users?
Do you know any WordPress-only (no BuddyPress) solutions?
May
6
comment Twitter-like follow system, is there any plugin?
This seems to be an old question, but did you manage to implement the follow system? I'm interested for a community project.
Feb
4
asked How to import data from Mingle Forum plugin to bbPress?