Hi Guust!
So I added a new file called add_new_gd_schema.php in wp-content/plugins using Filezilla FTP and copied the following code snippet you provided in your example located here: https://wpgeodirectory.com/support/topic/schema-type-for-custom-post-type-what-is-schema-type/page/3/#post-122410 and saved it and refreshed my cache in Google Chrome and even opened up a new browser login in FireFox and when I navigate to the “Place” categories, I’m not seeing the new schema for Product or Offers.
<?php
/*
Plugin Name: Add new GD Schema
Plugin URI: https://wpgeodirectory.com/
Description: This plugin adds new category Schemas to GeoDirectory Categories.
Author: GeoDirectory Team
Author URI: https://wpgeodirectory.com/
License: GPLv2 or later
*/
add_filter(‘geodir_cat_schemas’, ‘add_new_schema’,10,1);
function add_new_schema($schemas){
//add new schemas
$schemas[‘Product’] = ‘Product’;
$schemas[‘Offer’] = ‘Offer’;
ksort($schemas);// sort array a-z
return $schemas;
}
Please explain how to make this work…?
Thank you,
Robert