-
Hello, I would like to show the user posts of a particular category. For example something like this:
[userpro template=postsbyuser postsbyuser_mode=grid postsbyuser_showthumb=1 category=categoryname]
I have just added a new update that allow you to display posts by user based on specific category or categories/taxonomy.
e.g. to show products from cat A, B C, or to show posts by user that are from category 1, category 2 or specific category. That’s added in v1.0.73 and I am documenting it now.
The docs for postsbyuser is ready with the new feature/options.
http://userproplugin.com/userpro/docs/#shortcode_postsbyuser
postsbyuser_taxonomy – This takes effect If you use postsbyuser_category option to show posts from specific categories. This value should be a valid taxonomy slug. Default: category
postsbyuser_category – To show posts from specific category (or categories) enter the IDs as value, comma-seperated. To show posts from category 1, 4, and 6 (using IDs) use postsbyuser_category=1,4,6 or use a single category ID for one category. Default: none to display posts from any category (Have no effect if empty!)so basically you can use postsbyuser_category=x,x,x to show categories or category.. and postsbyuser_taxonomy can control which taxonomy if you want to use another taxonomy (Not just categories!) with it.
Other parameters have been documented for postsbyuser too. Thanks!
Thanks a lot Ahmed! You are really helpful! Will try it asap!
Thanks Manos! Remember you can get latest version here:
You must be logged in to reply to this topic.