By default, WordPress adds paragraph
tags to category descriptions. Stop this by adding the following to your functions.php file
// Remove p tags from category description
remove_filter('term_description','wpautop');
Simple and easy (codeless).
Thank you
Related Posts:
- How is WordPress changing the content markup?
- Making a specific page wordpress compatable that is not index
- Single Loop With Dual Content Area
- the_content() “crashes” for single pages
- Split Content and Gallery
- How can i display the content in plaintext
- Get ID of a page containing secondary loop in content
- the_content and wp_link_pages
- Add Incrementing ID to each paragraph in the_content
- Use the_content outside the loop
- get_the_content not working in loop?
- the_excerpt(), get_the_excerpt() and the_content() all killing “the Loop”
- Content/Excerpt length control for a specific loop?
- Combining the_excerpt with the_content
- the_content() seems to block my ACF-code
- Removing the_content() from the page
- How to make post content from each post display within the same div
- Display content of page template (get_page)
- Loop after page content
- How to load all pages into one page with their templates
- Only display videos and images in the_content() within loop
- Styling text and images in the_content()
- How do I display an image before the first post of the loop when I’m using get_template_part?
- Cannot retieve the_content() and the_author() – both returning empty strings
- Accessing the Posts page Content
- Using jQuery .after inside loop
- Announces with different formatting dependently on a number
- Insert content above an embedded video inside Wordress’ php the_content
- Excerpts not showing on main page
- Split Content and Gallery
- the_content() keeps repeating itself
- Echo Most Recent Sticky Post in Loop?
- to get a little more content after ‘read more’ inside loop
- how to use custom loop in the_content filter
- change the_content images for different sizes (Desktop, tablet, mobile)?
- Have multiple loops on a page appear after/between page content
- In Loop Output Place Custom Field Content In Between Paragraphs
- Help with add_filter(‘the_content’, ‘some_function’) and multiple matches
- How to add custom HTML markup and classes to the_content()?
- Hide old posts each year
- Why should I put if(have_posts()), is while(have_posts()) not enough?
- Get content from one page and show it on another page
- Remove the Homepage Query
- Content over 10,000 characters won’t display with the_content()
- Using the Loop to show all levels of subpages under a parent page? Halfway there
- Cleanest Way to Select Every Second Element in a Loop?
- How to Change Loop to Order Posts by Views (using wp-postviews plugin)
- Get post by page name or slug
- Are there any scenarios where the query_posts may be used?
- Display subpages under parent page as a list within a loop
- When to use wp_reset_postdata();
- Why do themes have `while( have_posts() )` in templates like single.php?
- Related Posts loop – offset
- Too many nested wp_query loops in this hypothetical query?
- pop-up lighbox with AJAX
- Showing current subcategory
- WordPress Loop – Style rows of posts differently
- Generating dynamic Tabs with multiple query post loop
- How do I override part of the main loop in my child theme?
- taxonomy tags 404 to custom post types
- Displaying recent post excerpts on static front page
- Recent posts on a static home page
- Query last updated posts (posts updated in the last 24 hours)
- I write simple wordpress loop for taxonomy.php file but don’t show result
- Publish Categories for a particular Author on a given Post
- How to hook into container
- the_excerpt() in content.php and get_template_part() in single.php
- How do I pull excerpts from pages?
- Get paged outside of loop?
- has_excerpt() not working inside wp_query
- Show scheduled posts in loop (but don’t link to them)?
- How to get a count of all posts in foreach loop and split into fourths
- Getting posts link in WordPress
- How to loop through yoast primary categories? [closed]
- WordPress get post thumbnail url
- get_posts() forcing ignore sticky posts on main loop
- display post tags on single.php inside loop
- Custom content before post content
- Can’t get the previous and next posts permalink
- Adding first and last classes to three column layout in Bones boilerplate
- Modifying a Loop to Show More
- Does search.php autofilter The Loop?
- How to check all items in a loop have post thumbnail?
- Add 2 values to post__not_in
- How to make the following loop break/stop when it reaches 2 posts (custom post types called Topics)?
- How to display post tag on each post? [closed]
- ACF: display custom filed of CPT into the loop
- Solved – Inserting content inside the WordPress loop
- How to add “NEW” badge on latest posts or published 3 days interval
- Show posts by tags excluding current post
- Adding options to loop
- Featured posts and the loop
- How to fix pagination for custom loops?
- Combining external feed into post loop
- Get last 5 days with posts
- Displaying posts limit: can’t get pagination to display [duplicate]
- Display content from “About Us” page on the Home Page
- The_content display a different content from a previous loop
- How to use add_action(“wpcf7_before_send_mail” outside wp loop?
- Applying a filter to multiple loops for days ago