Need some help with this Code

Started by responsiveceo, 02-21-2019

544
0
Need some help with this Code
  02-21-2019, 11:57 PM
#1
I use this one on my widgets to shows the taxonomy of the posts, the tag is not just letters it have a shape. I cant find a solution to just show 1 taxonomy (top level) instead every of them.

I've tried get_category instead of get_category_list, but then it just return letters and ignore the shape


PHP Code:
if ('post' === get_post_type()) {
            $categories_list get_the_category_list($separator);
            if ($categories_list) {
                printf('<span class="category-links">' esc_html__(' %1$s''') . '</span>'$categories_list);
            }
        }
    

any idea? thanks !

« Next Oldest | Next Newest »


Possibly Related Threads…
Thread Author Replies Views Last Post
Need advice on how to bypass Envato activation, install Phlox Pro? Becks 0 22 09-16-2021, 03:50 AM
Last Post: Becks
Help in Creating Custom Image Xenforo Badges arjoe_ajfc 0 22 09-09-2021, 09:02 PM
Last Post: arjoe_ajfc
How to detect Malicious code in nulled or Free WordPress Themes and Plugins ism22 76 8,260 08-29-2021, 02:58 PM
Last Post: heavyjay
need islamic calligraphy TBAhsan 3 55 08-29-2021, 12:54 PM
Last Post: heavyjay
HELP! I need a plugin against Adblock (A message to warn users) GustavMahler 0 37 07-07-2021, 02:33 PM
Last Post: GustavMahler
Need twitch prime subscription Working bin Jonsnow 1 729 06-06-2021, 08:02 AM
Last Post: Bucanero
OceanWP Some help on Demo Site psvialli 4 200 05-21-2021, 12:24 PM
Last Post: z1gzag
TheGem 3.7.0 Help! 53cur3m0d3 8 3,199 04-01-2021, 12:57 PM
Last Post: yasserthethief
I need help from you guys. please do not ignore this. JomoHoney 12 916 03-12-2021, 08:19 PM
Last Post: BKUp
Mybb Help. Sagex 1 117 03-12-2021, 08:57 AM
Last Post: HEADSPACE



1 Guest(s)