Schema Types are very limited

This topic contains 6 replies, has 2 voices, and was last updated by  Paolo 7 years, 2 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #353308

    tydbyte
    Expired Member
    Post count: 18

    The current selection of Schema Types is very limited as can be seen from the list at Schema.org https://schema.org/docs/full.html.

    Is there an easy way to add schema types for education, government and so forth such as:

    EducationalOrganization
    CollegeOrUniversity
    ElementarySchool
    HighSchool
    MiddleSchool
    Preschool
    School
    GovernmentOrganization

    I have seen a thread about this but I didn’t find that I could really follow it.

    Thanks.

    #353518

    Paolo
    Site Admin
    Post count: 31206
    #353584

    tydbyte
    Expired Member
    Post count: 18

    Thanks.

    I have read through that thread and quite frankly it has me going around in circles.

    I do not understand precisely, step by step, what I would need to do to add Schema Types. Probably a piece of cake if I were writing php code on a regular basis but I am not.

    I don’t understand why being able to add the Schema Types that we need to use isn’t simply part of the GeoDirectory Custom Post Types plugin that I am using.

    I am feeling somewhat frustrated about this. 🙂

    #354004

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    it’s very simple, you need to create a file called add_new_gd_schema.php for example and paste this code in it:

    https://gist.githubusercontent.com/Stiofan/6547561ed35da6a82e56/raw/ccaa5162aadc2bb085c677a655d2a1ff62ede25b/add_new_gd_schema.php

    After that you need to edit this 2 lines to add the correct schemas:

    
    
    $schemas['NewSchema'] = 'NewSchema';
    $schemas['AnotherNewSchema'] = 'AnotherNewSchema';

    If for example you want to add the following 2 schemas:

    EducationalOrganization
    CollegeOrUniversity

    You’ll need to modify the 2 lines as such:

    
    
    $schemas['EducationalOrganization'] = 'EducationalOrganization';
    $schemas['CollegeOrUniversity'] = 'CollegeOrUniversity';

    If you need to add more schemas, just add more of the above lines accordingly.

    Once your file is complete upload it as any other plugin and activate it.

    Hope it’s clearer now.

    Thanks

    #354038

    tydbyte
    Expired Member
    Post count: 18

    Thank you so much.

    Now I understand what I need to do.

    #354044

    Paolo
    Site Admin
    Post count: 31206

    You are welcome 🙂

    #354045

    Paolo
    Site Admin
    Post count: 31206

    p.s. if you upload the plugin via Plugins >> Add New you need to zip that file 1st. Otherwise upload it via FTP.

    Thanks

Viewing 7 posts - 1 through 7 (of 7 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket