Add custom category to excerpt

Posted in: Newspaper
Post count: 5

Hello,
I’ve add a custom category at the begin of content of posts.
And to do this I’ve added a function in loop-single.php.
Row 52

<!–<?php echo $td_mod_single->get_content();?>–>

<!– MODIFICA LOCALITÁ–>

<?php
$citta = “<div style=’float:left; padding-right: 5px; text-transform:uppercase;’ id=citta;>” . get_the_term_list( $post->ID, ‘localita’, ”, ‘, ‘, ‘.’ ) . “</div>”;
$contenuto = “<div id=contenuto;>” . $td_mod_single->get_content() . “</div>”;
echo $citta . $contenuto;
?>

Now, I would like add the custom category in excerpts in homepage. What can I do?

My site is http://www.infermierinews.it

Thank you so much.

Best regards,

Sara

Post count: 23312

Hello sara,

We have not tested any implementation regarding on adding the category in excerpts, sorry! As you want to achieve involves doing such custom work and we cannot provide this kind of services at the moment, sorry!

Thanks for your understanding!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.