This file contains 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 | |
function getBootstrapBreakpoints() { | |
return array( | |
'xs', | |
'sm', | |
'md', | |
'lg', | |
'xl', | |
); |
This file contains 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
// paste into WP console in admin | |
jQuery(document).ready(function($) { | |
$('.acf-flexible-content .values .acf-icon.-collapse').click(function(e){ | |
$this = $(this); | |
if(e.shiftKey) { | |
open = $this.is('.-collapsed .-collapse'); | |
console.log('shift clicked'); | |
console.log('open: ', open); | |
if (open){ | |
$all = $this.parentsUntil('.values').parent().find('.-collapsed .acf-icon.-collapse'); |
This file contains 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 | |
/** | |
* Retrieve the adjacent posts for a specific custom post type and taxonomy. | |
* | |
* This function returns the previous and next posts based on the provided | |
* custom post type, taxonomy, and ordering by published date in descending order (newest first). | |
* | |
* @param int $post_id The ID of the current post. | |
* @param string $taxonomy The taxonomy to filter posts by. | |
* @param string $post_type The custom post type to query. |
OlderNewer