Not sure if I should have made my own topic, however I have the very same issue.
The filter code snippet did not work for me either. What was the solution?
I am trying to limit the related products to 4 items all in 1 row (instead of the carousel with a lot of related products)
Preferably, I would like to choose the order in which the 4 related products appear, because cross-sells that I have explicitly chosen have lower priority(more on the right), than random related products chosen by Woocommerce at this moment. Would that be possible?
Here is an example page