Last active
February 9, 2024 16:37
-
-
Save woogists/6f7142aebbaa98a0cf24b04a59ca8bfa to your computer and use it in GitHub Desktop.
[Theming Snippets] Change number of related products output
found in www\wp-content\plugins\woocommerce\templates\single-product\related.php
<h2><?php esc_html_e( 'Related products', 'woocommerce' ); ?></h2>
issue close 👍
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
How do you add && wp_is_mobile
to the code?
Any chance we can get an example of an $arg['tax_query']?
Nothing I do seems to have an effect.
The woo_related_products_limit() function serves no purpose and can be omitted.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What's argument I need for display custom title? I want to create custom wrapper for h3