{"id":616,"date":"2011-03-17T14:11:24","date_gmt":"2011-03-17T12:11:24","guid":{"rendered":"http:\/\/www.kavdesign.net\/blog\/?p=616"},"modified":"2011-03-17T14:14:00","modified_gmt":"2011-03-17T12:14:00","slug":"wordpress-facebook-like-button-plugin-doesnt-show-on-category-and-tag-pages","status":"publish","type":"post","link":"https:\/\/www.kavdesign.net\/blog\/coding\/wordpress-facebook-like-button-plugin-doesnt-show-on-category-and-tag-pages\/","title":{"rendered":"WordPress Facebook like button plugin doesn&#8217;t show on category and tag pages"},"content":{"rendered":"<p>I&#8217;m using this one:<\/p>\n<p><a href=\"http:\/\/wordpress.org\/extend\/plugins\/fblikebutton\/\" target=\"_blank\">FaceBook Like Button Plugin for WordPress<\/a><\/p>\n<p>by <a href=\"http:\/\/healyourchurchwebsite.com\/2010\/04\/22\/the-facebook-like-button-plugin-for-wordpress\/\" target=\"_blank\">http:\/\/healyourchurchwebsite.com\/2010\/04\/22\/the-facebook-like-button-plugin-for-wordpress\/<\/a><\/p>\n<p>But there in one limitation. It doesn&#8217;t show the button on the category archive view and on the tag archive view pages. Probably in some cases it is good, but in others it&#8217;s better to show it.<\/p>\n<p>So in order to do this go to the plugin files and open fblike_content_filter.php<\/p>\n<p>On line 12 there is:<\/p>\n<pre>if( \u00a0\u00a0\u00a0 (is_front_page() &amp;&amp; $fblike_settings_show_on_front_page == 'true') ||\r\n (is_single() &amp;&amp; $fblike_settings_show_on_single_post == 'true') ||\r\n (is_page() &amp;&amp; $fblike_settings_show_on_single_page == 'true') )\r\n {<\/pre>\n<p>Add two more lines so it will become like this:<\/p>\n<pre>if( \u00a0\u00a0\u00a0 (is_front_page() &amp;&amp; $fblike_settings_show_on_front_page == 'true') ||\r\n (is_single() &amp;&amp; $fblike_settings_show_on_single_post == 'true') ||\r\n (is_category() &amp;&amp; $fblike_settings_show_on_front_page == 'true') ||\r\n (is_tag() &amp;&amp; $fblike_settings_show_on_front_page == 'true') ||\r\n (is_page() &amp;&amp; $fblike_settings_show_on_single_page == 'true') )\r\n {\r\n<\/pre>\n<p>Additional info on the WordPress conditional tags can be found here:<br \/>\n<a href=\"http:\/\/codex.wordpress.org\/Conditional_Tags\" target=\"_blank\">http:\/\/codex.wordpress.org\/Conditional_Tags<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m using this one: FaceBook Like Button Plugin for WordPress by http:\/\/healyourchurchwebsite.com\/2010\/04\/22\/the-facebook-like-button-plugin-for-wordpress\/ But there in one limitation. It doesn&#8217;t show the button on the category&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/www.kavdesign.net\/blog\/coding\/wordpress-facebook-like-button-plugin-doesnt-show-on-category-and-tag-pages\/\">Continue reading<span class=\"screen-reader-text\">WordPress Facebook like button plugin doesn&#8217;t show on category and tag pages<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[9,82],"tags":[164,166,162,165,163,124,143,418],"class_list":["post-616","post","type-post","status-publish","format-standard","hentry","category-coding","category-wordpress","tag-button","tag-category","tag-facebook","tag-facebook-like-button","tag-like","tag-plugin","tag-tag","tag-wordpress","entry"],"_links":{"self":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts\/616","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/comments?post=616"}],"version-history":[{"count":3,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts\/616\/revisions"}],"predecessor-version":[{"id":618,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts\/616\/revisions\/618"}],"wp:attachment":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/media?parent=616"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/categories?post=616"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/tags?post=616"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}