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

learn more… | top users | synonyms

0
votes
2answers
867 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
0answers
17 views

Making Image Gallery the Width of the Page

I've been trying to find out ways to make the image gallery on my website's front page as wide as the very page itself. As in, I'd like it to stretch from the entire left side to the right side. The ...
0
votes
2answers
491 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). ...
2
votes
3answers
4k views

is_front_page only works in theme file, and does not work in functions.php

If I use is_front_page() in my front-page.php file it works as expected. However if I use the same function in my theme functions.php file it does not work. Is this normal behavior? If not can it be ...
2
votes
1answer
24 views

front end publishing not working on front-end page

I have a custom front end publishing form on my website, based on this article. It works perfectly when I put this code inside a page, but when on the front-end page (homepage), it doesn't work, and ...
2
votes
1answer
171 views

Reading Settings -> Front Page displays “Static Page” being reset

Every day my WordPress blog is going from a static page, back to "your latest posts". I am not setting this setting, something is doing this automatically! Any ideas what to check for? Is there any ...
0
votes
1answer
13 views

Page WYSWIG only allowing slides

How do I add other content to my homepage.It is only accepting image slider. I would like to add some raw html and a gallery below the slides.Removing all images in the slides doesnt reveal the normal ...
10
votes
1answer
1k 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 ...
29
votes
3answers
18k 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 ...
0
votes
1answer
28 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
1answer
22 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
31 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
30 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
72 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
238 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
34 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
71 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
5k 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. ...
-2
votes
1answer
39 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
56 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
48 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
47 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
116 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
77 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
42 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
76 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
50 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
28 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
53 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
44 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
643 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
154 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
49 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
39 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
650 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
120 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 front-...
2
votes
1answer
70 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
21 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
46 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: $wp_customize-&...
0
votes
3answers
259 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
72 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 ...
8
votes
2answers
279 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
104 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 ...