WordPress Redirecting Form Action to Home Page

You have to set the path in the action attribute of your form, e.g. <form action=”/my/form/page” method=”post”> … </form> If action is missing or empty it will send the form to the current page, if it is just “https://wordpress.stackexchange.com/” it will send it to the home page.

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

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; }