521390 Create codex for WP for visibile principal single category i

Hello, I have a word press blog where I want appear in the pages of the post is a clickable link to the main category.

I tried different codes but no official does what I want. That is to make visible and clickable link to the single main category where you put a particular post.

For example, I tried the code: <?php the_category(' '); ?>

But this makes all the categories that includes the post and I want it to be visible only that specific.

A good result was obtained using the following code:


$category = get_the_category();

echo $category[0]->cat_name;


This brings up only one category, and only one reference. But the name is not clickable. But I want it to be clickable and leading to the reference category.

I hope that I explained, otherwise contact me


Beceriler: Her şey Kabul, Blog, PHP, WordPress

Daha fazlasını gör: wordpress official, wordpress codex, echo press, codex wordpress, official wordpress, wordpress create post, principal contact, blog category post, create clickable, wordpress create blog, wordpress category name, wordpress post clickable, create php codes, link specific blog post, contact category, single pages wordpress, make pages wp, create wp blog, create word php, create categories php, wordpress specific category, wordpress blog specific post, php category, php create word, code create good php

İşveren Hakkında:
( 21 değerlendirme ) pisa, Italy

Proje NO: #2267328



Ready to do it immediately mate!

%selectedBids___i_period_sub_7% gün içinde 50%project_currencyDetails_sign_sub_9% %project_currencyDetails_code_sub_10%
(328 Değerlendirme)