Example #1
0
/**
 * Echo Meta Data
 *
 * Echo a single string value gotten from acpt_meta().
 *
 * @param string $name
 * @param string $fallBack
 * @param bool $groups
 * @param null $id
 */
function e_acpt_meta($name = '', $fallBack = '', $groups = true, $id = null)
{
    $data = acpt_meta($name, $fallBack, $groups, $id);
    $fallBack !== '' ? true : ($fallBack = 'No string data ' . $name);
    is_string($data) ? true : ($data = $fallBack);
    echo $data;
}
Example #2
0
function acpt_seo_description()
{
    global $post;
    $seo = esc_attr(acpt_meta('[seo][meta][acpt_seo_description]'));
    if (!empty($seo)) {
        echo "\t<meta name=\"Description\" content=\"{$seo}\" />\n";
    }
}