Created
January 18, 2013 19:10
-
-
Save fatihtoprak/4567376 to your computer and use it in GitHub Desktop.
Transist api
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 | |
$FooterLatest = get_transient('PozFooterLatest'); | |
if ($FooterLatest === false) {; | |
$FooterLatest = new WP_Query("showposts=5&orderby=date"); | |
set_transient('PozFooterLatest', $FooterLatest, 60*60*12); | |
} | |
while ($FooterLatest->have_posts()) : $FooterLatest->the_post(); | |
?> | |
<li><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>" > <?php the_title(); ?> </a> </li> | |
<?php endwhile; | |
wp_reset_query(); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment