I've resisted issuing a ticket on this for a long time because I feel like I must be missing something. Basically, I'm following Toolset's advice and using Blocks instead of Views. And all I'm trying to do is come up with a page that displays a list of posts of a certain page. The list should show the post title and a couple of custom fields within that post type. Near as I can tell I'm trying to do what Views was built to do. But I just can't figure out how to do it without Views. So, simply, how do I use Blocks to have a page iterate over multiple posts?
Granted, one of the blocks I can insert is a View. And that works. But I'm not sure if that's the way I am supposed to be doing it. And besides that, I don't know how to edit that view after I've created it.
I've looked through much of your documentation and watched many of the walkthrough videos, but everything I read and watch talks about using Views. If you could point me to documentation on doing things with Blocks, that would be super helpful!
Hi there,
You are correct to assume that you need to use Gutenberg-specific Toolset blocks. And you also are correct that you should use the VIEW block to iterate through the posts.
For more information:
https://toolset.com/course-lesson/creating-a-view/
After you add the VIEW block into the Block Editor (Gutenberg) and set it up following the steps mentioned in the documentation I linked above, you will be able to go back to the page that you added the VIEW block each time and click on it and you will be able to edit it.
Now depending on where you add the VIEW block you can access it from there. For example, if you add it to a page, then you need to go to that page to see the view and edit it.
If you add it to a content template then you need to go to that content template to see the view and edit it.
With this new approach do not think of a view as a separate thing that you can access from Toolset menus. It is a VIEW block that can be accessed whenever you added it and used it (page, content template, archive, ...)
Hope I could give context. Thanks.
Ahh, I see. Thank you so much for that clarification. One more question, though. In some of my early attempts at this I created views for test purposes. How do I delete them? thanks again!
Hi there,
If you do not use a View in a page or content template, Toolset does a good job to keep it out of the way without any performance issues. But if you insist on managing views, then you will need to enable the legacy mode.
- Go to WordPress Dashboard > Toolset > Settings > General (Tab).
- Select the option below in the Editing experience section:
Show both the legacy and Blocks interface and let me choose which to use for each item I build
- Reload the page on your browser.
- Go to WordPress Dashboard > Toolset > Views and you will be able to delete the test view from there.
Thank you.
My issues are resolved now. Thanks so much for the quick and on-the-money answers!