Notifications
Clear all

wpForo 1.x.x [Solved] Widget based on conditionals logged in and more than 1 post

3 Posts
2 Users
0 Reactions
1,034 Views
Posts: 13
 saeb
Topic starter
(@saeb)
Eminent Member
Joined: 4 years ago

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
Robert
Posts: 10591
Admin
(@robert)
Support Team
Joined: 9 years ago

@saeb,

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']
Posts: 13
 saeb
Topic starter
(@saeb)
Eminent Member
Joined: 4 years ago

@robert

Thank you, I appreciate the feedback.