Hi. I am trying to retrieve the category name for articles to display in NSP Grid. Currently the title is displaying with the story lead in.
I am looking at plug-ins/gk-nsp/data_sources/wp/layout_parts.php starting at line 39 (see below). I have customised this file before to change the layout.
Is there a way to pull the article's category name into a variable e.g. $art_category ?
Thanks in advance.
John.
function art_title($i, $only_value = false) {
$art_title = '';
$art_ID = '';
$art_url = '';
$art_title = $this->parent->wdgt_results[$i]->post_title;
$art_ID = $this->parent->wdgt_results[$i]->ID;
$art_url = get_permalink($art_ID);
$art_title_short = GK_NSP_Widget_Helpers::cut_text('article_title', $art_title, $this->parent->config['article_title_len_type'], $this->parent->config['article_title_len']);