HUSKY - Products Filter Professional for WooCommerce

[woof_products]

プラグインの2番目のメイン短縮コード。製品を…に表示できます ページ サイトの ショートコードのすべての属性はオプションです。

  • per_page – 1ページあたりの商品数
  • カラム – 1行あたりの製品数。通常は2、3、または4です。 これは WOOF からではなく、テーマの機能に依存します!
  • is_ajax – 非常に強力なオプションです。これを 1 に設定すると、[woof] で生成されたフィルターが AJAX モードで動作し始めます!
  • taxonomies – (オプション) – タクソノミーとその用語を設定する条件を定義できます。[woof] で同じ条件を設定することを忘れないでください!
    [woof_products is_ajax=1 per_page=8 dp=0 taxonomies=product_cat:9,12+locations:30,31]
  • 動作 – 値は1つだけ:「最近‘. : [woof_products 動作=’recent’ per_page=12 columns=3]
  • orderby – price-desc, price, popularity, rating, title, rand, date
  • 順序 – ASC または DESC
  • custom_tpl – [woof_products custom_tpl=’woof_tpls/woo_tpl_1.php‘ ] – 必要に応じて、特別なカスタムテンプレートで製品をアウトできます (woof_tplsがWPテーマフォルダーまたはその子フォルダー内のフォルダーである場所) 開発者および上級ユーザー向けの優れた機能です。
  • tpl_index – [woof_products tpl_index=”tpl_1“] – 必要であれば、特別なカスタムテンプレートに商品を含めることが可能です。 テンプレート OR コネクタ 独自のオプションを持つ拡張機能
  • display_on_search –  (1.2.2/2.2.2 から) 検索が行われている場合のみ製品を表示します。検索リクエストがない場合 – 製品は非表示になります (Ajax モードでは機能しません)
  • get_args_only – [woof_products get_args_only=1] – return assembled and prepared array of arguments which is ready for WP_Query request. When this attribute is equal to 1 – no products will out because WP_Query request in this case not done. Use it in the next way for example:
    $args=do_shortcode('[woof_products get_args_only=1 is_ajax=1 per_page=8 taxonomies=product_cat:9,12]');

プラグインでは、wp_query の前に次の wp フィルターが機能します: https://products-filter.com/hook/woof_products_query/ – タクソノミー関係の操作に役立ちます…