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

Getting Category Title When on Blog Post Page

Polished Geek · ·
1:40 AM Saturday, 24 May 2014
None
Sorry to bug you again - I now need code to get the category title and put it in a page that show a post. This relates to http://stackideas.com/forums/can-i-get-the-category-title.

Example page to get category title for (will appear in green bar over image):
http://iemupgrade.polishedgeekdev.com/newsroom/press-releases/iem-supports-eastern-states-in-improving-interoperability-of-incident-management-systems-during-disasters

In my index.php I have this getting the category name for a blog layout:

if ($view == 'categories' && $id) {
$category = EasyBlogHelper::getTable('Category', 'EasyBlogTable');
$category->load($id);

echo '<h3>'.$category->title.'</h3>';
}


I tried this to put the category name on the post page but it doesn't work:

if ($view == 'entry' && $id) {
$category = EasyBlogHelper::getTable('Category', 'EasyBlogTable');
$category->load($id);
echo '<h3>'.$category->title.'</h3>';
}


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