Function get_term_by
returns object or array (based on $output
arg) on success and false if failed. But you treat it as string and try to concatenate it. So your code should be following:
$cat = get_term_by('id', 17, 'project_cats');
$html_content .= "<h3>" . rgpost('input_1') . "</h3>"; //Title
$html_content .= "<p><strong>Category:</strong> " . rgpost('input_5') . " | <strong>Budget:</strong> " . rgpost('input_3') . "</p>"; //Category & Budget
$html_content .= "<p>" . rgpost('input_4') . "</p>"; //Description
$html_content .= $cat->name;
Read more about this function in codex.
Related Posts:
- How to find objects by terms
- Display certain amount of posts on taxonomy archive page
- How do I get taxonomy terms by ID in a specific order
- Get taxonomy terms only of the WP_Query current posts
- get_term_link() returns correct – But illogical error-messages disturb
- PHP Warning: Attempt to read property “term_id” on bool
- Get term siblings of current child taxonomy
- How to get post’s current parent term ID?
- List taxonomy term slugs within shortcode (do_shortcode)
- Copy taxonomy terms from one post to another programmatically
- Hide image if taxonomy term is empty
- Isotope Drop Down Categories Filter Function
- How to filter custom taxonomy term name, slug, and description?
- Hierarchical taxonomy list with modificated term links
- Exclude product attributes from taxonomy terms loop
- How do I edit the terms output args or array data?
- update_term_meta() only updating once on certain meta keys
- New term taxonomy and description in front page. Input’s
- How to display terms from two taxonomies in one php code?
- Get all the contents of taxonomy and sort by term
- ISOTOPE – Missing/Invalid Arguement Get Terms
- WordPress taxonomy and terms question
- Put ACF function output code the_terms
- Adding Taxonomy Image to taxonomy loop [closed]
- Insert term and child term from frontend
- Display latest x posts from all categories in Custom Post Type/Taxonomy
- Getting error when using wp_insert_post()
- Error: options page not found
- register_taxonomy() take much queries
- Headers already sent in Pluggable.php / homepage and wp-login error
- Which is the correct way to conditionally enqueue a CSS file?
- Way to bulk make all my tags lowercase?
- “Undefined index” error when saving empty array with checkboxes
- Category title output before opening title tag
- Include Parent Term in wp_list_categories
- How can I access string value in an array?
- Limit Taxonomy Output in Conditional Statement
- Preg_Match(): compilation failed unknown property name
- Get all categories post is not in
- How can I display a div ONLY if it is not a certain term page
- Warning: Illegal string offset on theme options page [closed]
- customize wordpress database error page
- PHP if statement works in template files, but not header
- Errors after upgrading PHP to 7.4 WordPress
- PHP-warning in post-template.php and no loading content on pages
- Add class to website based on post taxonomy
- How to end a while loop when used in a fetch assoc function [closed]
- After adding my website to a new server, I keep getting a unexpected end of file error, but the file is identitcal to it’s original source
- Advice on creating a WP Archive Template with Custom Taxonomy (get_term_meta)
- Parse error: syntax error, unexpected ‘}’ [closed]
- Array to string conversion error in PHP 7.2 when returning user role as class
- Show the section only if custom taxonomy was chosen
- How to insert wp_users ->user login name to wp_terms when a new user registering?
- javascript variable to wordpress php variable
- PHP E_WARNING being shown despite php.ini [closed]
- Change header on pages displaying taxonomy items
- What’s wrong with this piece of code? [closed]
- WordPress site with embedded menu – gives You don’t have permission to access /wp-content/themes/xxx/taxonomy-redirect.php on this server
- Create a a form for custom taxonomy terms
- can’t get errors
- Angular not defined [closed]
- Cannot load media and I get “PHP Warning: Invalid argument supplied for foreach(“
- Taxonomy term count
- How to get all the items of a taxonomy even if it does not have a custom post type?
- WordPress custom taxonomy
- Filter unique custom field value based on custom taxonomy category or other custom field
- Fatal Error wp-settings.php on line 119
- How to break up php code to avoid echo
- Woocommerce getting top level category parent and make all sub categories have the same template and menu
- How can I fix this code [duplicate]
- PHP displaying wrong custom taxonomy images
- Unsetting post_tag taxonomy breaks term description for other taxonomies
- Help with accessing wp-admin page and resolving error messages
- Blog suddenly shows Archive instead of index page
- Too many errors on log
- Programmatically revert to backup .htaccess a possibility?
- Prevent post from being published and show error
- WordPress Conditional / Multiple Taxonomy Query
- Hi need update in my terms for other taxonomy
- How to change the author box selection on a post to a custom taxonomy
- WordPress: Export/Import Yoast meta title & description to custom taxonomy
- Illegal string offset in PHP function in via Theme Customizer
- Show related products by attribute based and certain conditions
- Display acf taxonomy attachment
- How to hide a child category and show his parent category
- Can’t log in to WordPress wp-admin after adding code to functions.php
- Cannot find the php_ini configuration file to find my error log to see why my code is not working
- White screen after migrating site, but wp-admin works fine. Disabling all plugins, applying default theme and enabling debug mode does nothing
- Fatal error login WordPress [duplicate]
- I am having errors with checkout on wordpress
- How to retrieve taxonomy Metabox fields in frontend
- ACF Taxonomy field values not select in backend
- Intermittent 503 Service Unavailable Error
- PHP Warning: mysqli_query(): after updating my websites php from 5.6 to 7.2
- Multiple Tag Filtering
- WordPress Bad Request Error 400
- ACF – Can’t get custom post type by taxonomy
- Trying to get property ‘ID’ and ‘post_author’ of non-object error
- Create category after theme setup and modify the default one
- HELP: cannot log into wordpress. PHP error