UPDATES EasySocial 4.0.15 Released! Joomla 5.x and PHP 8.x compatible now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is online
Our support specialists is available now. We will attend to you as soon as we can.
  Support is online

PHP conditionnal readmore text

laurent · ·
10:28 PM Wednesday, 01 April 2020
Normal
Hello,

I need a specific text for readmore button for a specific category, i try in default.main.php whith this PHP code

<?php if ($categoryid = 2) {echo 'My custom text';} else {echo JText::_('COM_EASYBLOG_CONTINUE_READING');}?>

but it don't work, an idea ?

Thanks.
The replies under this section are restricted to logged in users or users with an active subscription with us