-
-
Save billerickson/b5d342f3f3fb1dbc484344495a76d92c 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 | |
function be_list_posts() { | |
$output = get_transient( 'be_list_posts' ); | |
if( false === $output ) { | |
$output = do_shortcode( '[display_posts]' ); | |
set_transient( 'be_list_posts', $output, DAY_IN_SECONDS ); | |
} | |
echo $output; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment