query_vars in home, not loading the “home” page
query_vars in home, not loading the “home” page
query_vars in home, not loading the “home” page
No CODE is necessary for this. Go to WordPress Admin Panel → Settings → Reading. Then from the option Your homepage displays, select A static page (select below) & then in the Homepage: dropdown menu, select your Work page & Save Changes. Like the screenshot below: . Of course, once you’ve done this, your Work … Read more
Query string becomes encoded when a static page is used as homepage
You could do this by creating a new page called “Home” with the permalink slug of “home” and another page e.g. “Landing” for your landing page. Then go to Settings -> Reading and set the “Front Page” option to your landing page from the dropdown box. You will then be able to link to mydomain.com/home … Read more
Simply put, the WordPress template hierarchy reserves home.php for the homepage, but if you set a Front Page post, it will display that instead. If WordPress core developers reserved it for the homepage, I do not believe it would cause issues with any servers, because they would be putting everyone at risk. Hope that explains … Read more
For me I’d used a little different approach: use an endpoint to create an url like http://example.com/no-formats/ hooking pre_get_posts to set the proper query if needed filter template_include to force WP to use home.php instead of duplicating it No more. add_action(‘init’, ‘add_no_format_endpoint’); function add_no_format_endpoint() { add_rewrite_endpoint( ‘no-formats’, EP_ROOT ); } add_action(‘pre_get_posts’, ‘handle_no_format’); function handle_no_format( $q … Read more
Changing the word count on the home page is easy: if( is_home() ) add_filter( ‘excerpt_length’, create_function( ”, ‘return 300;’ ) ); Just replicate that code and change the conditional check to add this to other pages. The other option is to just insert the code on the template page (home.php, tag.php, etc.), so you know … Read more
the id of the posts page is: $posts_page_id = get_option( ‘page_for_posts’ ); the conditional tag for the posts page would be: is_home() edit: the id of the static front page is: $front_page_id = get_option( ‘page_on_front’ );
I’m guessing the terminology is different but here are a few links to look at http://codex.wordpress.org/Creating_a_Static_Front_Page Basically – save your custom page as custom-page-template.php in your theme folder – create a new page from WordPress Menu – choose your custom-page from the template drop down on the add new page page – Save and View … Read more
To change the site Front Page to be a static Page: Go to Dashboard -> Settings -> Reading Change Front page displays from Your latest posts to A static page In the dropdown beneath this option, select the static Page to use as your Front Page. If you want to display your blog Posts somewhere, … Read more