NSP shortcode on pages

May 2014 WordPress Theme
GK User
Tue Jun 10, 2014 4:53 pm
Hi, I seem to have a problem convincing the new NSP shortcode to display posts on my frontpage.

The shortcode I am using attempts to take posts from the "news" category, ID 240:
[gknsp widget_css_suffix="separator overlay" offset="4" article_cols="3" article_rows="1" data_source_type="wp-category" wp_category_list="news" article_image_w="380" article_image_h="204" article_image_order="1" article_image_popup="off" article_title_order="2" article_info_state="off" article_block_padding="0 7px 64px 7px" image_block_padding="0 0 40px 0" article_text_len="6"]

wp_category_list="240" also doesn't work.
There are more than 3 articles in the category, so it should work, but instead I get a warning:

Warning! There is no posts to display. Please check your widget settings


:?
User avatar
Junior Boarder

GK User
Tue Jun 10, 2014 6:48 pm
The normal widget works as expected.
User avatar
Junior Boarder

GK User
Wed Jun 11, 2014 7:58 am
Hi,

Are you sure that you've provided correct id/slug? because I've checked this shortcode again on my installation and this code:
Code: Select all
data_source_type="wp-category" wp_category_list="195"

works properly. If you'll still have problem with that, send me a PM with backend access to your website, then i'll be able to check it exaclty.
User avatar
Moderator

GK User
Wed Jun 11, 2014 3:14 pm
Hi

When I set NSP as shortcode to display product category, using this code:

[gknsp cache_time="0" widget_css_suffix="products" article_cols="4" article_rows="2" data_source_type="wp_woocommerce-wooc_category” woocommerce_category_list=“99” article_text_state="off" article_image_w="282" article_image_h="300" article_image_order="1" article_image_popup="off" article_title_order="2" article_info_format="{PRICE}{CART}" article_readmore_state="off" article_block_padding="10px 30px 30px 30px"]

And set it with my product category ID, the tab display latest posts.

THNX
User avatar
Junior Boarder

GK User
Wed Jun 11, 2014 5:15 pm
And, how can I set NSP shorcode, to display "on sale", "featured products".

THNX
User avatar
Junior Boarder

GK User
Thu Jun 12, 2014 7:37 am
I've checked and this code works properly:

Code: Select all
data_source_type="wp_woocommerce-wooc_category" woocommerce_category_list="227"


Did you check this article?
http://gavick.com/demo/wordpress/storef ... ge_id=1979

News show pro can display only "featured" badge for featured products.
User avatar
Moderator

GK User
Thu Jun 12, 2014 12:02 pm
I checked that article, I used the code to display wc product cat. And it show the blog posts instead.
User avatar
Junior Boarder

GK User
Thu Jun 12, 2014 12:57 pm
Could you send me a PM with backend access to your website? Then I'll be able to check it.
User avatar
Moderator

GK User
Thu Jun 12, 2014 1:03 pm
OK, I'll send you later, still checking some other things, to send you all together ;)
User avatar
Junior Boarder

GK User
Mon Jul 21, 2014 9:43 am
Hi there.

I have also problems with the NSP shortcode.

No shows my last post on the home page. The code is:

Code: Select all
[gknsp cache_time = "0" title = "From our blog" before_title = "<h3 class='box-title'>" after_title = "</ h3>" widget_css_suffix = "separator overlay" offset = "4" article_cols = "3 "article_rows =" 1 "article_image_w =" 380 "article_image_h =" 204 "article_image_order =" 1 "article_image_popup =" off "article_title_order =" 2 "article_info_state =" off "article_block_padding =" 0 7px 64px 7px "image_block_padding =" 0 0 40px 0 "article_text_len =" 6 "]


The error it shows is:

Warning! There is no posts to display. Please check your settings widget

Thx.
User avatar
Fresh Boarder

GK User
Fri Jul 25, 2014 6:23 am
Hi,

Your offset option is set to "4", do you have at least 5 articles?
User avatar
Moderator

GK User
Fri Jul 25, 2014 4:36 pm
Hi,

I created 5 articles, now only appears the oldest.
I could also see that if I go to edit the page in visual mode, the code is corrupted and lost the title style to the H3 tag.

Thanks for your help.
User avatar
Fresh Boarder

GK User
Tue Jul 29, 2014 9:14 pm
Sorry for the delay, could you send me a PM with backend access to your website? Then I'll be able to check it exactly.
User avatar
Moderator

GK User
Wed Jul 30, 2014 2:03 pm
The problem is here:

gknsp cache_time = "0" title = "From our blog" before_title = "<h3 class='box-title'>" after_title = "</ h3>" widget_css_suffix = "separator overlay" offset = "4" article_cols = "3 "article_rows =" 1 "article_image_w =" 380 "article_image_h =" 204 "article_image_order =" 1 "article_image_popup =" off "article_title_order =" 2 "article_info_state =" off "article_block_padding =" 0 7px 64px 7px "image_block_padding =" 0 0 40px 0 "article_text_len =" 6 "

If you edit in visual mode WP does not accept this code and removes it.

As for the number of post, it should work correctly, I do nothing special. After installing the quickstart template I delete all posts. Then I write 5 new. Nothing is showing more than one.
User avatar
Fresh Boarder

GK User
Wed Jul 30, 2014 9:34 pm
try to remove this attribute: before_title = "<h3 class='box-title'>" after_title = "</ h3>" and then check again, if you'll send me backend access i'll try to check it and find the solution.
User avatar
Moderator

GK User
Fri Aug 01, 2014 9:18 am
I have already put out the code, it works correctly.

Code: Select all
<h3 class="box-title">From Our Blog</h3>
[gknsp cache_time="0" widget_css_suffix="separator overlay" offset="4" article_cols="3" article_rows="1" article_image_w="380" article_image_h="204" article_image_order="1" article_image_popup="off" article_title_order="2" article_info_state="off" article_block_padding="0 7px 64px 7px" image_block_padding="0 0 40px 0" article_text_len="6"]


Before this, the editor itself erased the H3 tag.
To be considered for upcoming reviews. More people will have the same problem, I'm using the Storefront template.

I'm going to install the template into a clean folder, then I will try the issue of post. If the issue continues I send you username and password to test.

Thank you.
User avatar
Fresh Boarder

GK User
Mon Aug 18, 2014 12:27 pm
It's cause by the "offset" attribute. By default offset is set:

Code: Select all
offset="4"


to display articles not from the 1st by for the 4th (it was fo the demo content) It's enough to remove this attribute.
User avatar
Moderator

GK User
Mon Aug 18, 2014 3:36 pm
Hi.

I tried removing the code and it works. Finally it was very easy (for those who know the code). ;)

Thanks Piotr for your help.
User avatar
Fresh Boarder

GK User
Tue Oct 07, 2014 5:54 am
I am having similar issues with latest posts not displaying on the front page below the : From our blog

Here is the code from the sub-page

" gknsp widget_css_suffix="separator overlay" offset="4" article_cols="3" article_rows="1" article_image_w="380" article_image_h="204" article_image_order="1" article_image_popup="off" article_title_order="2" article_info_state="off" article_block_padding="0 7px 64px 7px" image_block_padding="0 0 40px 0" article_text_len="6"]

I have trashed all demo content posts and created 4 new ones but I still get the following error:

From our blog
Warning! There is no posts to display. Please check your widget settings
User avatar
Fresh Boarder

GK User
Tue Oct 07, 2014 6:27 am
As an update: I went back into Posts and recovered 4 posts from the trash [image post] [aside post] [quote post]
When these posts were published they displayed on the front page...

SO now I have a situation where older posts are displaying but any new posts I create will not display
*As a test I went back and modified the published dates of the new post I created so they were older that the [image/aside/quote post] but it still did not change what was being displayed ?

I have checked the actual widget settings and have is set to display Data Source: Latest Posts

Any suggestions ?

Cheers
User avatar
Fresh Boarder

GK User
Tue Oct 07, 2014 7:43 am
Hi @LightBulb, did you read my last answer in this thread? You also have offset="4" attribute, so widget displays articles not from the 1st by for the 4th one, please try to remove this attribute.
User avatar
Moderator

GK User
Wed Jan 07, 2015 9:31 am
Can I see a syntax page for this CODE you speak of? Is there a way to build this like a shorcode gets built? Is there any full documentation? Trouble building frontpage using these... any suggestions?
User avatar
Fresh Boarder

GK User
Wed Jan 07, 2015 11:35 am
User avatar
Moderator


cron