Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[Theming Snippets] Change number of related products output
@zbralex

This comment has been minimized.

Copy link

zbralex commented Feb 8, 2019

What's argument I need for display custom title? I want to create custom wrapper for h3

@zbralex

This comment has been minimized.

Copy link

zbralex commented Feb 8, 2019

found in www\wp-content\plugins\woocommerce\templates\single-product\related.php
<h2><?php esc_html_e( 'Related products', 'woocommerce' ); ?></h2>
issue close 👍

@eddhurst

This comment has been minimized.

Copy link

eddhurst commented Mar 26, 2019

This gist looks to have a function that's not used. You can't PR a gist, but I've forked this and amended to be inline with other gists you have. Tried and tested on my current project, to confirm: https://gist.github.com/eddhurst/d148b8a93c16acdeb8fd3865e5d8eb9f

@codenoob99

This comment has been minimized.

Copy link

codenoob99 commented Apr 4, 2019

How do you add && wp_is_mobile to the code?

@stuartcusackie

This comment has been minimized.

Copy link

stuartcusackie commented Oct 30, 2019

Any chance we can get an example of an $arg['tax_query']?

Nothing I do seems to have an effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.