Order products by DATE/ID

May 2014 WordPress Theme
GK User
Thu Sep 11, 2014 12:15 pm
Hello,

I use gk-nsp to display products on shop page:

[gknsp cache_time="0" widget_css_suffix="products" article_cols="3" article_rows="3" data_source_type="wp_woocommerce-wooc_latest" article_text_state="off" article_image_w="423" article_image_h="450" 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"]

Everythink is ok, but always display the newest products first. I want specyfic products first, second etc. It is posibble do it if i could "order by date" in this script(In woocommerce i can change date of publish), but i cant find gk-nsp shortcode responsible for this :).
User avatar
Junior Boarder

GK User
Thu Sep 11, 2014 2:00 pm
Hi,

You can add (choose one)
Code: Select all
orderby = "ID/date/title/modified/random"
and
Code: Select all
order="ASC/DESC"
in your shortcode, please check also this article:
https://www.gavick.com/blog/news-show-p ... shortcode/
User avatar
Moderator

GK User
Thu Sep 11, 2014 5:52 pm
Thx! Solved!
User avatar
Junior Boarder


cron