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
- WordPress Custom Post Types with a page as a parent?
- Custom Taxonomy with Custom Post Type Finds No Posts
- 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
- automatically create taxonomy with same name as post title
- Add filter to wp_list_categories and query what type of taxonomy-terms it use?
- Restrict categories to a custom post type
- Display Posts of a Category in Alphabetical Order (Custom Post Type)
- Taxonomy structure of Sport site
- Show ACF field from custom taxonomy and display on the single template
- Programmatically adding posts
- Keep main articles and author blogs seprerate, News / Magazine like site
- How to create an advanced filter search?
- Return array of categories to php function for current post
- Querying Term Posts in Loop
- Custom Post Type Taxonomies -Posts not showing in Category or Tag pages
- Get rewrite slug of custom post type in template
- Get Post Primary Category
- Insert HTML inside link in a walker
- Taxonomy Archive: Display only one post per term from separate custom taxonomy
- How to customize a permalink (URL) structure?
- Posts from all the categories are being displayed instead of particular category
- Conditional Statement custom post type category
- Categories sorting
- Allow user to set custom order to a list of custom taxonomies?
- wp_list_categories() – current-cat class also inside posts?
- 404 error when navigating to a taxonomy page with Cyrillic, what’s wrong?
- Limit amount of posts made within a custom taxonomy
- I am trying to hide a custom post type category to logged in users with Pre_Get_Posts
- How to produce a sub-page-system in WordPress
- Redirect to another page using contact form 7? [closed]
- Categorise Custom Post Types
- Category.php template for custom posts
- in_category for custom post types
- WP_Query Custom Post Type if Category ID Equals
- Assign category a default post type
- List Posts By Custom Taxonomy
- How to Display Posts From Category Within a Custom Taxonomy?
- Control content before and after custom post type loop
- attach CPT data to a taxonomy
- Listing all slugs?
- Different options per post type in WP_Query
- When I choose category from dropdown then everything working fine.But in backend it checked only child not parent [closed]
- Get child categories of custom taxonomy category?
- Custom post types category
- Foreach loop returning more than one item when querying taxonomy
- Compare Two Custom Post Types Using The Same Custom Taxonomy
- Using page title as a link to term archive
- Custom taxonomy not saving correctly
- Advanced archive url structure (category, tag and date)
- Setup page template array in a custom post type
- Custom post type page with parameter
- Change Dropdown jQuery to show/hide but with default place holder that shows all
- What is the best way to set the post category (Custom Post Type) automatically based on the one of the tags assigned to the post?
- Get all post under custom post type grouped by custom filed value in custom taxonomy
- How to show related posts of category on post within custom posttype
- Check that a slug is present in the get_terms request
- pagination problem listing custom post types of taxonomy in wordpress
- In the php, how can I have a category of a custom post type display?
- Custom search for a custom post type in WordPress
- How to manage a dynamic multi-level page hierearchy system?
- Custom Post By Category
- Categories manage
- Help with Multi Level Category Archive Page
- Show custom taxonomy not in submenu
- Getting a 404 on single custom post type page when using rewrite on a custom taxonomy
- How to Fix WordPress 500 Internal server error due to custom post type
- Exclude Custom Post Type from shared Custom Taxonomy
- Sort by Custom Post Type (Multiple Loop)
- WordPress Custom Post Type and sort by Tags
- Get a list of categories ids
- How to call Shortcode categories for custom post types?
- Get link for feed of specific post type AND taxonomy
- Looping taxonomy in taxonomy?
- Display a custom post type list by taxonomy term
- posting twice from an array?
- Stop header code from showing in category page?
- Custom Loop for custom post type. Compare by meta_value?
- Return Custom Post Type Categories
- Highlight specific menu item when custom post is page
- cannot export data from CPT UI (books)
- How do loop categories post from according in WordPress? is it impossible to solve this problem?
- Get category name of current post (CPT UI)
- Is it possible for post and custom post type to share a category base slug?
- How to develop Knowledge center in WordPress Website