May 10, 2021 2:18 am
Looking to use a plugin for the wordpress side that supports conditionals. Plausibly this or similar https://wordpress.org/plugins/if-widget/
Is there a variable for number of user posts? In an ideal world the user would be logged in but also have a minimum of 1 post before the widget would be visible. Wordpress side is no issue but it is the wpforo post count check that I would like to incorporate.
If not, any other ideas. Thanks.
2 Replies
May 11, 2021 12:23 pm
I'm sorry but I don't have any idea for this. I'd suggest you contact the If Widget plugin developers and ask them add some IF statement for wpForo. Here is the PHP script, which returns the number of current login user posts:
WPF()->current_object['user']['posts']