127 reputation
14
bio website
location Rome, Italy
age
visits member for 2 years, 6 months
seen Apr 22 at 1:39

Feb
3
awarded  Self-Learner
Dec
28
comment Conflict with get_posts and the_content
I'll try soon if it works
Dec
28
awarded  Curious
Dec
28
awarded  Benefactor
Dec
28
comment Add role that restricts user to post in specific category
Perfect! It works! :D One last thing, instead of current_user_can can I specify the user role name?
Dec
28
accepted Add role that restricts user to post in specific category
Dec
28
comment Add role that restricts user to post in specific category
Uhm, but where do I specify the restricted categories and the role?
Dec
27
asked Conflict with get_posts and the_content
Dec
27
comment WP_Query condition affects posts_per_page count
One problem maybe is that get_posts() doesn't support pagination..
Dec
27
comment WP_Query condition affects posts_per_page count
Thanks. I followed your advice and it worked like a charm now replacing also the other function with get_posts. :)
Dec
27
accepted WP_Query condition affects posts_per_page count
Dec
27
comment WP_Query condition affects posts_per_page count
It's because I have another query_posts in the same page. I digged in WordPress codex but I'm not able to have them working at the same time.. Here's what I tried: pastebin.com/q1a9heG7 The first query is displayed. the second is blank..
Dec
27
comment WP_Query condition affects posts_per_page count
Thanks! Obviously this is the way to go. Unfortunately I tried your snippet but the output is blank..
Dec
27
comment WP_Query condition affects posts_per_page count
I don't get how that function could help..
Dec
27
comment WP_Query condition affects posts_per_page count
Where? And it seems deprecated..
Dec
27
comment WP_Query condition affects posts_per_page count
yep. the problem of my code is that the function gets the last 5 posts and then the filter of the thumbnail is applied. So if 3 posts of these 5 have the thumbnail only 5-3=2 are displayed. The filter should be applied before I think, so the 5 posts selected by posts_per_page are already the ones without the thumbnail.
Dec
27
asked WP_Query condition affects posts_per_page count
Dec
21
comment Add role that restricts user to post in specific category
Thanks for the reply. :) But this just hides posts in specific categories. I'm looking for a way to restrict the ABILITY TO POST in specific categories.
Dec
21
awarded  Promoter
Dec
8
asked Add role that restricts user to post in specific category