Product Filter by WBW Shortcodes

Below, you’ll find a detailed guide on how to add the Product Filter by WBW Shortcodes to your WordPress website, including their parameters, examples, and PHP function code. Additionally, we’ll assist you with common issues that might cause the Product Filter by WBW Plugin shortcodes not to show or not to work correctly.

Before starting, here is an overview of the Product Filter by WBW Plugin and the shortcodes it provides:

Plugin Icon
Product Filter by WBW

"Product Filter by WBW is a dynamic WordPress plugin, specifically designed to enhance your WooCommerce store. It allows for advanced product filtering, enabling customers to easily find the products they need."

★★★★☆ (211) Active Installs: 40000+ Tested with: 6.3.2 PHP Version: false
Included Shortcodes:
  • [WPF_SHORTCODE]
  • [WPF_SHORTCODE_PRODUCTS]
  • [WPF_SHORTCODE_SELECTED_FILTERS]

Product Filter by WBW [WPF_SHORTCODE] Shortcode

The Woo-Product-Filter plugin shortcode WPF_SHORTCODE renders a view with the specified parameters. It’s a dynamic tool for displaying filtered products.

Shortcode: [WPF_SHORTCODE]

Examples and Usage

Basic example – The shortcode is used to render a view based on the parameters passed to it. It uses the WPF_SHORTCODE constant as the shortcode tag.

[WPF_SHORTCODE id="1" /]

PHP Function Code

In case you have difficulties debugging what causing issues with [WPF_SHORTCODE] shortcode, check below the related PHP functions code.

Shortcode line:

add_shortcode( WPF_SHORTCODE, array( $this, 'render' ) );

Shortcode PHP function:

function render( $params ) {
		return $this->getView()->renderHtml( $params );
	}

Code file location:

woo-product-filter/woo-product-filter/modules/woofilters/mod.php

Product Filter by WBW [WPF_SHORTCODE_PRODUCTS] Shortcode

The Woo-Product-Filter plugin shortcode, WPF_SHORTCODE_PRODUCTS, is designed to render a list of products. It takes parameters and returns a view, displaying the products in HTML format.

Shortcode: [WPF_SHORTCODE_PRODUCTS]

Examples and Usage

Basic example – A simple usage of the WPF shortcode to render a product list. In this case, we are not passing any parameters.

[WPF_SHORTCODE_PRODUCTS]

PHP Function Code

In case you have difficulties debugging what causing issues with [WPF_SHORTCODE_PRODUCTS] shortcode, check below the related PHP functions code.

Shortcode line:

add_shortcode( WPF_SHORTCODE_PRODUCTS, array( $this, 'renderProductsList' ) );

Shortcode PHP function:

function renderProductsList( $params ) {
		return $this->getView()->renderProductsListHtml( $params );
	}

Code file location:

woo-product-filter/woo-product-filter/modules/woofilters/mod.php

Product Filter by WBW [WPF_SHORTCODE_SELECTED_FILTERS] Shortcode

The Woo-Product-Filter plugin’s shortcode is designed to render selected filters. It checks if the Pro version is active and then displays the chosen filters.

Shortcode: [WPF_SHORTCODE_SELECTED_FILTERS]

Examples and Usage

Basic example – A simple usage of the shortcode to render selected filters. This shortcode does not require any parameters to function.

[WPF_SHORTCODE_SELECTED_FILTERS]

PHP Function Code

In case you have difficulties debugging what causing issues with [WPF_SHORTCODE_SELECTED_FILTERS] shortcode, check below the related PHP functions code.

Shortcode line:

add_shortcode( WPF_SHORTCODE_SELECTED_FILTERS, array( $this, 'renderSelectedFilters' ) );

Shortcode PHP function:

function renderSelectedFilters( $params ) {
		return FrameWpf::_()->isPro() ? $this->getView()->renderSelectedFiltersHtml( $params ) : '';
	}

Code file location:

woo-product-filter/woo-product-filter/modules/woofilters/mod.php

Conclusion

Now that you’ve learned how to embed the Product Filter by WBW Plugin shortcodes, understood the parameters, and seen code examples, it’s easy to use and debug any issue that might cause it to ‘not work’. If you still have difficulties with it, don’t hesitate to leave a comment below.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *