You entered the quotation marks wrong, I fixed it, maybe it will help:
add_filter( 'term_description', 'do_shortcode' );
add_filter( 'category_description', 'do_shortcode' );
add_filter( 'post_tag_description', 'do_shortcode' );
function my_shortcode()
{
ob_start();
require_once(get_template_directory() . '/html/htmlcontent.php');
$content = ob_get_contents();
ob_end_clean();
return $content;
}
add_shortcode("shortcode","my_shortcode");
Related Posts:
- Show the parent taxonomy by creating shortcode in woocommerce?
- Is There a Difference Between Taxonomies and Categories?
- Check if a post is in any child category of a parent category
- How to export and import taxonomies (category, tag and/or custom taxonomy) and their terms
- How to display non-hierarchical taxonomy as terms with checkboxes?
- get_categories for custom post type with a specific custom taxonomy attached
- Control term order on a per-post basis
- Could not insert term into the database
- How can I add the featured image functionality to a custom taxonomy?
- Let user select their own category
- Copy post taxonomy?
- How could I write a get_categories_by_year() function?
- Get posts in a subcategory of a chosen parent
- Setting selected term_id with wp_dropdown_categories?
- creating categories programmatically
- Natural sort / ordering wp_dropdown_categories
- Shortcode to display all the post from a category in a page
- How to get posts using category slug in ClassiPress?
- Best way to categorize/populate a magazine style layout
- Combining these queries? (Same taxonomy term + same category as post)
- sidebar troubles, taxonomy trouble
- Displaying posts of given category
- get_the_category – display only a single category for a post (not all categories)
- display category with background color
- Category post count is not correct
- Disable Category Taxonomy
- Help to display the current categories and tags of a post
- WordPress Default Category and Custom Taxonomy Selected Attribute not Working After Searched in wp_dropdown_categories Array
- Automatically adding tags and categories into Post Excerpt for searching
- How can i add service category here? [duplicate]
- Show subChild categories
- Return all Tags and Categories in Separate List
- How can i change sort category view starting from child then parent, not alphabetically
- WordPress 5.4 and higher: Filter posts by category 1 AND category 2 in API requests
- How to set the same base url for two different taxonomies?
- Subcategories randomly not working after page/post/category edit in wordpress. Fix: saving permalinks twice
- Limit categories to hierarchal depth of 2
- Why is URL Slug Saving Differently From How It’s Been Defined?
- How to set acf color field as background color to product category
- How to target all woocommerce categories that don’t have any subcategories in them?
- How can I display all products from all categories on one page with woocommerce?
- Filtering posts in category by tag URL
- WordPress Portofolio Conditional Templating – functions php
- Post does not show category wish just show latest post
- Parent Category and Subcategory default text generated with category
- Get WooCommerce product category list in functions.php
- Post List by category and under custom taxonomy
- in post content shortcode works, but hardcoded in same page template doesn’t?
- Displaying a Category on a WordPress Page
- Bulk assign posts to a category using SQL (MySQL)
- display number of posts by category Shortcode
- get taxonomy list in a page in the wordpress
- Number of categories slowing down the site
- Image Upload Custom Form Field for Category and Custom Taxonomy
- outputting taxonomy hierarchy
- Confused about category.php template – not working
- Filter custom taxonomy posts via AJAX
- Create duplicate category page with content variations
- Why use hierarchical taxonomies instead of many custom taxonomies?
- Renaming default category taxonomy?
- How get all media from a posts category by db?
- How to echo Tags and Categories as plain text
- How can I add HTML classes for current taxonomy/term hierarchy into my pages to simplify styles?
- How to Manage and link certain custom taxonomy?
- Display List of Categories Within a Custom Taxonomy
- Display Taxonomies in loop with template args
- How to add a post with new Taxonomy without assigning to default category?
- Grouping parent categories into sections
- get_adjacent_post_link excluded_terms ignored
- Match two taxonomies to display a specific content
- Taxonomy for custom post type not found
- Category base 404 – fix
- Why is my post categories not displaying?
- Display only the latest post
- Problem importing categories and sub-categories
- Return selected categories only in custom page meta box?
- Assign a category by user and customize the edit-tags.php?taxonomy=category page
- list taxonomy based on taxonomy
- get IDs from links categories
- Multiple Parent Category URLs
- Chained drop-down menu for custom taxonomy using chained.js
- Show parent-child relationship for categories in the wordpress admin
- Display only one level subcategory in wordpress
- Only show sub-category
- Converting Categories (with ACF fields) to custom taxonomies
- Sorting Woocommerce products by category and attributes
- Woocommerce custom taxonomy order
- Hook action when create new category [duplicate]
- Taxonomy term RestApi data 10 rows limitions
- Order Categories by Character Count
- Images as Categories
- hide_empty property not working when using get_terms
- Add custom fields to Woocommerce Category Page
- Quick Edit on taxonomy names results in error
- How to make /category/ URL load properly instead of 404 error?
- How to get parent and child sub category (Taxonomy) order to display
- How can I get the categories and subcategories separately?
- When using get_terms with hide_empty = true, terms that only contain scheduled posts are not returned. How to override this?
- Two related taxonomies. how to filter terms in second taxonomy depending on selected term in first taxonomy on Post edit page?
- get_term returns different results, sometimes empty, sometime the correct list