Skip to content

Instantly share code, notes, and snippets.

@imarklee
Created May 24, 2014 06:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imarklee/d970cb17dcdd2b3318f0 to your computer and use it in GitHub Desktop.
Save imarklee/d970cb17dcdd2b3318f0 to your computer and use it in GitHub Desktop.
EasyBlog 3.9 category title retrieval
<?php
$id = JRequest::getInt('id');
$blog = EasyBlogHelper::getTable('Blog');
$blog->load($id);
$category = EasyBlogHelper::getTable('Category');
$category->load($blog->category_id);
echo $category->title;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment