Add custom field to header

Posted in: Newsmag
Post count: 1

Hi, i will add schema with custom field, but not working, pls help

This is my code on header.php

<?php
$aggregaterating = get_post_meta(get_the_ID(), ‘aggregaterating’, true);
if(!empty($aggregaterating)) {
echo $aggregaterating;
}
?>

Post count: 35449

Hi,

If that code need to be set in header.php, please make sure that you set the code in wp-content/plugins/td-composer/legacy/Newsmag/header.php -> http://prntscr.com/pm24gk

Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newsmag’ is closed to new topics and replies.