Different banner on home page
if you like a simple solution, you can use WordPress Frontpage Banner plugin, it shows a banner or article only on frontpage http://wordpress.org/extend/plugins/wp-frontpagebanner/
if you like a simple solution, you can use WordPress Frontpage Banner plugin, it shows a banner or article only on frontpage http://wordpress.org/extend/plugins/wp-frontpagebanner/
Change your index.php file back to normal, then set that home page as the front page instead. Then the /home will redirect to / as it should.
First, you need to use the front-page.php template file. In WordPress parlance, Home refers to the Blog Posts Index, whether on the site front page or another static Page, and Front Page refers to the Site Front Page. Second, you have several options for exposing a UI to manage your front-page quotes (in order of … Read more
What I did was really simple…In the admin panel I left the name as home, then I used conditional statements to change the name. For the navigation I used: <ul> <li <?php if ( is_home() ) { ?>class=”current_page_item”<?php } ?>><a href=”https://wordpress.stackexchange.com/questions/32328/<?php bloginfo(“url’) ?>”>About Us</a></li> <?php $args = array(“exclude” => “”.page_name(‘Homepage’).”, “title_li” => “”); wp_list_pages( $args … Read more
Take a look at WordPress’ Template Hierachy. You will need to find which theme is active, and investigate the theme files. Also check Settings → Reading to see if a static page is being set as the homepage. If it is not it should be one of the following template files: index.php home.php front-page.php Hope … Read more
Ok, if you take a look at implementation of is_front_page, you will see the following: /** * Is the query for the front page of the site? * * This is for what is displayed at your site’s main URL. * * Depends on the site’s “Front page displays” Reading Settings ‘show_on_front’ and ‘page_on_front’. * … Read more
I’ve done a few templates that essentially are on one page. I used this code as the starting block for all of them: <?php $my_wp_query = new WP_Query(); $all_wp_pages = $my_wp_query->query(array(‘post_type’ => ‘page’,’posts_per_page’ => -1)); foreach ($all_wp_pages as $value){ $post = get_page($value); $slug = $post->post_name; $title = $post->post_title; $content = apply_filters(‘the_content’, $post->post_content); }; ?> It … Read more
The problem has nothing to do with the rewrite rules (though I would suggest using add_rewrite_rule() rather than the more low level approach of altering the rewrite array directly. The same for flush_rewrite_rules(). Also, although as you have it the rules are only flushed once – it would be better to do it on the … Read more
The extra “nathantornquist” in the URL happens when you don’t have the trailing slash on http://www.nathantornquist.com/wordpress. What are the contents of your .htaccess file?
Since you are saying it’s a “Page”, I believe you should try is_page instead of is_home: <?php if ( is_page( ‘about’ ) ) { // Code to be shown on Page whose slug is “about” } ?> OR for the way your code is, this should do: <?php if ( is_page( ‘about’ ) ) { … Read more