See: http://codex.wordpress.org/Function_Reference/is_home
<?php if(is_home()): ?>
<div>Your div.</div>
<?php endif; ?>
Related Posts:
- Fatal error: Call to undefined function mysql_connect()
- Allow Editors to edit pending posts but not draft ones
- Retrieve multiple values passed to a single attribute in a shortcode
- Inserting Gravity Form checkbox values into Advanced Custom Fields [closed]
- Security – Ajax and Nonce use [closed]
- How to display only first value of database column in WordPress
- Routing a custom php on wordpress
- Nice scroll to wordpress
- Alter secondary loop to exclude posts from current page category
- How to create filterable portfolio in WordPress?
- WordPress Customizer not setting default value upon initial install?
- there’s a way to include a minimal WP for check only the current user, its roles (caps?) and then release/free it?
- Does WordPress have a built in reference to the PHP version its running under? [closed]
- Blank space at beginning of tag?
- Convert a date to ISO8601 date format
- Update PHP version 5.3 to 7.2 or first WP 4.7.11 to 4.9.8?
- custom shortcode will not display the wrapped content
- How to expire session after 2 hours and also expire when browser closed?
- How to remove the excerpt in the Dzonia Lite theme
- Add user settings to specific roles
- How to display conditional-content if wp_nav_menu( $args ) retruns something
- Make the first item as default on Woocommerce product category items list
- Get first URL from post content
- Setting custom canonical urls
- Using a variable in is_page(array())
- WordPress blog post url on category page
- How to output a PHP file values by shortcode?
- How to programmatically add Gallery Block to Existing Post Content
- PDF file randomly breaks upon upload
- dividing sub-categories by parent category – WordPress
- Return encoded Page Title outside of a loop
- WordPress homepage infinite redirect
- WordPress returning 404 for multisite pages
- 3 Slashes appear after Apostrophe in custom fields after updating product-site
- If no image, bigger text
- Attach previously uploaded image to post – current code has unexpected results
- [jQuery]Adding shortcode
- Trying to retrieve post meta
- Need help enqueueing webfonts
- WP & Server Speed [Teacher Question]
- Error call_user_func_array() expects parameter 1 to be a valid callback when using image_size_names_choose
- Remove author link wherever author’s name is display
- How to style one item from main navigation?
- How set a custom URL for a new theme file in WP?
- Add class to website based on post taxonomy
- Need php code’s output to display underneath a Divi Module
- woocommerce related product title length
- How to get post ID from button and pass title to Modal
- file_get_contents(includes_url( ‘/js/jquery/jquery.js’ )); not working
- what is the method to echo class attribute inside the i tag? [closed]
- PHP Warning: include(): Unable to allocate memory for pool
- javascript variable to wordpress php variable
- Do I need to edit my theme in order to change the title of my blog page?
- trouble with parse error [closed]
- Why does my settings form redirect to the homepage?
- Passing an array into WP_Query as a variable
- Do not duplicate posts with multiple categories in multiple loops
- Can’t change website Title on wordpress
- Shortcodes showing in excerpt despite using strip_shortcodes
- Query for user roles
- Php file that doesn’t recognize wordpress functions
- Set cookie for visitor
- Remove Post if Advanced Custom Field is checked to fix paging
- Using php inside javascript [closed]
- Is there a way to create a “copy post” link?
- Use of antispambot with $curauth->email
- How to separate product payment and shipping payment in WooCommerce checkout? [closed]
- Add a suffix to the image in the_content()
- add role on WordPress in PHP on a second database
- WordPress single.php get_header not working
- Load more posts using AJAX based on posts inside WP_Query
- Undefined array key 0 wp-includes/capabilities.php on line 76
- Enqueue assets from multiple directories using add_action/do_action
- Store GA Client ID in User DB
- Changing Date Format on Custom Meta Data w/shortcode call
- Hide author from search results meta, still display date and categories
- How to redirect (301) trashed post to it’s parent taxonomy TERM ARCHIVE instead of 404 page
- A WordPress Page to display custom database query results
- style.min.css code issue
- Site doesnt work once PHP changed to 7.1
- How to detect and make links nofollow in author description
- admin uploads pre_get_posts not working as expected
- can’t delete a row from post_meta table
- Making my own admin panel for WordPress
- Run PHP Results inside WP Shortcode
- WordPress plugin creating sidebar on the theme/page
- Change taxonomy for categories
- Accessing Variables Used In a Plugin Using PHPStorm + XDebug
- Show Nav Link To Users Signed In
- WordPress $GLOBALS and PHP $GLOBALS
- Display wordpress post to static website in the footer
- How to echo a different field if another field is empty?
- Remove the_content From Loop
- My title is showing after the shortcode
- Display Sale Price Before Regular Price (WooCommerce)
- Load a Header in wordpress
- Trouble figuring out how to get my button to submit comment
- Adding multiple conditional tags in a function?
- Using is home to get content [closed]
- Import js variables loaded via wp_localize_script() into js module without global scope connection