error when adding other social networks
-
Hi.
This is my site: https://www.piquezine.com
I thought I followed your directions for adding additional social networks correctly, but I’m getting this error:
Missing argument 2 for add_pinterest_link() in/home/content/e/k/z/ekzarkhov/html/piquezine/wp-content/themes/supreme/functions.php on line 258Following is the code I put into my functions.php. I have not yet added the pngs the social networks to the directory you specified. (I have added a second instance for website because I don’t want the default website field to link the author’s name to it.)
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', 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', 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', 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', 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_webiste_link', 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; }
Also, I’m not able to get the author box to show up in the sidebar, unless I put in the widget and then below that I put a text widget with the following shortcode in it.
[wp-biographia]
Thank you!
- The topic ‘error when adding other social networks’ is closed to new replies.