Can you please share the problem URL where you added your view as well as access details.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
I can see you added two different views. Can you please tell me where exactly I need to place the shortcocde I shared or can you place the shortcode at your desired place?
[display_per post_id='[wpv-post-id]']
The issue was the code snippet you added was not active because please make sure you need to add your custom code to every snippet after the following line:
toolset_snippet_security_check() or die( 'Direct access is not allowed' );
It seems there is confusion what you want and what I shared.
So, I shared the solution that will generate the percentage for each post based on the formula you shared.
==> (100 / number of goals * number of games)
Do you want to calculate the percentage based on the all posts values?
If yes: for which view? as I can see you are using multiple views on your page. Please share the view link for which you want to calculate the percentage based on your all posts.
If the above information is not correct, please explain what values I should count on to calculate the average.
That is the problem when I write in English.
So:
this view: enlace oculto
shows number of games
this view: enlace oculto
shows number of goals
The goal is to calculate how many goals per game.
I am not sure why I do not able to delete the things on your layout. Can you please remove the tab4 and tab5 from your layout?
In addition to that if you confirm that this is your formula: 100 / (number of goals * number of games)
- Is your formula is correct? as to get the number of goals per game you need to divide ( number of goals / nuber of games)