UPDATES EasyBlog 6.0.14 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
Do you need to output total blog post count in your joomla template, anywhere "outside" EasyBlog environment ? Maybe you want to build your own statistics or display your data in a certain way or in a certain location across your site. This query will help you. ;)

Use the code below :p

<?php
$db = JFactory::getDbo();
$query = $db->getQuery(true);
$query = 'SELECT COUNT(1) FROM #__easyblog_post';
$db->setQuery( $query );
$count = $db->loadResult();
echo $count;
?>


This will query the database and display the total posts count for EasyBlog.
To place the total posts count in a joomla template position, use one of the "custom code" modules (one that will run PHP) found in Joomla Extension Directory.

Enjoy ! ;)
The replies under this section are restricted to logged in users or users with an active subscription with us