WP, PH: Avoid duplicate IDs when using two loops