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?
- get_categories for custom post type with a specific custom taxonomy attached
- Could not insert term into the database
- Weird behaviour when adding terms/term_taxonomies programmatically
- How can I select a primary category?
- wp_update_nav_menu_item() to insert categories
- Counting number of posts in a category and its sub categories and displaying result using shortcode
- How to get next previous category in same taxonomy?
- Display only deepest category on a single post?
- How to create tabled index of posts in a certain category
- Wrap a chosen category name with div
- What’s the difference between “parent” and “category_parent” in a WP_Term object?
- Update taxonomy value of post type in query
- How to query posts from specific authors and categories using WP_query?
- How can I convert some categories to a custom taxonomy?
- Any way to assign Post Categories and Tags to Links?
- Add custom taxonomy under the category title
- Display name of the last child category
- How to export/import categories and keep their IDs?
- How to use wp_category_checklist()?
- List Terms in Category
- How to get category URL with the slug?
- Get all sub-categories of a parent category
- How to view WordPress’ default category IDs?
- Random taxonomy category list
- Omit specific product categories from WooCommerce shortcode
- force category base – archive pages work WITH & WITHOUT category base slug in url?
- Display Slug instead of Name
- Change existing taxonomy settings when using custom taxonomy
- Show Available Taxonomy List with Current Category
- category filter doesn’t work in WPML
- Exclude a category from the_category in the single post page
- Why does the argument list_only do on Walker_Category_Checklist::start_el?
- Filtering multiple categories via the URL
- Display specific categories by ID
- Display Posts Loop for each parent and for each Child
- Why don’t posts show up in my categories on the frontend?
- Flat category URLs but retaining hierarchy?
- Drop posts from categories in MySql
- Customize category page for different custom taxonomies
- How do I apply style to each category of a list?
- Get posts under a category with SQL
- How many categories can WordPress handle before performance suffers?
- Custom taxonomy template for categories
- Redirect to another page using contact form 7? [closed]
- Create category post shortcode
- Wacky taxonomy in wordpress
- Question on using custom structures for categories
- Notice: Trying to get property of non-object in : custom fields category
- Display sibling categories on category page
- How to modify the output of wp_terms_checklist when used within the built-in category metabox on edit posts?
- 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
- get_posts() from parent category only using a shortcode
- WP 4.7 in_category change?
- Illegal string offset ‘taxonomy’ in
- How to schedule categories?
- Let user select their own category
- Copy post taxonomy?
- Setting selected term_id with wp_dropdown_categories?
- creating categories programmatically
- Shortcode to display all the post from a category in a page
- Combining these queries? (Same taxonomy term + same category as post)
- sidebar troubles, taxonomy trouble
- Category post count is not correct
- 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
- How can i change sort category view starting from child then parent, not alphabetically
- Subcategories randomly not working after page/post/category edit in wordpress. Fix: saving permalinks twice
- 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
- Bulk assign posts to a category using SQL (MySQL)
- 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
- Why use hierarchical taxonomies instead of many custom taxonomies?
- How get all media from a posts category by db?
- How to Manage and link certain custom taxonomy?
- Display Taxonomies in loop with template args
- Grouping parent categories into sections
- get_adjacent_post_link excluded_terms ignored
- Match two taxonomies to display a specific content
- Category base 404 – fix
- Display only the latest post
- Return selected categories only in custom page meta box?
- get IDs from links categories
- Multiple Parent Category URLs
- Chained drop-down menu for custom taxonomy using chained.js
- Display only one level subcategory in wordpress
- Only show sub-category
- Converting Categories (with ACF fields) to custom taxonomies
- Woocommerce custom taxonomy order
- Hook action when create new category [duplicate]
- Taxonomy term RestApi data 10 rows limitions
- How can I get the categories and subcategories separately?
- Two related taxonomies. how to filter terms in second taxonomy depending on selected term in first taxonomy on Post edit page?