By Polished Geek on Wednesday, 14 May 2014
Posted in General Issues
Likes 0
Views 1.1K
Votes 0
On this page:

http://iemupgrade.polishedgeekdev.com/newsroom/press-releases/categories/press-release

I want to get the category title "Press Releases" into that green bar above the title. That green bar is coded into the template's index.php. In other places around the site the green bar is filled with the article's title or category, but for this page I need the Easyblog category.

Can you give me some code to stick in the green bar code to call up the category title for the page it is on?

Thanks!
Hello Deborah,

I am really sorry for the delay of this reply as it is actually a public day off for us here. Sure, try this code,

·
Wednesday, 14 May 2014 03:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Works very well thank you Can I now get some code to display the individiual blog's title? Like for this page:

http://iemupgrade.polishedgeekdev.com/newsroom/press-releases/iem-to-support-preparedness-for-chemical-weapons-emergencies

The title is "IEM to Support Preparedness for Chemical Weapons Emergencies"
·
Thursday, 15 May 2014 00:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Try this,


require_once(JPATH_ROOT.'/components/com_easyblog/helpers/helper.php');

$id = JRequest::getInt('id');
$view = JRequest::getWord('view');

if ($view == 'entry' && $id) {
$blog = EasyBlogHelper::getTable('Blog', 'EasyBlogTable');
$blog->load($id);
echo $blog->title;
}
·
Thursday, 15 May 2014 00:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks, that worked a treat!
·
Thursday, 15 May 2014 03:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Deborah,

You're welcome. Glad it worked.
·
Thursday, 15 May 2014 10:14
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post