WordPress – Change Posts Per Page Based On Category

After hours of searching for solution… this one nails it.

Source:  WordPress.org