/**
 * Get all html <meta>
 *
 * @author Neil Carpenter
 * @returns Array
 *
 */
function nc_get_meta($id)
{
    $post_type = get_post_type($id);
    $meta = array();
    $meta['title'] = _get_title($id, $post_type);
    $meta['keywords'] = _get_keywords($id, $post_type);
    $meta['description'] = _get_description($id, $post_type);
    $meta['url'] = _get_url($id, $post_type);
    $meta['image'] = _get_image($id, $post_type);
    return $meta;
}
Beispiel #2
0
function _the_image($name = '', $format = 'url', $sub = false, $opt = false)
{
    echo _get_image($name, $format, $sub, $opt);
}