[Resolved] Can you use CPTs and custom fields created by other plugins in Toolset?
This thread is resolved. Here is a description of the problem and solution.
Problem:
Can you use CPTs and custom fields created by other plugins in Toolset?
Solution:
You can manage custom post types registered by other plugins or a theme using Types if they are public, in which case you can create post relationships with them, add Types custom fields etc.
Custom fields created by other plugins are available when you use the Fields and Views button—see screenshot—although that only appears for custom post fields. You can directly insert a wpv-user shortcode and specify the meta key of a user field if you know it. (https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-user)
If custom fields are hidden (field name begins with an underscore) you can go to Toolset > Settings > Front-end Content > Hidden custom fields to expose them within the Toolset GUI.
100% of people find this useful.
This support ticket is created 6 years, 10 months ago. 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.
Hy guys,
first I am on a hard learning curve so I apologize if my questions are silly. Even worse my English is far from good, so consider some possible misuse of terms 🙂
As is:
I am setting up a multisite with directories, that will have 3 areas:
corporate
shop
community
the website is under development so I am still figuring out the best way to achieve the desired result.
PHP 7.1.14
Wordpress 4.9.4
Theme: Divi (last version, updated)
Resources not an issues
I am still planning the website and I purchased toolset to be able to create relationships, and use them, between WordPress elements (CPT, posts, taxonomies). Considering that I don't have PHP coding abilities (even if I will try to learn) I am trying to leverage functions provided by plugins to add properties to standard wordpress elements, then use Toolset to create realtionships between some of them or use Toolset to create and manage standard WP elements, and Divi to style them.
Basically I would like to do something like this:
Plugins: PHP functions
Toolset: relationships and access control
Divi: Style
My questions:
1 - Under Tools I don't see any Access tab: normal? Access basic documentation says that there should be an Access tab 🙂
2 - I have plugins that supposedly created a CPT, in particular a plugin named Sabai that has a Directory and a Questions areas (functions, they are actually two plugins that share a common framework).
Sabai seems to be a framework
"Directory" creates a geomapped directory where users can review and vote "listings".
Listings has taxonomies (categories and tags), and users can add listings and claim existing listing to administer them.
"Questions" is basically a forum with an integrated reputation system, users and questions can vote the Questions and Answers building user's reputation using a formula. Reputation is then an user's attribute.
I guess that both "listing" and "question and answers" are CPT but they don't show up in Toolset dashboard.
3 - I would like to map it with toolset to later assign custom roles and privileges and manage access to fronted editing elements (i.e. users with reputation higher than X earn a role of Level 2 users and can have their own blog so they can post a new CPT Users Posts). I should see somewhere additional users fields (hidden) with an attribute like "reputation" (but also other properties I can see in my profile) but that I don't understand how to find and map these properties into toolset.
When I try to map User Fields those properties are not listed.
I am not asking you about other plugins, but if and how I can find existing properties when these properties are added to standard WordPress elements, and if it could be that those properties are NOT saved as standard wordpress properties.
Suggestions or explanations?
Thank you in advance
Kindest regards
Hi,
first update: I found a plugin conflict and now I can see the complete Toolset menu, and I am also seeing all the User Fiels pages not just the first one.
Further investigations in progress.
The plugin (a community plugin) created a conflict with Divi, not with Toolset.
Kind regards
You can manage custom post types registered by other plugins or a theme using Types if they are public, in which case you can create post relationships with them, add Types custom fields etc.
Custom fields created by other plugins are available when you use the Fields and Views button—see screenshot—although that only appears for custom post fields. You can directly insert a wpv-user shortcode and specify the meta key of a user field if you know it. (https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-user)
If custom fields are hidden (field name begins with an underscore) you can go to Toolset > Settings > Front-end Content > Hidden custom fields to expose them within the Toolset GUI.
With that in mind see if you can do what you are aiming for and feel free to post new questions if you have problems.
Hi Nigel,
thank you very much for your answer.
My greates struggle now is why I can´t see in Toolset all the CPT I can see in WP admin area?
If you see in this screenshot there are two folders:
a Directory folder with its posts (Listing, that is simply a record in the directory),
a Question folder, where posts and comments are organized as Questions and Answers, but I guess they´re CPT.
Why I can´t see these CPT in the Toolset dashboard? Am I looking in the wrong place?
Are they maybe just regular Posts with specific additional attributes, and not CPT?
There are probably obvious answers but at this stage it is hard for me to figure out where to search the data I need.
Kindest regards
It may be that the plugin registers the post type privately but still adds it to the dashboard menus.
WooCommerce product and shop-order post types are inaccessible to Types, for example, because of how the post types are registered by WooCommerce. (Hence we need the special compatibility plugin, WooCommerce Views, for Toolset to be able to work with WC products.)
That page from your screenshot that lists questions, you should see in the URL bar a URL parameter which specifies the custom post type (e.g. for WC products you would see wp-admin/edit.php?post_type=product).
If you don't see that post type listed when you visit Toolset > Post Types then it has been registered privately and is inaccessible to Types.