Wordpress Shortcodes & NSP

Free responsive Joomla 2.5 and 3.x module to present your content with easy and intuitive way.
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Thu Jan 30, 2014 5:39 pm
Hiho,

couldnt believe but it seems that NSP ist NOT supporting Wordpress Shortcodes?!

Can you recopmmend any Workaround or hack?

Cheers & thanks in advance

Joerg
User avatar
Expert Boarder

GK User
Sat Feb 01, 2014 9:45 am
Hello,

Currently there is no workaround for it - I'll add this feature to my ToDo list.
User avatar
Administrator

GK User
Mon Feb 03, 2014 9:15 am
hi,

was afraid about this...

Has it to do “withPost Excerpts” ?? I found this article .. is this a solution?

http://bloggingsquared.com/blogging-tip ... -excerpts/


thanks in advance
User avatar
Expert Boarder

GK User
Mon Feb 03, 2014 10:06 am
The GK NSP widget uses as a source the full article text, but parsing of the shortcodes isn't called in the widget what cause the problem.
User avatar
Administrator

GK User
Mon Feb 03, 2014 10:23 am
Ok i understand,

is there any other solution to display shortcode OR a widget (this is from Ignition deck/a crowdfunding plugin) in the game theme on the frontpage like shown in the attached screenshot?

thanks

shurly i can give you BE access ... ?!
schlager.png
User avatar
Expert Boarder

GK User
Wed Feb 05, 2014 1:58 am
Please open file gk-nsp/article_wrappers/default/default.php and please change line:

Code: Select all
echo '<div class="gk-nsp-art gk-nsp-cols-'.$article_cols.'" '.$style.'>' . $art_output . '</div>';


to:

Code: Select all
echo '<div class="gk-nsp-art gk-nsp-cols-'.$article_cols.'" '.$style.'>' . do_shortcode($art_output) . '</div>';
User avatar
Administrator

GK User
Wed Feb 05, 2014 9:17 am
thanks, this doesnt take any effect, nothing changed!
User avatar
Expert Boarder

GK User
Wed Feb 05, 2014 10:25 am
One additional question - the shortcodes are displayed in the widget content as a plain text? (i.e. [gallery])
User avatar
Administrator

GK User
Wed Feb 05, 2014 10:29 am
no .. nothing is displayed
User avatar
Expert Boarder

GK User
Wed Feb 05, 2014 11:11 am
Ok, I've found a reason - I forgot that the shortcodes are cleaned up from the text before output. In this case please revert the previous change and please open file gk-nsp / data_sources / wp / layout-parts.php and change line:

Code: Select all
$art_text = preg_replace('@\[.+?\]@mis', '', $art_text);


to:

Code: Select all
$art_text = do_shortcode($art_text);


of course it will work only if the data source is a WordPress posts - for other data sources (woocoommerce etc.) you should apply the same change in the data source layout-parts file.
User avatar
Administrator

GK User
Wed Feb 05, 2014 12:11 pm
sorry but still no change. seems that NSP is "swallowing" shortcodes ... NSP is inside GKTabs, so i checked that GKT is working with Shortcodes, it does (in this case with Shortcodes Ultimate Plugin) ...
User avatar
Expert Boarder

GK User
Thu Feb 06, 2014 12:06 am
You have to wait for a new version of the widget - I've added a feature for supporting shortcodes in the content to my ToDo list.
User avatar
Administrator

GK User
Thu Feb 06, 2014 11:41 am
ok, i understand. Can give a release Date so i can think about to wait or seeking for a different solution ..

Thanks in Advance

Joerg
User avatar
Expert Boarder

GK User
Thu Feb 06, 2014 3:49 pm
There is no specific ETA, but it will be in this month.
User avatar
Administrator

GK User
Tue Feb 18, 2014 3:12 pm
Hi again,

just wanna ask if you do the "Shortcode" Support until end of February?!

Would be nice to have right before we go to beta without any "hacks"

Thanks in advance!!

Greets Joerg
User avatar
Expert Boarder

GK User
Thu Feb 20, 2014 8:22 am
Yes, I still have it in my plans for February - I'll inform you when the support will be ready on the repository.
User avatar
Administrator

GK User
Thu Feb 20, 2014 10:05 am
Great to hear this!!!
User avatar
Expert Boarder

GK User
Mon Feb 24, 2014 6:29 pm
I've added support for the shortcodes and the weirdest thing is fact that I've used a solution from this post: https://github.com/GavickPro/GK-News-Sh ... 7aaf5a08d1 and it is working fine for me.
User avatar
Administrator

GK User
Tue Feb 25, 2014 10:49 am
OK first of all: Thanks!!!!

I uploaded (as recommended) the new nsp folder to my site. Nothing changed/happend. Maybe i have not the right settings? Please be so kind and check this out ... I send you an PM ..

Kind regards Jörg
User avatar
Expert Boarder

GK User
Tue Feb 25, 2014 10:58 am
Did you enabled parsing shortcodes in the advanced settings?
User avatar
Administrator

GK User
Tue Feb 25, 2014 11:42 am
my config tab has not this setting ...
User avatar
Expert Boarder

GK User
Tue Feb 25, 2014 11:46 am
oh ... i found this setting in the template configuration ... enabled!!! but not working
User avatar
Expert Boarder

GK User
Tue Feb 25, 2014 1:54 pm
I've now enabled it in the widget advanced settings on the banner right/left widget areas.
User avatar
Administrator

GK User
Tue Feb 25, 2014 2:25 pm
.. i see - its already activated on GKTabs 1 now ... but still NOT working!
User avatar
Expert Boarder

GK User
Tue Feb 25, 2014 2:38 pm
Most probably the shortcode text is not included in the content loaded inside the module - that's why you have not shortcodes content.
User avatar
Administrator

GK User
Tue Feb 25, 2014 2:52 pm
Unbenannt.JPG
shure - shortcodes are included ... just follow what i sent you viw PN ... if you click on the articles on home youll see that this is workling well - but NOT inside NSP
User avatar
Expert Boarder

GK User
Tue Feb 25, 2014 2:58 pm
Unbenannt.JPG


there are another issues;

1. i have disabled the "info block" in nsp article layout but its still shown.
2. i have enabled ReadMore but its missing
User avatar
Expert Boarder

GK User
Tue Feb 25, 2014 4:36 pm
Please send me a PM message with FTP access to - I will look for your case in my free time, because it is very strange - you have a problems which cannot be reproduced on my local installation. I'll try to find solution or reason of your problems.
User avatar
Administrator

GK User
Wed Feb 26, 2014 2:26 pm
Finally I've found a reason of your problem - shortcodes wasn't parsed when article format was used. I've added a fix and I've also add a modification to your widget version which removes the text limit when shortcodes are parsed.
User avatar
Administrator

GK User
Wed Feb 26, 2014 2:59 pm
wooow thats it --- !!

youre the best! congrats!

let me speand a beer next time

kind regards joerg
User avatar
Expert Boarder

GK User
Wed Feb 26, 2014 3:22 pm
a few mor LITTLE problems ..
how to add some space between the articles inside nsp?

Show infoblock & readmore button are not working as configurated ..

cheers joerg
User avatar
Expert Boarder

GK User
Wed Feb 26, 2014 4:26 pm
Hi,

what happend now? Layout is totaly destroyed?!

KR Joerg
User avatar
Expert Boarder

GK User
Wed Feb 26, 2014 5:33 pm
joergwigger wrote:a few mor LITTLE problems ..
how to add some space between the articles inside nsp?

Show infoblock & readmore button are not working as configurated ..

cheers joerg


Spaces are ok now due to my wrong settings ...
User avatar
Expert Boarder

GK User
Thu Feb 27, 2014 8:44 am
The readmore and info block are not working as it is configured, because it uses Article Format, which overrides most of the settings. If you need to change something in the layout structure you have to modify this file: https://github.com/GavickPro/GK-News-Sh ... ase.format
User avatar
Administrator

GK User
Thu Feb 27, 2014 9:02 am
dziudek wrote:The readmore and info block are not working as it is configured, because it uses Article Format, which overrides most of the settings. If you need to change something in the layout structure you have to modify this file: https://github.com/GavickPro/GK-News-Sh ... ase.format



i send am PM ....
User avatar
Expert Boarder


cron