WordPress.org

Forums

Custom fields in random order (1 post)

  1. vuway
    Member
    Posted 5 years ago #

    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...

    <?php

    $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.

    Thanks,

    Bill

Topic Closed

This topic has been closed to new replies.

About this Topic