{"id":6369206,"date":"2015-07-27T10:42:19","date_gmt":"2015-07-27T10:42:19","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/confusing-faq\/"},"modified":"2016-08-30T16:10:17","modified_gmt":"2016-08-30T16:10:17","slug":"confusing-faq","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/confusing-faq\/","title":{"rendered":"Confusing FAQ."},"content":{"rendered":"<p>It&#8217;s a great plugin. I suspect not many people use it because your instructions (FAQ) on how to insert the code is very confusing \ud83d\ude42<\/p>\n<p>You give 2 codes:<\/p>\n<p>CODE 1:<br \/>\n&lt;?php<br \/>\n    $categories = get_the_category();<br \/>\n    $separator = &#8216; \/ &#8216;;<br \/>\n    $output = &#8221;;<br \/>\n    if($categories){<br \/>\n        foreach($categories as $category) {<br \/>\n                $rl_category_color = rl_color($category-&gt;cat_ID);<br \/>\n            $output .= &#8216;<a>term_id ).'&#8221; style=&#8221;color:&#8217;.$rl_category_color.&#8217;;&#8221;&gt;&#8217;.$category-&gt;cat_name.&#8217;<\/a>&#8216;.$separator;<br \/>\n        }<br \/>\n    echo trim($output, $separator);<br \/>\n    }<br \/>\n?&gt;<\/p>\n<p>CODE 2:<\/p>\n<p>&lt;?php<br \/>\n  $categories = get_the_category();<br \/>\n  $separator = &#8221;;<br \/>\n  $output = &#8221;;<br \/>\n  if($categories){<br \/>\n    foreach($categories as $category) {<br \/>\n        $rl_category_color = rl_color($category-&gt;cat_ID);<br \/>\n        $output .= &#8216;&lt;div class=&#8221;featured-cat&#8221; style=&#8221;color:&#8217;.$rl_category_color.&#8217;;&#8221;&gt;&#8217;.$category-&gt;cat_name.'&lt;\/div&gt;&#8217;.$separator;<br \/>\n    }<br \/>\n    echo trim($output, $separator);<br \/>\n  }<br \/>\n?&gt;<\/p>\n<p>And what about themes that do not have &lt;?php the_category(); ?&gt; function? Include a solution to where and which code to use.<\/p>\n<p>As of right now, you are the only one who understands your FAQ, because you know code. The majority of us do not. When you write instructions, try to think like a regular user (and not as a programmer.) You could explain it to someone else and have them write the instructions in a clear way. It&#8217;s OK \ud83d\ude42 <\/p>\n<p>Trust me, if you re-write the FAQ in plain, simple and correct English (have someone proofread what you write) then you will have tons of downloads \ud83d\ude42<\/p>\n<p>It&#8217;s a great plug in. I hope you clarify your FAQ.<\/p>\n<p>Thank you.<\/p>\n<p>https:\/\/wordpress.org\/plugins\/category-color\/<\/p>\n","protected":false},"template":"","class_list":["post-6369206","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6369206","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6369206\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6369206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}