jimie VIP
Total posts: 531
29 Май 2014 11:13

Hello Sergey

Can you tell me how I can display the number of bookmarks an aricle has ? ( How many people bookmarked that article )

rgds

Последние изменения: 16 Фев 2023


Sergey
Total posts: 13,748
29 Май 2014 23:06

Look in a template. Every template has that.

<?php echo $item->favorite_num;?>

angelicguidance
Total posts: 1
16 Фев 2023 18:21

Sergey Look in a template. Every template has that. 5050 angel number

<span class="xml"><span class="php"><span class="hljs-preprocessor">&lt;?php</span> <span class="hljs-keyword">echo</span> <span class="hljs-variable">$item</span>-&gt;favorite_num;<span class="hljs-preprocessor">?&gt;</span></span>
</span>

The code is not working. I can't see the number of bookmarks people made. Could you please recheck it and submit a new one that is working?

Работает на Cobalt