• Resolved SottoVoce

    (@sottovoce)


    I am creating a TechArticle schema for certain types of posts and I have found that when I want to modify the schema output using Schema Types -> Modify Schema Output, I can’t choose the “sameAs” option using the drop-down list, as it doesn’t exist.

    I would like to add two or more links to reference Wikipedia and Wikidata, but I have no way to do it using the plugin interface. Is it possible to achieve this in some other way?

    I hope you can help with this.

    Thank you in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Magazine3

    (@magazine3)

    Hi, Regarding this, We are raised the GitHub ticket in our repository. We will add this SameAs feild in the TechArticle schema and get back to you once it gets done.

    Here is the reference GitHub link to track the updates: https://github.com/ahmedkaludi/schema-and-structured-data-for-wp/issues/1905

    Thread Starter SottoVoce

    (@sottovoce)

    Hi,

    Thank you for adding it to the list of problems. I hope your team will be able to solve it soon, as it would be a great help.

    I have solved it for now by adding:

    In /output/service.php I added

    if(isset($custom_fields['saswp_tech_article_same_as'])){
    $input1['SameAs'] = $custom_fields['saswp_tech_article_same_as'];
    }

    to

    case 'TechArticle':

    And in /core/array-list/schema-properties.php I added

    if(isset($custom_fields['saswp_tech_article_same_as'])){
    $input1['SameAs'] = $custom_fields['saswp_tech_article_same_as'];
    }

    to

    case 'TechArticle': as well.

    The only problem with this solution is that I will lose it if I update the plugin. Do you think there is a way to apply this patch using an external file?

    Thanks!

    • This reply was modified 1 year, 11 months ago by SottoVoce. Reason: Spelling correction
    Plugin Author Magazine3

    (@magazine3)

    Hi, We have added this feature to the next milestone 1.14 with high priority. We will add this and get back to you with the update once we have done with it. So kindly please wait till update.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add sameAs field to TechArticle schema’ is closed to new replies.