I want to allow our customers add some SEO content on front end. We use Yoast but I did not find any Yoast fields available for Toolset Form for posts. How could we add Yoast fields or edit them by Toolset Form?
Thanks. Unfortunately I don't see posts (please see screenshot). Why it could be and how to fix it? I'm not sure what is "For a post type to be selectable here, it needs to be configured as public, publicly queryable and visible in the GUI." - there is no settings like this in Post post type.
I would like to have our 2nd tier team look at this one for us but would it be possible to perform testing on this site given that it is a staging site?
Secondly I may need to grab a copy of the site as well, would this be ok for me to do ?
I've escalated the ticket to our 2nd tier team for further debugging, however are you able to provide us with your server logs?
We would like to ensure that there isn't any errors in there that could be related to this. It should be noted as well that this issue doesn't occur on a fresh site and i'm able to select the default post type and find the Yoast fields.
Thank you for the patience. Our 2nd tier team has applied the following code to your site and you should now be seeing the Post option appear now.
toolset_snippet_security_check() or die( 'Direct access is not allowed' );
/**
* Make all post types available on Forms screen to manage non-Types fields
*/
add_filter( 'option_wpcf-custom-types', 'ts_blank_cpt_option' );
function ts_blank_cpt_option( $option ){
$screen = get_current_screen();
if ( isset( $screen ) && $screen->id == 'toolset_page_CRED_Fields' ) {
$option = false;
}
return $option;
}
The problem is that it was added to staging, so I have to add it to the production. In the same time it is not good that staging site is not working with critical error. The error is definitely related:
This is happening because the code is set to run on the frontend as well.
On the Toolset custom code settings ensure that Front-end is not checked. I've done this on your staging site so let me know if everything is working well now.
I applied it to production site and run it. But nothing changed in terms of post type visibility in Form manageable fields - I see only 4 post types as before.
I could update staging site with my current production that you will check why it could be. Is it ok for you?