nican VIP
Total posts: 392
16 Jun 2014 14:32

Hello, please help me debug this

<h3>Article published in <?php echo($item->categories_links)?></h3>

the php part of the code is not woking (and that's because I am no php expert at all)

I know I could use <?php echo implode(' ', $category);?> but this generate the "category:" text automatically, whcih I want to avoid

thank you

Last Modified: 17 Jun 2014


pepperstreet VIP
Total posts: 3,837
16 Jun 2014 20:45

Actually, the implode should work... as far as i can see it is the same code in Forum-Pack/article view template. It should be an "array" with all applied categories names in it. There should be no extra text/label.

Please, try this:

<h3>Article published in <?php echo implode(', ', $item->categories_links);?></h3>

nican VIP
Total posts: 392
17 Jun 2014 08:47

Thanks! it worked perfectly

Powered by Cobalt