try to use a conditional statement to wrap the first loop, such as:
if( get_option('sticky_posts') ) : //only do the next part if sticky posts
add the corresponding endif;
after the endif;
of the first loop.
Related Posts:
- Exclude sticky post from main query?
- Set sticky posts schedule (Automatic)
- Add a single featured post to all pages?
- Using categories & “stickyness” together
- Sticky posts on home page, search, tag and archives without plugin
- Display only the most recent sticky post, display other posts in chronological order
- Include sticky posts in ‘Blog pages show at most’ X number of posts?
- How to make all posts in a category sticky?
- Sticky Posts Not Sticking to Top of Category Archive
- Get sticky post from category?
- How to make all posts in a category “unsticky”?
- “Sticky” posts for each category (archive.php)
- Exclude expired sticky posts
- Exclude Sticky posts from Main Query break Pagination
- ignore_sticky_posts in WordPress 3.0.3?
- Stick multiple posts in a single category
- Exclude Current and Sticky Post
- Front page should display only one category of posts including sticky post with custom featured post box
- Sticky posts not working when a specific category is set
- Make sticky post on save
- Sticky post for each category on category pages [duplicate]
- Pin a post to the top of a page, other than the home page
- Why WordPress CMS uses an array in wp_options instead of a field for Sticky posts?
- ignore_sticky_posts not working with word press version 3.9.1
- How to modify query on category pages to show only sticky posts?
- Make posts non-sticky
- How to check a post is sticky or not yet?
- Custom query: how to get the sticky posts first?
- I would like to change the sticky posts label “Featured” to something else
- How to display sticky post with custom html
- How to display sticky or latest published post on the current category page it belongs to?
- Update a post to remove sticky option
- Show image if a post is featured
- I do not want my front page sticky post to show up in a category
- How to display a sticky post inside a div?
- WooThemes Mini Features – modify query_posts to display only sticky_posts
- Category sticky latest
- How do you get sticky posts to work with categories?
- How can I have sticky posts while ALSO showing posts from a specific category using one WP_Query?
- Exclude Sticky Posts as everyone!
- Don’t move sticky posts to the first page
- Latest Sticky Posts with Grid Thumbnails for static front page
- Pull posts from all categories if quantity is not met?
- How to display only sticky posts on category pages?
- Remove old sticky post on publish
- Limit Number of Sticky Posts to Show
- get_option(‘sticky_posts’) returns stickies that are in trash
- Display latest sticky post or display nothing
- Create thumbs only when a post is sticky or any other way?
- How can I display only sticky posts from a parent category on the homepage?
- Images for sticky posts
- how to display all categories in wordpress?
- How to create an automatic MultiColoumn MegaMenu with Categories WordPress
- Is There a Difference Between Taxonomies and Categories?
- Get Posts Under Custom Taxonomy
- Adding Fields to the Category, Tag and Custom Taxonomy Edit Screen in the WordPress Admin?
- List all subcategories from category
- How To Find Out WordPress Category Table in MYSQL?
- Add custom field to Category
- Get Category ID inside Category template
- Only one category per post
- Sticky Posts exceed posts per page limit
- Adding categories to custom post type in permalink
- WordPress Multisite – global categories
- Get the children of the parent category
- Get posts from sites in Multisite?
- add_action hook for completely new post?
- Can I add a Category Metabox to attachment?
- WP REST API: filter by category 1 AND category 2
- How to display related posts from same category?
- How to Display Product specific to a category with WooCommerce Plugin? [closed]
- How can I allow commas in tag names?
- How To Get Parent Category Slug of Current Post
- Display All Products by Category with WooCommerce
- What is the difference between a “tag” and a “category”?
- Display current category title on category page
- why ignore_sticky_posts in sticky post query
- Is there an easy way to make a meta box have the tabs like the Categories meta box has?
- Hide specific categories from category widget
- How to check if I’m on the last page of posts?
- How to change permalink structure for custom post type and it’s taxonomies?
- Get the first post term
- Display posts from the same category using next/previous post link
- How would I get a taxonomy/category list inside a Gutenberg block?
- Can I set a default featured image for a category?
- 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 show all posts of the category in wordpress?
- Force category choice before creating new post?
- WP_Query by a category id and a custom post_type
- Gutenberg editor add a custom category as wrapper for custom blocks
- How to show related posts by category
- WooCommerce: List All Categories
- How to get category and archive title?
- Get category ID from category slug (not working)
- How do I remove “Uncategorized” from posts with more than 1 category?
- How to add category to: ‘wp-admin/post-new.php’?
- Remove the category/taxonomy description field?
- Get rid of WordPress category, tag and author archives?
- Individual rss feed entry length for categories?