Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter piquezine

    (@piquezine)

    That worked! And I did want to have that second instance of “website.” The standard website link ends up linking the author name in the post details to that external site, and we didn’t want that. I ended up adding a “publisher” link for the authors too.

    This plugin is great! And your support has been really helpful. Thank you!

    Thread Starter piquezine

    (@piquezine)

    Hmmmm… So this is what happened:

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘add_website_link’ was given in /home/content/e/k/z/ekzarkhov/html/piquezine/wp-includes/plugin.php on line 199

    Warning: Invalid argument supplied for foreach() in /home/content/e/k/z/ekzarkhov/html/piquezine/wp-content/plugins/wp-biographia/wp-biographia.php on line 1572

    This is the code I inserted with your syntax change. Did I do that right? Apparently not. :\

    add_filter ('wp_biographia_contact_info', 'add_pinterest_support');
    
    function add_pinterest_support ($contacts) {
        // contacts = array (field => array (field => field-name, contactmethod => description))
        $contacts['pinterest'] = array (
            'field' => 'pinterest',
            'contactmethod' => __('Pinterest')
        );
    
        return $contacts;
    }
    
    add_filter('wp_biographia_link_items', 'add_pinterest_link', 10, 2);
    
    function add_pinterest_link ($links, $icon_dir_url) {
        // links = array (field => array (link_title => title, link_text => text, link_icon => URL)
        $links['pinterest'] = array (
            'link_title' => __('Pinterest'),
            'link_text' => __('Pinterest'),
            'link_icon' => $icon_dir_url . 'pinterest.png'
            );
    
            return $links;
    }
    
    add_filter ('wp_biographia_contact_info', 'add_tumblr_support');
    
    function add_tumblr_support ($contacts) {
        // contacts = array (field => array (field => field-name, contactmethod => description))
        $contacts['tumblr'] = array (
            'field' => 'tumblr',
            'contactmethod' => __('tumblr')
        );
    
        return $contacts;
    }
    
    add_filter('wp_biographia_link_items', 'add_tumblr_link', 10, 2);
    
    function add_tumblr_link ($links, $icon_dir_url) {
        // links = array (field => array (link_title => title, link_text => text, link_icon => URL)
        $links['tumblr'] = array (
            'link_title' => __('tumblr'),
            'link_text' => __('tumblr'),
            'link_icon' => $icon_dir_url . 'tumblr.png'
            );
    
            return $links;
    }
    
    add_filter ('wp_biographia_contact_info', 'add_goodreads_support');
    
    function add_goodreads_support ($contacts) {
        // contacts = array (field => array (field => field-name, contactmethod => description))
        $contacts['goodreads'] = array (
            'field' => 'goodreads',
            'contactmethod' => __('goodreads')
        );
    
        return $contacts;
    }
    
    add_filter('wp_biographia_link_items', 'add_goodreads_link', 10, 2);
    
    function add_goodreads_link ($links, $icon_dir_url) {
        // links = array (field => array (link_title => title, link_text => text, link_icon => URL)
        $links['goodreads'] = array (
            'link_title' => __('goodreads'),
            'link_text' => __('goodreads'),
            'link_icon' => $icon_dir_url . 'goodreads.png'
            );
    
            return $links;
    }
    
    add_filter ('wp_biographia_contact_info', 'add_amazon_support');
    
    function add_amazon_support ($contacts) {
        // contacts = array (field => array (field => field-name, contactmethod => description))
        $contacts['amazon'] = array (
            'field' => 'amazon',
            'contactmethod' => __('Amazon')
        );
    
        return $contacts;
    }
    
    add_filter('wp_biographia_link_items', 'add_amazon_link', 10, 2);
    
    function add_amazon_link ($links, $icon_dir_url) {
        // links = array (field => array (link_title => title, link_text => text, link_icon => URL)
        $links['amazon'] = array (
            'link_title' => __('Amazon'),
            'link_text' => __('Amazon'),
            'link_icon' => $icon_dir_url . 'amazon.png'
            );
    
            return $links;
    }
    
    add_filter ('wp_biographia_contact_info', 'add_website_support');
    
    function add_website_support ($contacts) {
        // contacts = array (field => array (field => field-name, contactmethod => description))
        $contacts['website'] = array (
            'field' => 'website',
            'contactmethod' => __('website')
        );
    
        return $contacts;
    }
    
    add_filter('wp_biographia_link_items', 'add_website_link', 10, 2);
    
    function add_webiste_link ($links, $icon_dir_url) {
        // links = array (field => array (link_title => title, link_text => text, link_icon => URL)
        $links['website'] = array (
            'link_title' => __('website'),
            'link_text' => __('website'),
            'link_icon' => $icon_dir_url . 'website.png'
            );
    
            return $links;
    }

    Thread Starter piquezine

    (@piquezine)

    Thanks for the prompt reply. I’ll have to check it out when I get home. Massive help! ??

    On the second point, when I’m home I’ll investigate so I can be more specific in my question. It’s working, but not as it should be.

Viewing 3 replies - 1 through 3 (of 3 total)