Wrap the div with a if condition like this. It should do the job!
<?php if($qo->description):?>
<div class="row">
<div class="col-sm-8 mx-auto py-5">
<?php echo nl2br($qo->description) ?>
</div>
</div>
<?php endif; ?>
Related Posts:
- Mark menu item as current-menu-item for category
- Exclude category from
- Disable sticky option for specific categories
- Give posts a particular template based on the assigned category
- Change from all posts to specific categories post on main page?
- How can I fixe the article title problem?
- How to add category to: ‘wp-admin/post-new.php’?
- Use category base slug in posts’ permalink
- Setting Custom Sort Order of Posts within a Category
- Display the latest post from a category in a page
- How to show list of posts by author and category?
- Exclude posts that only have the ‘Uncategorized’ category [duplicate]
- How to control which category will be picked for the slug of a post?
- Add default content to post (for specific category)
- Query only Posts from Both of Two Category?
- How do I change the gallery that is inserted in the post?
- Display most recent post in category instead of archive?
- Posts Page Featured Image [closed]
- Use template of parent category for single post sub-categories
- Post in Multiple Categories to stay in current category (permalink, next previous post link)
- get_post_type_archive_link(‘post’) returns current category archive
- Get user’s most published categories
- Conditional that checks if a current category has any subcategory with posts
- How to set post expiration date and time and move the page to archive after expiration [closed]
- Exclude posts from featuring
- Articles are text-only in any “Category” instead of HTML
- Random post category URL
- How To Remove Certain category Posts From the Blog Page
- Add icon/badge next to posttitle of specific category
- Admin Notices don’t display on the admin screen for certain post
- I am unable to publish/update post
- Custom WordPress Theme: Publish Date and Display Date for posts right beside each other
- Get current category id from post page wordpress
- Saving category to a post, before publishing the post
- Assign category to new post via URL
- Stop users posting into category while still seeing contents of the category
- get_the_excerpt() is not working as expected – returns wrong text
- Category Page Template not Showing Posts
- How to Restrict Previous & Next Post Link to Posts of Same Category?
- WordPress custom Query for Posts in Category display posts multiple times
- Categories list into registration form
- How to get subcategories from category slug?
- How to display two random-post sections that are each under their own category
- How to create a sub post?
- WordPress bulk category select when publishing post
- Exclude some categories from listing on the current post
- Parent category / child category posts
- Posts Missing in Dashboard after update
- Unable to differentiate between two categories under custom post type on single.php
- Exclude post category in a blog page
- Retrieving posts by their date and category
- WP_Query of Category Not Showing First Post
- Change default post style to columns
- How do I allow certain users to make a certain type of post?
- How to make posts being uncategorized
- How to display a single(current) post from a category
- displaying the categories post
- What’s a theme that properly handles previews of different types of posts?
- How to add content above footer in posts from specific category
- WordPress – When visiting a `single post/ single.php` my category menu item link becomes active
- Author post count in category
- How to pull latest posts from a specific category
- How to Create another Page Category like the “Post” and “Pages”
- How to create a button to filter posts (list) by meta value
- Is there a way to save different data when USER interacts with the same POST?
- How to display particular categorie’s post which associated to specific user?
- Display Specific Categories posts on the home page
- show only one category and filter by tag
- Automatic Table of contents with categories and posts
- Code to display random ordered posts in Categories across pages [duplicate]
- AJAX load more posts not using correct category and repeating the same few posts
- Category posts show on local install, they do not show on live server
- How can I exclude only a specific sub category post from category display?
- how to print total number of posts filtered by category?
- Integrate video and iframe in a post type gallery
- How to put the WordPress blog into theme
- Displaying a specific sub-category’s posts from wp_query
- Need help with hiding an image within a post in a category
- How to filter out post from a category not its subcategory in wordpress dashboard
- Add category information beneath post?
- Post are not showing up
- Blog styling in SASS
- How to list all names and descriptions of a custom taxonomy
- Newly created category does not show category
- How to pass multiple checkbox values to wordpress query?
- Show a Category Specific Info Box
- Display the first post’s comments of category in comments.php template
- How to filter categories of a post
- How to show only the date, the title and a little “summary” of my WordPress post in my custom theme?
- List posts related to category on a div [closed]
- how to show all post with its contents
- wordpress show category link instead of post link [closed]
- CSS – Change height of Storefront / WooCommerce product categories, but not products
- excerpt in template for specific page
- Wp_query WooCommerce products
- Only show posts belonging to multiple cateogries at same time
- How to display my categories in a list (to a post, not the sidebar)?
- How to make category for word post_content
- No matching template found when using single.php
- Site ‘Categories’: save an admin global setting with post metadata [closed]