you need to be more specific about what youre trying to do.
OK,
I want to display the category title by using category ID (out side the loop).
Now, I get what I want by using this code:
<?php echo get_the_category_by_id(10); ?>
which 10 is the ID of category.
But, something missing !
How could I get the link for the category using the ID .. the same situation like the title, but now i want the link ? How ??
Thanks in advance.
^
^
Thanks, but its not helping!
because i looking for category by ID (as i explain before)! not for existing gategory!
I found what i want!
here:
http://codex.wordpress.org/Function_Reference/get_category_link
by using the following code:
<a href=" <?php echo get_category_link(10);?> ">category name</a>
where 10 is the category ID
Thanks Docs 😉
thanks mr marwan.ae
i have the same problem on my design, and now it’s solved by your post 😀