Notifications
Clear all

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

3 Posts
2 Users
0 Likes
577 Views
saeb
Posts: 13
 saeb
Topic starter
(@saeb)
Active Member
Joined: 1 year 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: 9267
Admin
(@robert)
Support Team
Joined: 6 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']
Reply
saeb
Posts: 13
 saeb
Topic starter
(@saeb)
Active Member
Joined: 1 year ago

@robert

Thank you, I appreciate the feedback.

Reply
Share: