In Progress

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: sathiyamoorthy auditors nagar, woocommerce category parent, wordpress category parent, wordpress sub category parent, category pagination woocommerce, category description woocommerce, product category template woocommerce, category page woocommerce wordpress, category descriptions woocommerce, oscommerce category parent

About the Employer:
( 9 reviews ) Jelenino, Poland

Project ID: #11790394

Awarded to:

artiboria

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
(27 Reviews)
4.7

15 freelancers are bidding on average zł73 for this job

durgesh8527

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
(46 Reviews)
6.0
pinakisen2014

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
(78 Reviews)
5.5
ersharmadinesh19

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
(26 Reviews)
5.2
subratadev

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
(69 Reviews)
5.3
shashankkani

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
(31 Reviews)
5.4
psubramonian

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, [url removed, login to view] Troubleshoot [url removed, login to view] Configurtion [url removed, login to view] P More

zł100 PLN in 1 day
(59 Reviews)
5.2
junaidgulzar0786

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
(43 Reviews)
4.8
zł105 PLN in 1 day
(31 Reviews)
4.1
phpmastercoder

Hi, I am master developer, I have worked with all the techs eg. Joomla, Wordpress, Magento ,Prestashop, Opencart, zencart, shopify, I really in need of Work. I have read the Project description, I am very much co More

zł40 PLN in 1 day
(29 Reviews)
3.4
jasphineinfotech

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)
2.9
zł75 PLN in 1 day
(1 Review)
3.0
lakhankaushal

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
(10 Reviews)
2.5
kashifunisol

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)
0.0
sktseema15

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)
0.0