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
- Control term order on a per-post basis
- How can I add the featured image functionality to a custom taxonomy?
- Share one taxonomy across multiple blogs in 3.0 [duplicate]
- Can a Child Category Have More than One Parent?
- wp_update_nav_menu_item() to insert categories
- Admin Panel – Disable Moving Selected Terms To Top of Metabox
- How to make custom taxonomy check boxes like ‘Categories’
- Create terms when registering taxonomy?
- How to create non-unique sub-category slugs?
- How to get next previous category in same taxonomy?
- Display only deepest category on a single post?
- How to add HTML5 ‘required’ attribute to wp_dropdown_categories() without JavaScripts?
- Wrap a chosen category name with div
- Does WordPress Offer a Way to Find All of the Categories that Don’t Have Children?
- wp_list_categories, Add class to all list items with children
- Display empty taxonomy terms with get_terms()
- Return category slug / title from category ID
- Connecting WordPress gallery to custom categories (taxonomy)
- Get term by slug in Gutenberg
- How to query posts from specific authors and categories using WP_query?
- How to get the depth of a category’s subcategories
- New categories are now going to 404s
- Add custom taxonomy under the category title
- Best way to programmatically link to multiple categories (union/intersection) [closed]
- “Reversable” and “Re-useable” Subcategories (or other taxonomic structure)
- Get multidimensional array that reflects category hierarchy
- List Terms in Category
- How to get category URL with the slug?
- Taxonomy filter all children
- force category base – archive pages work WITH & WITHOUT category base slug in url?
- Display Slug instead of Name
- Force a user’s posts category
- Random post + categories + tags
- Search Posts / Pages with multiple options?
- ACF: Display category name using taxonomy field
- How to filter out Categories for specific post types on WordPress Admin?
- Taxonomy name repeating when showing 2 posts from each category
- New Categories Not Shown In the Post Edit Page
- Display Posts Loop for each parent and for each Child
- Is There a Difference Between Taxonomies and Categories?
- How can I edit the ‘Most Used’ tab in the categories meta-box to show another custom taxonomy?
- Custom taxonomy/category order
- Why don’t posts show up in my categories on the frontend?
- Flat category URLs but retaining hierarchy?
- How do I apply style to each category of a list?
- How many categories can WordPress handle before performance suffers?
- Targeting Parent Category Pages
- Create category post shortcode
- Wacky taxonomy in wordpress
- get_terms function not returning anything
- Shortcode interpreted as text
- Include WooCommerce product to all child categories
- Question on using custom structures for categories
- Notice: Trying to get property of non-object in : custom fields category
- WP REST API not retrieving all categories
- Some categories missing on wp-admin/edit-tags.php?taxonomy=category
- List just subcategory and products of active category page in Woocommerce
- I want to show category name when using [category] shortcode
- Adding a H1 Tag to Post Tags automatically, but hide the tag? (Same for Category)
- Eliminate word from $term->name
- What Must to Display the “mysite.com/category” URL?
- How to choose the content from a post which is in the right category?
- Style a category from category list
- How to schedule categories?
- Copy post taxonomy?
- How to get posts using category slug in ClassiPress?
- Combining these queries? (Same taxonomy term + same category as post)
- get_the_category – display only a single category for a post (not all categories)
- Disable Category Taxonomy
- Help to display the current categories and tags of a post
- Subcategories randomly not working after page/post/category edit in wordpress. Fix: saving permalinks twice
- 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
- Post does not show category wish just show latest post
- in post content shortcode works, but hardcoded in same page template doesn’t?
- 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
- 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?
- Display List of Categories Within a Custom Taxonomy
- Grouping parent categories into sections
- get_adjacent_post_link excluded_terms ignored
- Taxonomy for custom post type not found
- Category base 404 – fix
- Why is my post categories not displaying?
- Assign a category by user and customize the edit-tags.php?taxonomy=category page
- Sorting Woocommerce products by category and attributes
- Woocommerce custom taxonomy order
- Hook action when create new category [duplicate]
- Images as Categories
- Quick Edit on taxonomy names results in error