Custom Wordpress query using custom fields outside the loop

/ Published in: PHP
Save to your folder(s)

$quote -- name of function
post_type=page -- remove to query posts
orderby=rand -- random order
showposts=1 -- limit to 1 post

effect -- displays 1 random custom excerpt outside of the loop

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.