News Show Pro Questions

May 2014 WordPress Theme
GK User
Mon Feb 01, 2016 4:06 pm
hi i have been using gknsp on our joomla website and it had easy options to change, we have migrated our website to wordpress and re-bought the storefront design again for wordpress but i am not sure where most things are?

In the tabs section (featured,new,hit,etc) how can i change the featured tab to display random woocommerce products? Having to change the sku all the time would be annoying and i know it had a random function in joomla so how do i do that?

In the Our Blog section near the bottom it is only showing 3 posts which are the old posts how am i able to change what categories it reads from?

Thanks :)
User avatar
Senior Boarder

Joshua M
Tue Feb 02, 2016 9:15 am
Hi,

Regarding the tabs - you can use woocommerce shortcodes:
https://docs.woothemes.com/document/woo ... hortcodes/

The Our Blog section is a News Show Pro widget - but in this case it's used as a shortcode, so you have to change the shortcode attributes, please check the following articles:
https://demo.gavick.com/wordpress/store ... ge_id=1979
https://www.gavick.com/blog/news-show-p ... -shortcode
User avatar
Moderator

GK User
Tue Feb 02, 2016 7:26 pm
Thanks for your reply and yes i have tried many ways but for some reason i cannot get the products to show randomly, i want it to show all products but different ones when people come onto the page again..

Also i have the our blog page setup but it shows the news in the wrong order?

[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"]

That is what i am using, it should show them in the newest order but it does not?
User avatar
Senior Boarder

Joshua M
Wed Feb 03, 2016 9:21 am
Hi,
Please check the woocommerce shortcodes again:
https://docs.woothemes.com/document/woo ... hortcodes/
(Sorting Products by Custom Meta Fields section - you can add "rand" attribute )

Regarding the wrong order in NSP, please check the second article from the blog:
https://www.gavick.com/blog/news-show-p ... -shortcode
"order = "ASC/DESC" order items by ascending or descending order (default: DESC)"
it's enough to add:
Code: Select all
order = "ASC"

to your shortcode
User avatar
Moderator

GK User
Thu Feb 04, 2016 6:31 pm
Thanks i fixed the our blog it seemed it was bugged so i re-created it and all is fine now, Appreciate the info but could do with a example if possible for the random products, i tried the rand attribute but not sure where to add it? tried the datasource but nothing happens, in the code below where would i add the rand attribute?

[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"]
User avatar
Senior Boarder

Joshua M
Fri Feb 05, 2016 9:08 am
The rand attribute is for WooCommerce shortcodes (not [gknsp ...).
Code: Select all
[recent_products orderby="rand"]

News Show Pro also may display posts randomly:
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" orderby="random"]
User avatar
Moderator

GK User
Fri Feb 05, 2016 7:04 pm
Thank you for your time and information! :)
User avatar
Senior Boarder


cron