Dear support team,
I am rebuilding and studying the workflow described in Toolset's tutorial “How to Create Custom Searches and Relationships for Users in WordPress.”
My environment is:
WordPress
Toolset Types 3.6.5
Toolset Blocks 1.6.31
Toolset Forms 2.6.28
Toolset Access 2.9.8
I have two custom post types:
Specialists
Works
Each Specialist and its Works use the same WordPress Post Author to associate the content with the WordPress user.
I have successfully reproduced these two View filters:
Post author is the author of the page where this View is shown
This successfully displays only the Works belonging to the author of the currently displayed Specialist.
Post author is the same as the logged in user
This successfully displays only the Works belonging to the currently logged-in user.
I am now trying to reproduce the tutorial's method for allowing only one Specialist profile per WordPress user.
I created a View named:
Specialist by Logged-in User
The View selects:
Specialists
with the filter:
Post author is the same as the current logged in user
The logic I want is:
If the View finds a Specialist belonging to the logged-in user: display nothing.
If the View finds no Specialist: display my existing Create Specialist Toolset Form.
In the older tutorial, this appears to be implemented by placing the Create Specialist Form in the View's “No Items Found” output.
However, in Toolset Blocks 1.6.31 I can see the message:
There were no posts found to display for this View's query.
but I cannot find an editable “No Items Found” section/block where I can insert the Toolset Form.
In the block list I can only see:
View → View Output → View Loop
I have also checked:
View Output
Layout Customization
Add Other Blocks
Toolset Conditional block
The Conditional block offers Post data, Static value, Views Shortcode, Custom Shortcode, Custom function, Current user ID, Current user role, etc., but I cannot see a direct “View has no results” condition.
What is the recommended current method in Toolset Blocks 1.6.31 to reproduce the tutorial's original behavior?
Specifically, how can I display the Create Specialist Toolset Form only when the logged-in user has no Specialist post?
If the original “No Items Found” technique is no longer available in the Blocks UI, what is the recommended replacement without custom PHP?
Thank you,
Yoshihiko Hirai