Call slug of categories instead of titles wordpress
$6-7 USD / hora
Hi, I have a portfolio script and I need to apply some css sytling, as a result I need to call all the category slugs for each post in the loop and use them as the class.
I'm using this script to call all the category titles, but since there is spacing I can't use it for the css class:
<?php
$terms = get_the_terms( $post->ID , 'production_type' );
foreach ( $terms as $term ) {
echo $term->name;
}
?>
Basically need the same things but slugs instead of the category titles.
ID do Projeto: #7845272
Sobre o projeto
12 freelancers estão ofertando em média $9/hora nesse trabalho
The spacing can be easy removed or added to the category name or slug with php. Can do this very quick, will need FTP access. Thanks
We have dedicated team for Java, PHP, Ruby on Rails, Mobile Apps ( iOS, iPad, Android), Organic SEO and SMM and digital Marketing, and we have developed and deployed multiple scalable applications on various PHP framew Mais
This is a simple code for ur its not too much work. just we have to change the query. Please share the details with us about the website. URL and FTP.
replace echo $term->name; with echo $term->slug; that's all you need. that's all you need. that's all you need. that's all you need. that's all you need. that's all you need.
Hi, Thank you very much for posting this job and I’m very much interested as the job requirement is a well match with my skills that I have. It will be a great pleasure for me to work with you if I get an opportu Mais
I am having 7 years of experience in web development and have worked on many wordpress projects. Please provide me the details and I can start immediately.