Hi, I want to use the activity shortcode to display only some new posts in custom post types. WHat is the action option i need to add for this? e.g i am using some CPTs which i have made in Geodirectory, and the ativities are being created for these. I want to show only the new listings in one page, so need to filter that option
Secondly, can i EXCLUDE posts by some user_ids or does that work only with include?
thanks,
VivekHi Brajesh/Ravi – just following up on this please, for suggestions. thanks.
Hi Vivek,
I am sorry I missed it earlier.1. Yes, It is possible to limit to new posts by using activity action but you will not be able to filter(Unless the plugin adds their own type).
By default the type is ‘new_blog_post’.
Please consult with geodir plugin team and see if they are adding their own specific activity type, If yes, you can use them.
2. Limiting to certain user ids. Please use the ‘role’ parameter for this. Currently, we do not have the option to exclude.
Regards
Brajesh
You must be logged in to reply to this topic.