Example #1
0
function author_meta_tags()
{
    $final = array();
    $meta_prefix = meta_prefix();
    $final[] = $meta_prefix . "hashtag_1";
    $final[] = $meta_prefix . "hashtag_2";
    $final[] = $meta_prefix . "hashtag_3";
    $final[] = $meta_prefix . "website";
    $final[] = $meta_prefix . "twitter";
    $final[] = $meta_prefix . "facebook";
    $final[] = $meta_prefix . "instagram";
}
Example #2
0
function author_meta_tags()
{
    $final = array();
    $meta_prefix = meta_prefix();
    $i = 0;
    $final[$i]['name'] = $meta_prefix . "hashtag_1";
    $final[$i]['label'] = "Hashtag #1";
    $final[$i]['description'] = "Enter your first hashtag";
    $i++;
    $final[$i]['name'] = $meta_prefix . "hashtag_2";
    $final[$i]['label'] = "Hashtag #2";
    $final[$i]['description'] = "Enter your second hashtag";
    $i++;
    $final[$i]['name'] = $meta_prefix . "hashtag_3";
    $final[$i]['label'] = "Hashtag #3";
    $final[$i]['description'] = "Enter your third hashtag";
    $i++;
    $final[$i]['name'] = $meta_prefix . "website";
    $final[$i]['label'] = "Website Link";
    $final[$i]['description'] = "Enter a link to your personal website";
    $i++;
    $final[$i]['name'] = $meta_prefix . "twitter";
    $final[$i]['label'] = "Twitter";
    $final[$i]['description'] = "Your Twitter handle";
    $i++;
    $final[$i]['name'] = $meta_prefix . "facebook";
    $final[$i]['label'] = "Facebook";
    $final[$i]['description'] = "Your Facebook profile link";
    $i++;
    $final[$i]['name'] = $meta_prefix . "instagram";
    $final[$i]['label'] = "Instagram";
    $final[$i]['description'] = "A link to your Instagram feed";
    $i++;
    $final[$i]['name'] = $meta_prefix . "linkedin";
    $final[$i]['label'] = "LinkedIn";
    $final[$i]['description'] = "A link to your LinkedIn profile";
    return $final;
}
Example #3
0
<!DOCTYPE html>
<html>
    <body class="full-body-tan">
        <?php 
get_header();
?>
        <?php 
$meta_prefix = meta_prefix();
$author = get_user_by('slug', get_query_var('author_name'));
$meta_fields = get_author_custom_meta($author->ID);
//pd($meta_fields);
?>
        <div data-ix="tags-menu-origin" class="w-hidden-small w-hidden-tiny tags-drop">
            <div class="drop-div">
                <h1 class="drop-header">Explore Tags</h1>
                <a href="tags.html" class="see-all-tags">See all Tags</a>
                <div class="w-clearfix facebook-div">
                    <img width="60" src="/wp-content/themes/wishdish/images/567ef0471a7aef7170724cb6_WD.jpg" class="wish-dish-icon">
                    <div class="w-embed facebook-like">
                        <div class="fb-like" data-href="https://www.facebook.com/thewishdish" data-width="500" data-layout="standard" data-action="like" data-show-faces="true" data-share="false"></div>
                    </div>
                </div>
            </div>
            <div class="w-dyn-list communities-list">
                <div class="w-dyn-items w-row w-clearfix">
                    <div class="w-dyn-item w-col w-col-3 tags-link">
                        <a class="tags-link"></a>
                    </div>
                </div>
                <div class="w-dyn-empty w-clearfix empty-state">
                    <p class="empty-state-text">No items found.</p>
Example #4
0
// Print and die
function pd($mixed)
{
    echo "<pre>";
    var_dump($mixed);
    echo "</pre>";
    die;
}
// Enqueue all header scripts
function vtms_enqueue_scripts()
{
    wp_enqueue_style('parent', get_template_directory_uri() . '/stylesheets/styles.css', array(), get_current_version());
}
add_action('wp_enqueue_scripts', 'vtms_enqueue_scripts');
/* ---------------------------------- TAXONOMY META */
$tax_meta_prefix = meta_prefix();
$config = array('id' => 'category-meta', 'title' => 'Category Meta Box', 'pages' => array('category'), 'context' => 'normal', 'fields' => array(), 'local_images' => false, 'use_with_theme' => true);
$cat_meta = new Tax_Meta_Class($config);
// Category Color
$cat_meta->addText($tax_meta_prefix . 'color', array('name' => __('color', 'tax-meta')));
// Category Featured Image
$cat_meta->addFile($tax_meta_prefix . 'image', array('name' => __('image', 'tax-meta')));
/* ---------------------------------- (end) TAXONOMY META */
/* ---------------------------------- GET CATEGORY META */
function get_category_meta($post_id = NULL, $cat_id = NULL)
{
    // Return array
    $final = array();
    // All category IDs
    $categories = wp_get_post_categories($post_id);
    if (isset($categories[0]) || !is_null($cat_id)) {