Skip to content

Instantly share code, notes, and snippets.

@woogists
Last active March 17, 2023 01:55
  • Star 2 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
[Theming Snippets] Change number of related products output
@eddhurst
Copy link

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
Copy link

How do you add && wp_is_mobile to the code?

@stuartcusackie
Copy link

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

Nothing I do seems to have an effect.

@zaderade
Copy link

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