This article is contributed by Marine Larmier from the Toolset team. Thanks a ton, Marine!
Toolset allows you to create custom post types, and design content templates. Astra theme is Toolset custom types compatible, meaning that you can control theme settings per different template.
Below is a quick video that explain how Astra theme & Toolset work together:
In this step-by-step tutorial below, we will show you the power of Toolset when used with Astra, no extra PHP is required. We also have reference sites where you can experience it by yourself, for free. Simply activate Astra theme, and start to play with it.
- Getting Started – Installing Toolset plugins
- Add custom post types, taxonomies and fields to Astra
- Create templates for custom post types using Toolset Layouts
- Assign different Astra theme options to each template or archive you create
- Create advanced custom searches and display results as a list using pagination or infinite scrolling, sliders and on Google Maps
- Front-end forms for submitting content and registering users
- Control access to your content built with Astra: membership sites & personal accounts.
- Using Astra, Toolset & WooCommerce: Single product template, comparison and much more.
- Try Toolset for 30 days for free.
1. Getting Started – Installing Toolset plugins
When you purchase Toolset, you will notice that it comes with several components. Download and install the following plugins from your Toolset account.
- Types – lets you create custom post types, custom fields, and custom taxonomies.
- Views 2.5 – helps you display the lists of your contents and archives on the front-end, including custom search for your visitors.
- CRED – lets users submit content via front-end forms.
- Layouts 2.1 – drag-and-drop builder who lets you design your content templates.
- Access – lets you add custom user roles and control where each user role can visit on the front-end.
- Maps – lets you display your contents on Google Maps.
Note that depending on the kind of site you want to build, e-commerce for example, you will need to download additional Toolset component plugins.
|Create a custom post type||In our example, we created “Tours”|
|Add some custom fields||Number, Address, Checkboxes, Gallery, URL etc.|
|Add custom taxonomies||Tour types such as “family friendly”, “Food Experience”, etc.|
Read Toolset documentation to learn more about how to set up more options for custom post types, taxonomies and custom fields.
3. Create Templates for Custom Post Types Using Toolset Layouts for Astra
Toolset Layouts is a drag-and-drop builder allowing you to create a template for your custom post types. Your design is built using cells you insert into it. Different cell types provide different functionality. As an example, all the tours will be automatically updated using the same content template.
|Final Content Template built with Layouts drag-and-drop||Tour in Venice on the front-end using my content template||Tour in Amsterdam using automatically the same template|
One template for all custom post types.
Learn more about how to design template for your custom post types with Toolset.
4. Assign Different Astra Theme Options to Each Template or Archive You Create
Under the layout you just created, you will find the Astra Theme Options section. Use Toolset to control the theme options for each template you created. In our example, we will remove the header for all of our Tours:
|Removing the header for the tours using Astra Theme Options section.||Front-end results: Astra header is not displayed anymore.|
5. Create Advanced Custom Searches and Display Results as a List Using Pagination, Infinite Scrolling, Slider or Google Maps
Toolset allows you to easily build custom searches based on custom post types and filters. This way, you allow visitors to filter the contents by different parameters you select. You’ll find below two examples of custom searches built with Astra and Toolset.
Learn more about how to build custom search with Toolset and Astra
And here are some examples of how you can display your contents on the front-end with Toolset and Astra:
|My custom post types as a list with pagination. Documentation||My custom post types on a map. Documentation||My custom post types as a slider. Documentation|
6. Front-end Forms for Submitting Content and Registering Users: Cred Forms
Another possibility is to allow users to submit content from the front-end of their site built with Astra. For example, you can allow visitors to submit a tour, a property, a guest post, a testimonial, and much more.
You can also select the status of each submitted post: published, pending review, etc.
7. Control Access to Your Content Built with Astra: Useful for Membership, Privileges and User Roles.
|Toolset allows you to have complete control over who can access the contents in your site, from the custom fields to the front-end pages, forms, and more. |
Learn more about how to control what user can access or not according to his role and login status.
8. Using Astra, Toolset & Woocommerce – Create Custom Product Template, Products Comparison and Much More.
|Design the templates for displaying your single WooCommerce Products as well as custom Product Listing pages.
Visit our dedicated page to learn more about developing custom WooCommerce sites with Toolset.