-
-
Save billerickson/0114db9559050824fb1f4af219cbc5df to your computer and use it in GitHub Desktop.
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 // dont include this line | |
/** | |
* Reorder items in Display Posts Shortcode | |
* | |
*/ | |
function ea_reorder_dps( $output, $original_atts, $image, $title, $date, $excerpt, $inner_wrapper, $content, $class ) { | |
$output = '<' . $inner_wrapper . ' class="' . implode( ' ', $class ) . '">' . $image . $date . $title . $excerpt . $content . '</' . $inner_wrapper . '>'; | |
return $output; | |
} | |
add_filter( 'display_posts_shortcode_output', 'ea_reorder_dps', 10, 9 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment