The is_home()
conditional tag applies to the posts page according to your reading settings or home.php file as opposed to the is_front_page()
conditional which applies to the page on front according to your reading settings or your front-page.php file, if it exists.
Try changing is_home()
to is_front_page()
As for another possible problem might be, take a look at your query arguments
$catquery = new WP_Query( 'category_name=feature&cat=1&posts_per_page=5' );
You are using category_name
and cat
together in one argument. You cannot do that. You have to use one or the other. So you either have to remove the category_name
parameter or the cat
parameter
Related Posts:
- Can I hide a specific post from latest posts page?
- How to call posts under a specific category on static front page?
- Category posts show on local install, they do not show on live server
- Category and Posts in front page
- 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]
- Getting Position of a post in a category
- Display only posts from a specific parent category
- 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?
- Display most recent post in category instead of archive?
- How can I specify a category post on my home page
- How to search only by post title and category?
- Post in Multiple Categories to stay in current category (permalink, next previous post link)
- get_post_type_archive_link(‘post’) returns current category archive
- Permalink Settings: optional settings doesn’t apply to editor
- 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
- How To Remove Certain category Posts From the Blog Page
- How can i sort the categories by ID
- Display posts in three columns by category
- Add icon/badge next to posttitle of specific category
- Add ajax load more function using WP API
- Deleted category by mistake, all posts now have categorized category. Can i revert that?
- Get current category id from post page wordpress
- Saving category to a post, before publishing the post
- Exclude category from
- Assign category to new post via URL
- Stop users posting into category while still seeing contents of the category
- 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
- Disable sticky option for specific categories
- date issue with category post retrival
- How to make multiple sections in home pulling posts category wise?
- What file is the standard frontpage that lists all the posts?
- Showing categories and subcategories with posts
- Change default category when I publish a post
- How to display two random-post sections that are each under their own category
- How to create a sub post?
- Post Image not displaying in category view
- WordPress bulk category select when publishing post
- Exclude some categories from listing on the current post
- how can i display my posts alphabetically?
- Change Post Title For Specific Category
- Unable to differentiate between two categories under custom post type on single.php
- In what context should Categories and Tags be used
- Exclude post category in a blog page
- WP_Query of Category Not Showing First Post
- Create a frontpage.php and static page template
- 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
- Display hierarchical categories/sub-categories for a single post only
- WordPress – When visiting a `single post/ single.php` my category menu item link becomes active
- How to Create another Page Category like the “Post” and “Pages”
- How to create a button to filter posts (list) by meta value
- Why do I have categories with duplicate slugs?
- 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
- 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
- How can I exclude only a specific sub category post from category display?
- how to print total number of posts filtered by category?
- Is it possible to remove actual post pages in wordpress but keep them in categories
- How to get post count including nested categories
- Add category information beneath post?
- Post as frontpage – avoid duplicate content
- Newly created category does not show category
- Post of a specific category – not to be seen in paging previous/next post
- How to show main category related to that post
- Display selected category on post page
- How to pass multiple checkbox values to wordpress query?
- Show a Category Specific Info Box
- How to use in_category?
- About number of posts in selected category
- Display the first post’s comments of category in comments.php template
- How to filter categories of a post
- Category page shows “No Posts” but I do have two assigned
- ‘get_previous_post’ in same category returning (!empty) when no previous post in category exists
- 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
- How to display my categories in a list (to a post, not the sidebar)?
- How to make category for word post_content
- wordpress category Description not allowed tag