Yup, inside the loop (in single.php for example) you can use get_the_terms
to retrieve an array of terms (countries in this case) associated with that post. This will always be an array (or false /error if something has gone wrong) even if there is only one country associated to it.
You can then take the country taxonomy-term and output its description use term_description
.
$taxonomy = 'my-country-tax'; Your taxonomy slug
//Should be an array of 1 in this case
$countries = get_the_terms( $post->ID, $taxonomy);
//Check there are countries asccoiated with post
if($countries && !is_wp_error($countries)){
$country = array_pop($countries);
$description= term_description( $country->term_id, $taxonomy );
echo $description;
}
Related Posts:
- Get the Current Page Number
- Stop WP from creating “Sample Page” and “Hello World!” post
- How to display by default only published posts/pages in the admin area?
- Delete Associated Media Upon Page Deletion
- How to Check if a Page Exists by URL?
- Post/Page Publish/Update button not clickable once I make an edit
- Restore contents of deleted user
- Display posts by tag on page
- What is the difference between “post” and “page” in WordPress?
- posts page – different lengths of excerpt
- WordPress automatic and permanent page
- Is it possible to show a different WP menu when using password protected pages?
- Can I change a post to a page by changing it’s type?
- Add a custom option to a page in backend
- why does HTML Tag not working in Post and Page
- Creating new page with pre-defined parent page
- problem to delete page
- Populating a page with content from post custom fields
- Redirect before post page
- When paginating a Page with the tag, how can the 2nd and subsequent page styles be customised?
- disable column on post and user list
- WP_Query do not load specifed number of post
- Can a page_id and a post_id be same?
- How can I display widget in a Page or Post?
- Differentiate between posts and pages in search results
- Getting a 404 error when clicking edit page
- Specifying # of Posts per page using inline post plugin (:
- Can I use images as anchor tags with
- Create posts under certain page
- Should I use posts or pages in this scenario?
- Switch to page template when using post permalink
- How to handle broken links created by permalink/slug changes?
- Get Page ID of blog homepage
- When open add new post or page WordPress add post with ID=0 continuously [closed]
- Hooking into the post editing screen for an existing page only
- How do I do a page break?
- Automatically create a new page daily with last three posts
- When changing pages to posts, how do you set up 301 redirects for the page URLs?
- User Selectable Delete of Pages
- How to get ID of the page included with get_page()?
- is_page() and is_page_template() not being differentiated
- static landing page leading to author specific pages w/ “live” content
- How to create a “latest news” page showing a list of posts from blog category
- How do you search for a post or page with a certain url on the WordPress admin panel?
- WordPress 302 Redirect to Random Product/Post/Page
- How to create a page that shows the last 10 posts?
- $_GET parametters not working in an specific template
- the_content() Not Grabbing All Content
- Display Featured Posts Grid on Static Page (Gazette)
- Having pages after specifying post_type post
- Unabled to Change Permalinks – Even Using the “Edit” (Resets to Original Permalink on “Update”)
- Display on page every post in blog WITH comments
- HTML Inside of Shortcode Breaks Shortcode Output
- Organization of time insensitive content
- Adding if statement into the_content()
- Archieve page, Advertisement Every 3 Posts
- Prevent duplicate pages from being added
- What would causes search to return incorrect results?
- Separate blog and reviews categories
- Creating a redirect option for current page url
- I want to add another search box on posts page in dashboard
- Is there a way to find all posts with Youtube video embedded?
- Change the size of the featured image for post?
- Go back to the exact post page number
- WordPress empty page! what is wrong with this code?
- WordPress: Develop multiple posts with different data
- Can’t find webpage on All Pages or All Post menus
- Remove status ‘archived’ from the default post and page view
- Parent menu item does not display posts when I add the sub-items
- Blocked posts in network tab
- How to distinguish pages created by woocommerce?
- How do I customize the post page
- Clicking on a Post takes 10+ seconds for the server to respond, Pages will respond immediately
- Page with Category Returning 1
- Count posts for pagination
- Custom permalink for wordpress page / post
- Multiple Pages – Seperate blogs
- Using WP page password protection as defacto login
- How to add post under particular pages? Like website.com/page1/post1
- I lost the link to my posts in my menu bar
- How to give priority to page than to posts permalink structure?
- Posts in Page – How to customize the URL?
- Display only current page -> posts tags in page
- Page not loading content – Body archive – page
- Display all posts/pages in a multiple selectbox
- Using Post ID and Page ID in same function
- How to mix pages and sub-categories in a url
- How can i add new post on new page
- How to display a paginated list of posts from one category on a page? [duplicate]
- Cant retrieve $_POST inside page, just header
- how to style an individual page in a category [duplicate]
- Redirecting posts in WordPress to a specific page
- Wrap div-tag around posts in page
- Adding a post to a page
- When and how will php code in a user made WordPress page be executed?
- The page that displays Posts on homepage
- Post data returning null [closed]
- wordpress category Description not allowed tag
- Header and Footer options in pages and posts
- Blog posts are not appearing as subs of Blog Page