There’s a site option for page_for_posts
, so you might try if ( is_page( get_option('page_for_posts') ) )
.
Edit: According to the Codex, is_home()
will tell you if you’re on the blog page when you have a static front page: http://codex.wordpress.org/Conditional_Tags#The_Main_Page. I can’t test it right at this moment, but if that’s true, then that must be what you’re looking for. I guess I hadn’t had to do this before, really good to know.
Related Posts:
- Split up wp_nav_menu with custom walker
- how to create a menu with all sub categories?
- How to avoid wp_nav_menu() ID conflict?
- Remove unusable metaboxes in nav menu management screen
- Highlight parent menu item when child is not in menu
- Add Commas Between Menu Items?
- Allow html tags in WordPress Custom Menus Description Field
- Add custom attribute to menu item link using Filter
- Remove nav menu or menu item
- Creating new dynamic menu including BP links [closed]
- Building a Sub-menu: Display Parent Category/Page’s Children When Viewing Children
- Getting stripos error when trying to add menu classes
- Output the aria-labelledby parameter for a nav menu child
- Hide menu items for visitors and filter based on role
- Add a “has-children” class to body tag?
- Custom Nav Walker sub-menu HTML construct
- How to remove trailing tags from wp_nav_menu walker
- Custom Walker for Walker_Nav_Menu
- Make compatible custom menu widget for Twitter Bootstrap
- Different side menu on each page
- How to scroll item in the Menu setting effectively?
- Building custom API and using wp_get_nav_menu_items to get menu items. Only works when logged in, returns nothing when I’m not
- Appearance -> Menu -> Menu Structure : Add plain HTML code as an element
- Replace menu permalink/hyperlink with only menu name/slug
- wp_nav_menu add some element to container
- get_search_form() doesn’t appear to take parameter into account
- Custom menu deletes itself
- Header style different on home and remaining pages
- Pass GET params to URL from a main menu item
- show different admin menu to different user roles
- How to include a third level with wp_get_nav_menu_items function
- Schedule Page to Menu [duplicate]
- Limit the menu child levels under “admin > appearance > menus”
- I need help adding a second custom menu item to the WooCommerce account area menu
- how can remove this element to avoid having two menu buttons with one that shows unnecessary pages
- Why aren’t my post showing under my custom menu?
- WordPress Menu Walker: add #hashes to child page links (only)
- Custom Menu’s – Disable Link checkbox
- Using my WordPress menu on another platform
- Header and nav menu problem on Thesis site [closed]
- How to style a specific nav menu item?
- How to remove menu labels in word press?
- remove class “sub-menu” from wordpress drop down menu
- Add a submenu to wp_nav_menu
- remove menu items if user can’t read
- Adding numbers inside a span tag in nav menu [closed]
- I’m using wp_nav_menu to display my menu, but I want one more link in there that is a hardcoded link. How can I do this?
- Automatically going to the first page in a hierarchy?
- Is there a hook for nav menu item links to add custom css programatically?
- rearrange the posts by published date in Menu posts selection
- Setting color of specific menu items depending on page or post tag
- sub menu link is not working
- Orderby menu_order not working; menu is sorted on publish date
- Disable parent in wp_list_pages – WordPress
- Add scheduled page or post in the menu section on back-end
- Change Menu Button Text [closed]
- Show Sidebar Menu Subpages When Clicking Parent
- Menu page with three columns
- Current User In Custom Menu Item URL [closed]
- Creating other page than page.php
- Appearance > Menus > Left Sidebar > Add Toggle
- How to open a lightbox form from a navigation menu item
- Efficient wp mobile menu
- Echo Menu located in primary navigation
- Dynamically populate the menu when a new category is created
- Navigation item – current date in url
- Menu items not clickable
- How do you show horizontally the submenu in WordPress using the nav walker?
- why are my walker menu is showing like this?
- Bootstrap Theme Migrated to WordPress
- How to remove top menu item and font awesome icon in WordPress menu?
- Add “onclick” option to header menu item
- Menu with sub-items but without link
- Creating navigation out of specific IDs and their children?
- I can´t make the menu unclickable in an easy way
- 2nd level (drop-down) of the navigation menu not working [closed]
- Mobile menu not working – jQuery error?
- show a hidden ul if li is active
- How can I make menu items into two seperate buttons with different functions?
- Responsive Dropdown Menu
- How to separate sub-menu output and keep associated with parent
- How to style wp_nav_menu?
- How to inject HTML to secondary menu on front end?
- Different colors for navigation bar
- Eliminate menu collapse button on website
- Best way to build a 500 item menu
- Showing main menu and child menu in diffent places in a same page
- WordPress Navigation default output
- Specifying Class style for Menu
- Convert HTML code to WordPress menu
- How to view menu and submenus in URL
- Permalinks linking to similar named site
- Add monthly archives menu and submenu
- wp nav menu – highlighting current page not working properly [closed]
- Hamburger Navigation Menu
- Custom navigation / menu output (walker?)
- How does WP knows which template to use for a page
- Active Navigation Class Based on URL on icon
- Rename Menu icon in Twenty seventeen theme
- WordPress Menu – Adding a new dynamic element to the menu