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.

技能: PHP, WooCommerce, WordPress

查看更多: 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

( 9个评论 ) Jelenino, Poland

项目ID: #11790394



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 更多

zł75 PLN 在1天内

14 威客就此工作平均出价 zł75


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ł50PLN 在1天里

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 更多

zł35 PLN 在0天内

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 更多

zł75PLN 在1天里

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 更多

zł70PLN 在1天里

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 更多

zł90PLN 在1天里

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 更多

zł100PLN 在1天里

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 更多

zł75PLN 在1天里
zł105PLN 在1天里

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

zł75PLN 在1天里

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 更多

zł75PLN 在1天里
zł75PLN 在1天里

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 更多

zł75PLN 在1天里

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

zł75PLN 在1天里