Hi guys,
I could really use some help! I need to make a button which points to a page containing posts from one category (e.g. Mobile, IT). That button should be near the posts titles, so on home page the button should link to every post's category . That button should have the text "More" (e.g.) not the category name - just to understand the problem. I used the code below to do that, but this points me to an URL like 'www.example.com/category/mobile' . Is there any way to point it directly to 'www.example.com/mobile', which displays the same thing as 'www.example.com/category/mobile'.
<?php $cat = get_the_category(); $cat = $cat[0]; echo get_category_link($cat->cat_ID); ?>
Any help would be appreciated! :)