Call slug of categories instead of titles wordpress

Cancelado Postado Jun 11, 2015 Pago na entrega
Cancelado

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.

CSS HTML Design de Sites WordPress

ID do Projeto: #7845272

Sobre o projeto

12 propostas Projeto remoto Ativo em Jun 11, 2015

12 freelancers estão ofertando em média $9/hora nesse trabalho

roonex

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

$22 USD / hora
(233 Comentários)
7.0
sismaster

Hii Sir This is poonam individual freelancer, The description that you have posted is well understood and i am ready to discuses now. Lets start I have strong profile on freelancer. [login to view URL] Mais

$7 USD / hora
(102 Comentários)
5.8
davidballyhoo

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

$11 USD / hora
(7 Comentários)
3.0
programerpk

A proposal has not yet been provided

$11 USD / hora
(2 Comentários)
2.6
harrywalia

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.

$6 USD / hora
(1 Comentário)
3.5
crivionUK

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.

$6 USD / hora
(2 Comentários)
3.0
mesmericbd

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

$6 USD / hora
(0 Comentários)
0.0
webcircle

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.

$6 USD / hora
(1 Comentário)
0.0