Hello,
In GeneratePress Elements, I have created a Block and assigned it as a Content Template. Inside, I have added a Conditional Block. The conditions in the block are:
( ( '[wpv-post-type ]' eq 'course' ) OR ( '[wpv-post-type ]' eq 'chapter' ) OR ( '[wpv-post-type ]' eq 'lesson' ) )
The problem is that the Conditional Block is not executing and showing nothing.
To debug this problem, I created a Content Template in Toolset with the above conditions and the Conditional Block is very much executing.
Is Toolset Conditional Block having any compatibility problems with GeneratePress Elements or am I missing something?
Thanks,
Alok
Hello,
Yes there are currently some compatibility issues with GeneratePress Elements and conditional blocks. We do not recommend using conditional blocks in the context of Elements until those compatibility issues are resolved. We have a similar erratum post here:
https://toolset.com/errata/content-within-conditional-block-added-to-generatepress-premium-elements-output-as-shortcodes/
Hello,
Understood.
Is there any ETA on when it is going to be fixed?
Thanks,
Alok
Not at this time, unfortunately. I can keep you posted through this ticket when there is any progress on this issue if you'd like.
Hello,
Perfect.
The only reason that I am giving more preference to creating all the required hooks, content templates etc in GeneratePress Elements is to keep things straight & simple. No doubt Toolset is also as powerful as GeneratePress Elements, but is completely focussed on extending the posts related functionality (i.e. singular, archive, content templates, custom views, custom filters, etc) of the site.
Please keep me updated once there is some fix on this problem.
Thanks,
Alok
Okay I have linked this ticket to our internal tracker. I will update you here when I have progress to report.