[Plugin: Simple Fields] Display Custom Post Type by Simple Field?
-
Hello all,
I’m looking to try to filter a Custom Post Type by it’s simple field values. For example, display a list of all “Products” which the radio button checked “Oranges.
This is how I would normally query a custom post type:
$args = array( 'post_type' => 'products', 'posts_per_page' => 100, 'orderby' => 'title', 'order' => 'ASC' ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); echo '<a href="'; the_permalink(); echo '" title="'; the_title(); echo '">'; the_title(); echo '</a>'; endwhile;Any help you could provide is greatly appreciated.
The topic ‘[Plugin: Simple Fields] Display Custom Post Type by Simple Field?’ is closed to new replies.