This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Get the repeater field | |
| $repeater = get_field( 'repeater_field_name' ); | |
| // Count number of items | |
| $total = count($repeater); | |
| // Get a random rows. Change the second parameter in array_rand() to how many rows you want or keep as $total for all. | |
| $random_rows = array_rand( $repeater, $total ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .lt-ie9 .top-bar { | |
| background: #2f2f2f; | |
| *zoom: 1; | |
| overflow: visible; | |
| } | |
| .lt-ie9 .top-bar:before, .lt-ie9 .top-bar:after { | |
| content: " "; | |
| display: table; | |
| } | |
| .lt-ie9 .top-bar:after { clear: both; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_action( 'wp_enqueue_scripts', 'enqueue_my_styles' ); | |
| function enqueue_my_styles() { | |
| global $wp_styles; | |
| // Load the main stylesheet | |
| wp_enqueue_style( 'my-theme', get_stylesheet_directory_uri() . '/style.css' ); |