Closed vodeblog closed 11 years ago
Hi,
GK News Show Pro doesn't support displaying shortcodes - it should display simple text from your label (it is visible or you don't see a label at all?)
Of coure you can add a link to your labels (use insert/edit link button in the post editor).
Yes, i able to see it but without displaying the shortcodes inside News Show Pro. Any way we can make it to support shortcodes?
You have to edit gavern/widgets.nsp.php file and change function generate_art_text to:
function generate_art_text($i) {
$art_text = '';
if($this->wdgt_config['data_source_type'] == 'custom') {
$art_text = $this->wdgt_results[0][$i]->post_content;
} else {
$art_text = $this->wdgt_results[$i]->post_content;
}
$art_text = $this->cut_text('article_text', $art_text);
$output = '<p class="gk-nsp-text">'. do_shortcode($art_text).'</p>';
return apply_filters('gk_nsp_art_text', $output);
}
Guys, thanks for helping. I got the label working fine on the Show News Pro Widget. In the post, i added the link but it doesn't link when it shows up in Show News Pro widget. Any idea what to change inside the code to make the label with link works with Show News Pro widget? Thanks in advance.
Hi,
I'm not sure where exactly the problem is. I just checked GK NSP with this changed code and links work correctly, check e.g.
<a href="http://www.gavick.com/">[label style="1"]Your text[/label]</a>
Hi, it does not work on the GK NSP (the link is not working) but it works in the post. Does it relates to MeetGavernWP version? I'm still using 1.8 instead of 1.9.
No, It's not related to MeetGavernWP version, try to remove/comment out this line:
$text = strip_tags($text);
from cut_text function (gavern/widgets.nsp.php file)
I created a label on the post. The label is working fine on the post but does not show up on GK Show News Pro Widget where I use it on homepage. How can i show the label on home page with the widget?
Can I add a link to the label as well?
Thanks Jason