Skip to content

Commit

Permalink
Update amb-dido.php
Browse files Browse the repository at this point in the history
  • Loading branch information
JustusHenke committed May 23, 2024
1 parent f11603f commit b3f392e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion amb-dido.php
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,8 @@ function amb_dido_add_json_ld_to_header() {
'audience' => get_post_meta($post->ID, 'amb_audience', true) ?: $defaults['amb_audience'],
'educationalLevel' => get_post_meta($post->ID, 'amb_educationalLevel', true) ?: $defaults['amb_educationalLevel'],
'aboutSubject' => get_post_meta($post->ID, 'amb_hochschulfaechersystematik', true) ?: $defaults['amb_hochschulfaechersystematik'],
'aboutContext' => get_post_meta($post->ID, 'amb_organisationalContext', true) ?: $defaults['amb_organisationalContext']
'aboutContext' => get_post_meta($post->ID, 'amb_organisationalContext', true) ?: $defaults['amb_organisationalContext'],
'aboutUseCase' => get_post_meta($post->ID, 'amb_didacticUseCase', true) ?: $defaults['amb_didacticUseCase']
];

// Kombinieren der Felder "aboutSubject" und "aboutContext"
Expand All @@ -648,6 +649,9 @@ function amb_dido_add_json_ld_to_header() {
if ($amb_data['aboutContext']) {
$about[] = ["type" => "Concept", "name" => $amb_data['aboutContext']];
}
if ($amb_data['aboutUseCase']) {
$about[] = ["type" => "Concept", "name" => $amb_data['aboutUseCase']];
}


// JSON-LD-Struktur vorbereiten
Expand Down

0 comments on commit b3f392e

Please sign in to comment.