Hi, do you have a link to the other topic? The search in this forum is really terrible 😀
If I have the old topic, maybe I can find something in my notes or email based on the info in it.
The solution is in this post. You’ll have to save this code fragment as a file in your /wp-contents/plugins folder and then activate as any other plugin.
Make sure you check if the ID’s of your leagues are the same as the ones in the script. If not, then add these lines to your wp-config file with the correct numbers:
define( 'FPX_LEAGUE_FOR_FREE', 3 );
define( 'FPX_LEAGUE_FOR_MONEY', 2 );
Or change the values in the code fragment.
And since the code checks on the exact text values in the select, also change the league names in the switch ( $league ) statement to reflect yours.
Hope this helps.
Dear Antoine,
In the post (https://ww.wp.xz.cn/support/topic/how-to-include-pool-choice-in-registration-form/#post-9947190) @pc1271 says that the code was not working and you got to check it. Then he says that you found out that the solution was to “translate the strings”, I have not been able to get this code to work, maybe i’m missing something regarding the “translation of the strings”?
What I also mentioned in my previous post: the code checks on the exact tests that you use in your form field. So if you use ‘for free’ as an option in the dropdown it will work, but if you use another name for your league, you’ll have to change this part of the code:
case 'for free':
And the same goes for the other league.
Thank you Antoine, that was exactly my problem, finally it’s working as expected! Best Regards.