A page that shows a list of a specific custom post type

In addition to @Rarsts answer, once you’ve created a custom post type with archive like this example: //* Create product custom post type add_action( ‘init’, ‘register_product_custom_post_type’ ); function register_product_custom_post_type() { register_post_type( ‘product’, array( ‘labels’ => array( ‘name’ => __( ‘Product’, ‘wpsites’ ), ‘singular_name’ => __( ‘Product’, ‘wpsites’ ), ), ‘has_archive’ => true, ‘hierarchical’ => true, … Read more

Displaying Custom Taxonomies From Multiple Custom Post Types

I figured it out. Setting ‘relation’ to ‘OR’ is important. <?php $myquery[‘tax_query’] = array( ‘relation’ => ‘OR’, array( ‘taxonomy’ => ‘category’, ‘terms’ => array(‘home-slides’), ‘field’ => ‘slug’, ), array( ‘taxonomy’ => ‘miss_behave_category’, ‘terms’ => array(‘home-slides-1’), ‘field’ => ‘slug’, ), array( ‘taxonomy’ => ’emily_category’, ‘terms’ => array(‘home-slides-2’), ‘field’ => ‘slug’, ), ); query_posts($myquery); ?>

How to Output which matched meta_keys were found from custom_type_posts?

Let me see if I understand your question correctly: You have the meta values of the player this page belongs to. Then in the loop you have the corresponding meta value of each matched player. All you need to do is compare them: if($player_position == get_post_meta($post->ID, ‘player_position’, true)){ // This player is on the same … Read more