Have image slider display only on home page

Try this <?php /** * The Header for our theme. * * Displays all of the <head> section and everything up till <div id=”content”> * * @package GovPress */ ?><!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta charset=”<?php bloginfo( ‘charset’ ); ?>”> <meta name=”viewport” content=”width=device-width, initial-scale=1″> <title><?php wp_title( ‘|’, true, ‘right’ ); ?></title> <link rel=”profile” … Read more

Adding slides to an existing carousel manually

No it would not be a viable solution. Never hard-code content like that. Assuming you have a slider, you should create a custom post type (or use a plugin like ACF to create a repeater field. Then you’d query a loop of either said posts or fields, and create the appropriate html markup. That way … Read more

different startsite for IOS and change menu

If the url’s for both site is different, You can simply check if site is being viewed from mobile or not and than you can redirect to your second site if it is mobile… Here is one of code who detects whether it is mobile or not… http://detectmobilebrowsers.mobi/ You can use such code detect mobile … Read more

Set home page to last page of a certain category

you can use the per_get_posts filter hook to change the order of the query something like: add_filter(‘pre_get_posts’, ‘filter_homepage_posts_order’); function filter_homepage_posts_order($query) { //only run is current page is home page if ($query->is_home) { $limit_number_of_posts = 5; //number of posts $featured_category_id = get_cat_id(‘Reviews’); // by cat name… $query->set(‘cat’, $featured_category_id); $query->set(‘posts_per_page’, $limit_number_of_posts); $query->set(‘order’,’DESC’) } return $query; }

How to access the so called “Posts page”

http://codex.wordpress.org/Settings_Reading_Screen “Posts page – Select in the drop-down box the name of the Page that will now contain your Posts. If you do not select a Page here, your Posts will only be accessible via other navigation features such as category, calendar, or archive links. Even if the selected Page is Password protected, visitors will … Read more

Display DISQUS on homepage

Hook it in from your child themes functions file or add the template tag to a front-page.php file Untested add_action(‘loop_end’,’disqus_front_page_after_loop’); function disqus_front_page_after_loop() { if (is_front_page() && function_exists( ‘comments_template’ ) ) { comments_template(); } } Change the loop_end hook to another WordPress or theme specific hook. If using the template tag, you might want to try … Read more