Title: Logic PHP
Last modified: May 11, 2021

---

# Logic PHP

 *  Resolved [saeb1](https://wordpress.org/support/users/saeb1/)
 * (@saeb1)
 * [5 years ago](https://wordpress.org/support/topic/logic-php/)
 * Not sure where to ask this question.
 * I was hoping to use this plugin to only show a widget if a user is logged in 
   and has more than 1 post on wpforo wordpress forum plugin.
 * Wpforo admin have advised ” PHP script, which returns the number of current login
   user posts: WPF()->current_object[‘user’][‘posts’] ”
 * Will the logic in this plugin support what I want to achieve. How do I implement
   the check? More than happy to seek advice elsewhere as this is probably out of
   the scope of any support but it is a big wide web and where would be the best
   place to seek further help.
 * Thanks.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Mej de Castro](https://wordpress.org/support/users/mej/)
 * (@mej)
 * [5 years ago](https://wordpress.org/support/topic/logic-php/#post-14428625)
 * Hi [@saeb1](https://wordpress.org/support/users/saeb1/)
 * Thanks for reaching out 🙂 Our widget options can help show a widget for logged-
   in user. See [https://imgur.com/6wzQEJQ](https://imgur.com/6wzQEJQ) for reference.
   The Display logic feature of widget options supports conditional tags from [https://codex.wordpress.org/Conditional_Tags](https://codex.wordpress.org/Conditional_Tags).
   Unfortunately, it would be better to create a custom addon filter for the user
   who has more than 1 post.
 * Hope that helps. If you have any questions, please let me know!
 * Regards,
    Widget Options Support

Viewing 1 replies (of 1 total)

The topic ‘Logic PHP’ is closed to new replies.

 * ![](https://ps.w.org/widget-options/assets/icon-256x256.gif?rev=2513739)
 * [Widget Options – Advanced Conditional Visibility for Gutenberg Blocks & Classic Widgets](https://wordpress.org/plugins/widget-options/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/widget-options/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/widget-options/)
 * [Active Topics](https://wordpress.org/support/plugin/widget-options/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/widget-options/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/widget-options/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mej de Castro](https://wordpress.org/support/users/mej/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/logic-php/#post-14428625)
 * Status: resolved