The home page of a site. Could either contain the blog index, or a static page.

learn more… | top users | synonyms

27
votes
3answers
17k views

When to use is_home() vs is_front_page()?

I've found that is_front_page appears to return true when I'm viewing the home page and have a single sticky post assigned there. It also returns true when I've assigned a page as the static front ...
-1
votes
1answer
21 views

Can I check who updated the static front page on WordPress and the time it was done

I need to check who updated the static front page of a WordPress site and the time it was done. Is it possible? And if so how? I'm an administrator of the site and there are other administrators with ...
0
votes
0answers
8 views

Forwarding to a WP site in a sub-directiory [closed]

I have a site in a sub directory whitnashssc.com/Fun/. Its for a local charity fun day and the guy I have built for has registered the domain name with another provider. The domain name is ...
1
vote
2answers
800 views

Set static page as default front page on newly created sites in multisite

How to set a Static page (example Sample Page with every WordPress install) as default fron page for every newly created site on multisite network. I mean when a new user creates a site on my ...
0
votes
1answer
14 views

I can't enqueue Suggest.js in frontend - not added

my suggest.js is not being added in front-end. All scripts are correctly loaded but this one. I want to load it only on frontpage so: add_action('wp_enqueue_scripts', 'homescripts'); function ...
0
votes
2answers
459 views

How to create a custom Wordpress front page

I want to create a custom front page for a Wordpress site, which will have an image, some text, an embedded login form, and a metaslider slider, and nothing else (no menu, no sidebar, no footer). ...
0
votes
2answers
27 views

Hard Coding Components on a Client Specific Websites

This is something I have been meaning to ask for a while to get some feedback. If you are creating theme template files for a client and you know what needs to go where e.g. buttons, logo, component ...
0
votes
1answer
25 views

How to set wp_options in functions.php for removeing the Default Front Page

I want to disable the default front page as I want to show always the first listed page in the frontend. Therefor I disable the Static Front Page. But I have also to set in wp_options the variables ...
0
votes
0answers
69 views

How to prevent duplicate sticky posts

I trying to make a homepage for my Wordpress bootstrap theme which shows the sticky posts in a separate section stretching from side to side and below that I intend to show only 10 posts from the ...
1
vote
1answer
209 views

Using add_rewrite_rule() to redirect to Front Page

I'm using a static page for my Front page. It is a custom template. On my custom template I am using WP_Query() to show a list of posts. I also have a custom taxonomy called "Types" that I use on my ...
0
votes
0answers
33 views

Pagination on Front Page

I'm having an issue trying to get pagination to work on the homepage of a site I'm working on. The "Older" and "Newer" links show correctly, and it updates the url to reflect the page number but the ...
0
votes
1answer
53 views

How to set up Custom Post Type archive page as Front page

I've registered a custom post type named portfolio and have coded it's respective archive-portfolio.php file. Now, my requirement is to make this page available to be set as front page. For which I ...
2
votes
2answers
4k views

Static page homepage not showing the_content

I must be doing something wrong here. I setup my site with a static front page using front-page.php. I created a page in the admin with a title and chose the front-page.php in the template dropdown. ...
7
votes
1answer
914 views

Using pre_get_posts on true pages and static front pages

I have done quite extensive research on how to use pre_get_posts on true pages and the static front pages, and it seems that there is no fool proof method. The best option I found to date was from a ...
-2
votes
1answer
33 views

Where can I decide the number of posts to display on the blog index page?

My blog posts index page (http://katievb.com/blog/) is showing only 1 blog post at a time; I want it to show more. I am currently using X Theme as my WordPress theme, but a similar problem happens ...
3
votes
1answer
46 views

Load front-page.php from subfolder

My front-page.php works fine in the WordPress root folder. But I would like to put it in the page-templates subfolder. How do I make it load from there?
1
vote
1answer
40 views

Pagination causes error 404 when used with front-page.php

I am creating front-page.php. This page will display the latest featureed posts, and will also have pagination option to go to the previous featured posts. I wrote the code for frontpage as follows ...
1
vote
3answers
44 views

Can we allow users to choose front page from theme options?

I know it's easy to choose Front Static page from settings>reading>front page. However, I am looking for a way to have this feature in theme options. Can we do this?
2
votes
2answers
87 views

How to set a custom post type post as static front page?

I am writing my custom theme from scratch and I have a custom post type 'my_frontpage' and want to declare one of it's posts as front-page. I want to do this via admin, hence simply add my cpt to the ...
1
vote
1answer
49 views

Displaying recent post excerpts on static front page

I'm trying to display a static front page with recent posts at the bottom. Specifically, I want to display just an excerpt from the recent posts, as would be returned by the_content() if I had a ...
0
votes
1answer
32 views

Static page for desktop or mobile

Can you automatically change to a static page if access to the site is via mobile device? Currently my homepage is static and use components that do not work properly with mobile devices but are are ...
1
vote
0answers
63 views

Pagination not Working on only Front page on latest verson of WordPress

My pagination is not working on front page for custom post type, its working properly when is not select for front page. My code in functions.php /** pagination **/ function fruit_pagination($pages ...
0
votes
0answers
49 views

WordPress prev next button in frontpage

Hi I have working pagination but if I'm using in static/frontpage prev and next button not showing or not working properly. If I add max num pages in next button it's showing but always going second ...
5
votes
3answers
2k views

Category page doesn't use category.php, instead it redirects to homepage

I am currently modifying a theme. This theme doesn't had a category.php I needed a custom category page. So, I made one. It works on my local server, but when I uploaded it to a real server, this page ...
0
votes
0answers
22 views

Static front page is set correctly but not displayed

I set a static homepage, but it's not posting after I save and refresh the site. It was working once before, but I changed it back to the original theme homepage while I finished developing it. Is it ...
0
votes
0answers
26 views

Theme Load Error

For 2 days I'm struggling and hitting my head to find out the solution but no thing. The website isn't loading images on front-page and news-ticker not working at all. I tried to re-uploading the ...
0
votes
1answer
47 views

index.php not loading in main folder of wordpress

I just installed [first time] WordPress 4.3.1, but I was facing the problem with it so I downgraded and installed 4.2.5 and facing same problem. Problem: index.php is not loading, I clicked on link ...
2
votes
1answer
5k views

How can I create a “Read More” link using the_excerpt() on a static front page?

I'm working on a website that uses a static front page. It also shows the single most recent blog post. This was achieved by creating a page and using a custom page template. Sometimes, the blog post ...
1
vote
1answer
41 views

How to target only the front page (not subsequent paginated pages) in theme/plugin?

I'd like to switch on the front page ONLY. Not subsequent paginated pages (like ?paged=2). I want to output certain output only on the "true" front page of the site. I've tried: <?php if ...
2
votes
2answers
612 views

Setting a static home page and blog page without using the settings

This may seem like a stupid question, and it probably isn't possible, but is it possible for me to set a static home page (using front-page.php) and a blog page (using home.php, I think) in my theme, ...
0
votes
1answer
106 views

How do I set the front page programmatically?

I need to allow my users to set the default page of the blog. So when someone visits, "www.example.com/blog/" the page they see is either the blog posts list or a specific page. It looks like I can ...
0
votes
0answers
46 views

strpos() expects parameter 1 to be string Error showing only in customizer

Whenever I go to customizer and from front page go to other pages(ex - right sidebar page), at the bottom of the page I get this error - Warning: strpos() expects parameter 1 to be string, object ...
0
votes
1answer
38 views

how to change single post link

I have made a website for a client which involves products tab in navigation. Products are the posts that being posted in "posts". I have a front-page.php which is static. posts are displayed in ...
1
vote
4answers
612 views

Create static front-page with 3-5 recent posts

I am struggling with front/landing page customization for my custom designed theme. I have designed custom theme and pretty much coded it using the Underscore boilerplate. As I understands, the ...
0
votes
1answer
21 views

Showing “best posts” in front page

What is the best way to Show my "best 5 posts" in the front page of my site (www.example.com). The only way I have found to do this is by assigning a specific category to these post and show the ...
1
vote
1answer
105 views

Set a static front-page as a landing page programmatically

I am in process to create my first wordpress theme with underscores.me skeleton, the theme i would like to create its a business theme so when my theme is activated to land directly to a static ...
2
votes
1answer
65 views

Can you select a post as the front page or only pages?

Is it possible to select a post as the front page but show all the posts lists? Here's what I'm trying to do. I can easily create posts and I want to set one of them to be the posts page but when I ...
0
votes
1answer
20 views

Static front page has page url not site url

I have a custom post type being used as a static page. My site url redirects to www.mysite.com/slug/my-page-title but I want it to stay www.mysite.com
1
vote
1answer
38 views

Customizer Settings in Arrays

Good afternoon. I'm using the theme customizer to allow the user to select which pages to show the excerpt of on the front page. I've done this by using an array in the setting name: ...
0
votes
3answers
258 views

Front page welcome message area

How i can create a welcome message area for my frontpage with backend control {admin panel} Welcome message
0
votes
1answer
22 views

Pull in content from page defined as static front page

I am trying to pull in <?php the_content(); ?> for the page I have defined as the static front page in WordPress's back-end but can't figure out how to target it and pull it in.
0
votes
1answer
63 views

is_home and is_frontpage always true

I'm trying to limit the number of posts on the homepage but is_home() and is_frontpage() always seem to return true (even when I'm browsing /page/2/, /page/3/ and so on). I've basically duplicated ...
7
votes
2answers
260 views

is_front_page() malfunction?

I've a pretty basic problem that I'm surprised WP doesn't have a native solution for (unless I'm overlooking something, hopefully). I've a WP site with static page set as front page in reading ...
0
votes
0answers
28 views

Rewrite / Template Include Filter, assumes front-page?

I'm pulling in data from a 3rd party API for a project I am working on. I've filtered template_include to pull a template query var, which I pass through various add_rewrite_rules. My problem is ...
0
votes
0answers
92 views

Problem with pagination in custom loop on front page - no back link

I have certain problem: I have several queries on main page. When I call new WP_query on front Page (custom loop in main loop), make custom pagination, but it doest work in case if I want "Previous / ...
0
votes
2answers
41 views

static front page ONLY for certain themes?

A theme I am developing depends on there being a static front page. However, there seems to only be one global option to change if front page is static. So when I go to preview the theme, it won't ...
0
votes
1answer
35 views

Categories with post from child categories on front page

I am developing my first WordPress site and I am using the Customizr theme. I need to build a front page, that shows the latest posts from 2 categories - News and Events and all their child ...
0
votes
1answer
181 views

Prevent other versions of jquery from loading on static front page

This site is using cordillera which calls on /wp-includes/js/jquery/jquery.js?ver=1.11.2. The child theme contains a front-page.php which consists of: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 ...
0
votes
0answers
70 views

Different wordpress menu showing in frontpage and blog page

When I select "Your latest posts" from "Front page displays" I want to show a custom menu which will show in blog,single,page and archive page. But when I select a static front page than it will show ...
0
votes
0answers
16 views

Losing Page Description on paginated static front page

I have a static front page with an image slider in the masthead and then products below. When the page loads with a url that is paginated 'www.mydomain.com/page2/' for some reason the markup for the ...