<?php echo do_shortcode( '[buddypress id="49"]' ); ?>
<?php echo do_shortcode( '[buddypress id="50"]' ); ?>
<?php echo do_shortcode( '[buddypress id="51"]' ); ?>
<?php echo do_shortcode( '[buddypress id="52"]' ); ?>
I used wordpress and I want to use many PHP codes:
I need a JavaScript code to make a random system to appear only one code each time I visit my site from this list.
I tried to use code from Stack Overflow but this code make random and choose one code only yes but it causes many problems because the code load all codes and choose only 1 to appear and the others code make their hide but if I view my site page source I found all codes.
Because that I need a code to choose only one code to appear in my site and in page source and never loaded the other codes.
And also I need make other random to appear the code or not, like 50% appear and make a random system and choose one code to appear and 50% nothing happens.