[Résolu] Can't get View loop to display blocks for adding content
This support ticket is created Il y a 4 années et 9 mois. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.
I'm trying to use the Block Editor to build a page that shows a list of my custom posts - like your demo of gym trainers.
I create a new page and add a View block. I select to create a new view and I select the grid type and choose the post type to display. When I finish the wizard, it initially draws the empty gray block (like the first block in the column) but then it quickly redraws and it looks like the attached screen shot. I can't figure out where to add the blocks to go in each loop item. Even if I add a field - like the post title, only one instance is shown. Plus, if I preview the page, none of the repeating data is shown. I'm really confused (and it's hard to explain the issue so sorry if this isn't clear).
If it matters, I had originally been building views using the classic editor but then wanted to try the block editor. I realized that I didn't have the Blocks plugin installed so I installed it. After installing, I lost the View menu under the Toolset Admin menu - I couldn't get to any of my existing views on the backend. They continued to work fine on the front end. Eventually, the View menu reappeared. Very strange. I'm using the Avada theme if that makes any difference.
Les langues: Anglais (English )Espagnol (Español )
Fuseau horaire: Europe/London (GMT+00:00)
Hi Tom
That doesn't look right, maybe it's interference from another plugin (or your theme) on that page. I'd first like you to try again with all plugins except for Toolset deactivated, and switch to a default theme like twentytwenty.
A word about the difference/similarities between Blocks and Views.
They are pretty much (not quite) the same plugin, but with different defaults for the UI that is exposed when editing Views and templates.
You can only have Blocks or Views installed. Normally with Blocks—which is targeted at new users who have no experience of classic Views—the classic editor for Views is disabled, hence there is no menu option Toolset > Views.
With either plugin you can go to Toolset > Settings and choose which UI you want to use. As an seasoned user it probably makes sense for you to opt to see both, and you can then choose the default editor for templates and archives. If you make some Views with the Blocks UI and some with the classic UI you'll see them all listed at Toolset > Views, but the Blocks versions will be greyed-out and you'll need to edit them in situ on the page where you inserted it.
Try ruling out conflicts as described above, and then I'll see how to proceed.
Sorry for the slow reply, we are pretty busy at the moment in support.
I tried disabling a few plugins but didn't see any difference. I really can't change the theme or turn off any more plugins on the site so I reverted to using the classic views and it's working fine.