get_option( 'page_on_front' );
If this value is not 0
, there is a static page.
Additional note from Johannes Pille:
get_option( 'show_on_front' );
… returns post
or page
. But be aware of custom post types as front page.
A good way to find common options is to visit the (hidden) page wp-admin/options.php
.
Related Posts:
- WordPress API Menu/Submenu Order
- What is the difference between wp_register_sidebar_widget and register_widget?
- How to enqueue script if widget is displayed on page?
- Custom Image section in Customizer
- Form Submitting Error with get_template_part()
- Get 10 posts from a WP_Query. If less than 10, get the remainder from elsewhere
- get_stylesheet_directory() returns wrong URI… localhost/using vhosts
- Can’t get staging site to display same way as live site. Completely stumped
- How Do I Programmatically Force Custom Permalinks with My Theme?
- wp_get_attachment_image_attributes not working for me
- how to test a theme upgrade
- Best practice (forward compatibility) for theme options
- How to use Plupload in themes
- How to add paging to query
- what’s meaning of it when submit a theme?
- How to remove menus section from WordPress theme customizer
- Returning Variables back into a template
- How to handle thumbnails
- WordPress Google Maps in Custom Theme
- How to add custom template tag in wordpress theme?
- Doubled titles when using All in One SEO with custom template
- In theme development, are there functions which write HTML in a standard fashion to reduce “spaghetti code”?
- Checking if there is an Image inserted – if not don’t display anything
- Get attachments by user
- Retrieve data using wpdb to use for customizer controls
- Appending a value to metabox before and after saving
- Modify the Additional CSS section (adding a disclaimer)
- I made a my own theme to WordPress and Admin Menu missing from frontend
- Creating directory and file using native wordpress file system
- Don’t understand why theming is so strange and twisted [closed]
- Create self-populating menu and add extra divs to the menu layout
- I want edit_post_link() to open in a new window/tab (target=”_blank”)
- wp_get_attachment_image_src() width and height boolean
- How to store functions in… functions.php?
- Is there a need for nonce with Post Metabox?
- Simple way to get two language WP site
- get_page_template returning nothing
- How can i initialize a widgetized sidebar (with widgets)
- How do you force a sidebar widget to have a container div around all child widgets?
- Add widgets to available widgets section without changing the theme?
- jQuery not available to other scripts
- Override template file i subfolders
- Theme Development for WordPress Multisite Installation
- Does the switch_theme action run when you’re upgrading a theme?
- How to obtain the html stripped version of $category->description?
- How to make animated intro?
- Replace custom logo with text
- WordPress Website Browser Compatibility issue with IE [closed]
- StoreFront product pages: Turn the Short Description section into a kindred tab section [closed]
- How to jump to newly posted comment anchor after submit?
- WordPress get_template_part() function not working
- Recommended method for updating/adding menus when adding new theme
- How to use add_theme_support(‘html5’)?
- Best way to develop a new theme on a live site, with new content? [closed]
- Tag Page Not Listing All Posts With Tag
- How do I make the most minimal vanilla theme possible with nothing but raw content?
- Pagination not working on page template
- How can I prevent posts with no title showing up in my query?
- Customizer Color Control Not Working
- get_search_query() not working with search queries with ampersand in it
- where to start with WordPress theme development [closed]
- Create a Grid/List Toggle in WordPress Archive
- Where to put custom page templates in theme?
- If user is logged in and has a role echo statement
- Fixed button and slideshow in template upload per page
- Let user to add input fields on theme option page
- Non-standard (new) theme file
- Best Practice for Server Processing
- MapPress Easy Google Map in Jquery Tabs Problem
- Homepage slider not using correct images
- WordPress Show Single Post on Home Page with previous/ Next Button
- Is there any way to store single.php wordpress file into a php variable
- How to change listing type permlink?
- WordPress theme header.php should I add title meta?
- Fatal error: Class WP_Customize_Image_Control not found
- How do I remove header/page-title image in farvis theme? [closed]
- Menu is in Reversed order
- Which theme PHP file should be edited in order to change Posts appearance
- How to connect two child themes on different sub domains to the same base theme
- Group several custom global page templates in sub-folder
- How to hide blog by id wordpress multisite listing
- Should I detect the device or the page first?
- Get chronological page order
- Query wp_postmeta into an array based on post_id
- Theme not uploading showing maximum upload size on live site
- How to override wordpress native options with theme options
- Best way to access variables in template markup
- How do I get my theme scripts to load in a custom theme built from Bootstrap
- Problem with multiple menus in theme
- How to convert that page to a wordpress template? [closed]
- JQuery Equal Height in Rows Conflicts Only Works without Registering wp_footer();
- Saving Permalinks Results in 403 MAMP (Windows)
- Add rel to all images in a post
- WordPress theme Modifications not showing up on live server
- Incorrect sidebar showing on WooCommerce Store page [closed]
- customize functionality of share buttons under each blog post [closed]
- Which function(s) to build a paged HTML table
- white spaces on the all sides [closed]
- Creating image grid on products page in wordpress
- What is the point of using archive.php instead of index.php?