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 | |
/** | |
Overwrite WordPress Gallery with Zurb Foundation Orbit Carousel | |
http://foundation.zurb.com/sites/docs/orbit.html | |
*/ | |
add_filter( 'post_gallery', 'my_custom_foundation_gallery', 10, 2 ); | |
function my_custom_foundation_gallery( $output, $attr ) { |
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
function derweili_change_postnumber_imagegallerycat( $query ) { | |
if ( $query->is_main_query() && $query->is_tax('bildergalerien-kategorie') ) { | |
$query->set('posts_per_page', 50); | |
return; | |
} | |
} | |
add_action( 'pre_get_posts', 'derweili_change_postnumber_imagegallerycat' ); |
NewerOlder