Open mj00712 opened 4 years ago
Hello, You could remove "&& !is_page()".I think it should work then.
<?php $schema = get_post_meta(get_the_ID(), 'schema', true); if(!empty($schema) is_single() && is_singular()) { echo $schema; } ?>
Is this correct?
if(!empty($schema) && is_single() && is_singular()) {
Tried but didn't work
I have used the schema code in a page custom field but it is not working there.
Originally posted by @mj00712 in https://github.com/gehwissenlos/schemaorg-custom-field/issues/1#issuecomment-547030723