Custom fields in random order
I am looking to list the custom fields in my posts one at a time for all the posts. There are two custom fields for each post. I need them in random order. I know the code to list random posts…
$rand_posts = get_posts(‘numberposts=25&orderby=rand’);
foreach( $rand_posts as $post ) :
but I am not sure how to also list both custom fields below each post title.
- The topic ‘Custom fields in random order’ is closed to new replies.