WooCommerce - show only parent category title

I have a very simple job.

This script displays in my shop categories to which the product belongs.:

global $post, $product;

$cat_count = sizeof( get_the_terms( $post->ID, 'product_cat' ) ); ?>

<div class="cat_title"><?php echo $product->get_categories( ', ', '<span class="posted_in">' . _n( '', '', $cat_count, 'woocommerce' ) . ' ', '</span>' );?></div>

I want to list the name ONLY parent category, without sub-categories.

Currently, the script displays a parent category and its subcategories. Must display only parent category.

Skills: PHP, WooCommerce, WordPress

See more: want to find php developer in trivandrum, preetileen want in different style and design, n sathiyamoorthy auditors in t nagar, mumbai want in dubai mechanical engineering job, how much money do editors want in south africa, how to predict how many employees you want in the future, woocommerce category parent, wordpress category parent, wordpress sub category parent, category pagination woocommerce, create product category page woocommerce, category description woocommerce, find product category description woocommerce, add header image category pages woocommerce, product category template woocommerce, category page woocommerce wordpress, category descriptions woocommerce, oscommerce add category parent begining urls, custom title category wordpress, add title category oscommerce, oscommerce title category, oscommerce category parent, add category parent begining urls

About the Employer:
( 9 reviews ) Jelenino, Poland

Project ID: #11790394

Awarded to:


Thank you so much for this great opportunity. I have 9+ years of experience in this field and can provide you my past work sample. I am an expert in WordPress, Magento, Joomla, PSD to HTML conversion, LOGO Desigi More

zł75 PLN in 1 day
(46 Reviews)

14 freelancers are bidding on average zł75 for this job


Hi Gone throug you requirement. I want you check my profile and reviews of my customers. Hope you will be one of them soon. We belive in total professionalism. Waiting for your reply. Subrata

zł50 PLN in 1 day
(169 Reviews)

Hello, My name is Lakhan, I have a vast working experience in WordPress website development and have developed number of WordPress Themes in my career. I have been using foundation and bootstrap for Making Responsive More

zł35 PLN in 0 days
(162 Reviews)

Hi, Greetings of the day!! Thanks for review my Bid. I have gone through from your description and can do this work comfortably. Please open this PMB. Waiting for your response!! Regards, Dinesh More

zł75 PLN in 1 day
(69 Reviews)

Hi there, I have gone through your project requirements in details and I am looking forward to discuss about this project. We are an experienced and dynamic team of designers/ programmers, expertise in php,wordpress,Ht More

zł70 PLN in 1 day
(155 Reviews)

Hello buyer, I have more than 7 years experience in Web Design & Development. Dedicated to Wordpress, Joomla, HTML5, CSS3, E-Commerce-Websites, PHP, MySQL and Responsive design. Lets discuss more on chat window. Po More

zł90 PLN in 1 day
(76 Reviews)

Hello There, Hope you're doing well. We are handling the server with 6+ years of excellence in hosting business with various clients and our services are, [login to view URL] Troubleshoot [login to view URL] Configurtion [login to view URL] P More

zł100 PLN in 1 day
(86 Reviews)

Hi , I have created & customized more than 50 around PHP scripts for my client . I have good experience in nodejs , javascript & PHP scripts . I have made PHP scripts as per client requirements. you can se More

zł75 PLN in 1 day
(78 Reviews)
zł105 PLN in 1 day
(45 Reviews)

I read through the job details extremely carefully and I am absolutely sure that I can do the project very well.

zł75 PLN in 1 day
(48 Reviews)

We believe our experience with Web Development and WordPress and how to use it to suite people’s unique business needs makes us a viable choice to help you get your website launched and working for you just the way you More

zł75 PLN in 1 day
(3 Reviews)
zł75 PLN in 1 day
(1 Review)

Hi, I'm a front end & web developer and I have more than 6 year experience.I have more experiences in CSS,HTML and PSD to HTML I am also working in a site for update ie App Designing, Template designing, landing Page More

zł75 PLN in 1 day
(1 Review)

Hi, Greetings! -------------------------------------------------------- I have gone through your requirement and understand project requirement. We are software professionals and having expertise in Wordpres More

zł75 PLN in 1 day
(0 Reviews)