The code you need will vary slightly depending on whether the Conference field is storing a text string (like “Big Ten”) vs. the ID of the Conference post. I’ll include both:
Text String Example
// place this code inside the loop of your single-team template
$conference_name = get_post_meta( get_the_id(), 'conference', true );
$conference = get_page_by_title( $conference_name, OBJECT, 'conference' );
if ($conference) {
echo apply_filters( 'the_content', $conference->post_content );
}
ID Example
// place this code inside the loop of your single-team template
$conference_id = get_post_meta( get_the_id(), 'conference', true );
$conference = get_post( $conference_id );
if ($conference) {
echo apply_filters( 'the_content', $conference->post_content );
}
Related Posts:
- Weird problem happening with custom taxonmy when creating/updating posts
- Get custom post type by category in a page template
- Hide parent categories when clicked, and show it’s childs
- Creating a non-hierarchical Taxonomy that behaves like categories
- Get terms for a specfic post from multiple taxonomies in custom post type
- How do I ensure that post_type and Taxonomy use the same slug?
- Custom front-end form for adding post – Category problem
- Set a Default CPT taxonomy by taxonomy id
- Help with Travel Guide Setup
- WordPress query posts by custom post type not workng
- Create 2-layered dropdown menus for custom taxonomy and custom post type
- Inserting two categories
- How do I append multiple taxonomies to the URL?
- Filtering a custom post type by custom taxonomy in archive template
- Exclude a category from WP_Query
- Custom Post Types on Category Pages
- Setting Default Category for Custom Post Type Upon Autosave
- Creating “static” taxonomies to choose from, inside custom post type?
- WordPress Custom Post Types with a page as a parent?
- Get Custom Taxonomy ID within loop
- Custom post status not working
- How can I list all the categories under a Custom Post Type (taxonomy)?
- How to build a complex page structure
- Custom Taxonomy with Custom Post Type Finds No Posts
- Load custom posts with same tag as page
- How to filter custom post types by custom category taxonomy
- Is there a way to use regular categories with custom post types?
- Associating an “author” with a custom taxonomy
- How to list all categories and tags in a page?
- TV Show database – Best way for structuring it?
- remove support for ‘Categories’ for a custom post type
- Glossary with Custom Post Type
- Correct way to use a form to to filter custom posts by taxonomy terms?
- Custom-Taxonomy as categories: Remove “most-used” tab?
- Showing current taxonomy terms
- Categories under custom post types doesn’t show properly
- Filter get_categories() for taxonomy term in WordPress
- How to get a list of term names of the custom post type im currently on in single.php
- Ajax filter with custom taxonomies
- automatically create taxonomy with same name as post title
- Filter posts with ajax form and checkboxes
- Query posts by custom post type and custom taxonomy
- Add filter to wp_list_categories and query what type of taxonomy-terms it use?
- Custom Taxonomy conditionals
- Custom edit post column – category not showing
- Taxonomy list. Order by a specific custom post type count
- How to get only one category of custom post type?
- Why are taxonomy terms not saving when using custom meta boxes with radio button taxonomy selectors?
- Limit amount of posts made within a custom taxonomy
- Filter CPT posts by one or more categories
- Getting categories of posts under a custom taxonomy
- Can’t remove front from permalinks for custom taxonomy category page
- How to start a new post with custom Taxonomies already set?
- Categorize custom post type
- How to edit this code to get the categories in achieve page?
- Custom post type editor with dynamic selects, one drop down populating a second second drop down not working
- Hierarchy and access control for Custom Post Types (CPT)
- Best method to make posts searchable, sortable and filterable – custom field, tag or category?
- How to get custom posts sub category link
- Make a custom_post translatable
- How to add attributes to taxonomies that may be different from post to post?
- browse by category and tags?
- I am trying to hide a custom post type category to logged in users with Pre_Get_Posts
- Migrating a taxonomy’s tags to the native category
- List of Posts and Categories
- How to produce a sub-page-system in WordPress
- Different Category system needed for the Custom Post Type
- Custom Post Type Category Link
- Custom Post type category pages template and loop
- Redirect to another page using contact form 7? [closed]
- Categorise Custom Post Types
- WP the_posts() on single-cars.php get category link
- Category.php template for custom posts
- Get term name without a foreach loop
- custom post type vs. conditionally displaying meta boxes for specific terms?
- in_category for custom post types
- Get parent category id from child category page for custom taxonomy
- Trying to get custom post of a custom taxonomy
- WP_Query Custom Post Type if Category ID Equals
- How can I have different content for different countries?
- How to add current custom taxonomy slug to body class
- Assign category a default post type
- List Posts By Custom Taxonomy
- get_category_link() for custom post type does not include custom slug rewrite?
- How to Display Posts From Category Within a Custom Taxonomy?
- List Categories (wp_terms) and count posts
- Control content before and after custom post type loop
- Disable custom taxonomy on admin bar
- Why does my taxonomy have a category style div id?
- Targeting categories in custom fields
- Get custom post type categories to show up in menus
- attach CPT data to a taxonomy
- Listing all slugs?
- Assigning a category to a custom post type in WordPress
- Show current custom taxonomy
- Different options per post type in WP_Query
- category list with cutom post count
- The Difference Between Categories and Tags and Taxonomies and Terms
- Include custom post type custom taxonomies in Categories widget
- Custom Post Type Categories URL not displaying posts