Devam Ediyor

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:

<?php

$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

thanks

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

Daha fazlasını görün: 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

Seçilen:

wpdreamersl

Ready to do it immediately mate!

0 gün içinde 50$ USD
(328 Değerlendirme)
7.5