The tag has no wiki summary.

learn more… | top users | synonyms (1)

14
votes
2answers
6k 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 ...
10
votes
5answers
2k views

How do you use a CPT as the default home page?

I have a client who's site will be making heavy use of custom post types to configure their site. But I'm between a rock and a hard place for their requested home page. In reality, the home page ...
7
votes
1answer
111 views

View homepage in a preview mode

Is there any way to view your homepage in a preview mode, so that I can check how my posts will look on the homepage before publishing them (i.e. to make sure the featured image looks right etc).
6
votes
4answers
2k views

How to show a single post on the front page but have normal paging?

I would like to have a single post on my front page (always the latest), but let normal paging work. So the front page has post 1, the next page should have post 2-11 (1-10 is fine too), then 12-21 or ...
6
votes
3answers
5k views

Getting Post Comments for post ID using WP_Query() and a Custom Loop?

(Moderator's note: The original title was "Is there a way to get post comments by post ID on a custom loop using WP-Query()?") Hi! I'm running a custom loop using WP_Query, that only displays one ...
6
votes
7answers
754 views

Show two different sized featured images on homepage

I would like to have two different sized featured images on my homepage. I currently have all featured images set to 280x200. I would like to have SOME posts on the home page display a larger ...
4
votes
1answer
713 views

How to use a specific category archive index as the site front page?

I investigated Wordpress hierarchy and have created a php file called category-image-gallery.php the link to this is http://www.phoneographer.org/category/image-gallery/ having uploaded it and added ...
4
votes
3answers
832 views

Natural URL Design and static front page

A static front page and other pages which are children of it are used on a blog. To give an example: www.example.com The slug for that page shows up in the permalink for sub pages like ...
3
votes
6answers
706 views

Best way to present options for home page in admin?

I have a site with a custom home page, home.php. What's the right way to present the editable home page options in the admin tool? For example, there's a few custom text fields on the home page that ...
3
votes
5answers
4k views

How to make a category page the blog home page?

I want to use a category page as the home page of my blog. Is that possible and how can I do it? It tried it with a .htacces rewrite rule but that didn't worked.
3
votes
1answer
2k views

how to display full post with pagination on home page

I am using the 'Hatch' theme. I'm familiar with HTML/CSS but not with WordPress, first time working with this. I have my homepage showing recent posts and that's good. However, I want to make a ...
2
votes
1answer
2k views

How to find the posts page (home page) programatically

What php code can be used to find the page object that hosts the blogs? Note that this may not be the same as the first page of the web site. In the admin section we can specify in which page to ...
2
votes
1answer
167 views

On Install, which code sets the 'home' option?

I'm just doing some wordpress development and wondered for a brand new install, which code within core is generating the first value that get's filled into the home option? I'm looking for the code ...
2
votes
1answer
2k views

Wordpress Enqueue for homepage only, functions.php, wp-framework

I'd like to replace my: if(is_home()) { wp_enqueue_script( 'homestuff', get_theme_part( THEME_JS . '/home.js' ), array( 'jquery' ), null, true ); wp_enqueue_script( ...
2
votes
2answers
76 views

How to create an archive for all posts that do not have a post format?

The title says it all. I need working pagination, correct post count etc. Basically a new page for posts but with a filter for post formats. Things I have tried so far: 1) Created a new rewrite rule ...
2
votes
1answer
2k views

home.php or frontpage (via settings) for theme?

OK. I'm getting conflicting instructions from my training resources (again). This time the issue for me is "how to set a default homepage". One tutorial (Coyers "WordPress 3: Creating and Editing ...
2
votes
1answer
681 views

How to link up “read more” on excerpts hack from WP Recipies

I found the code on the WP Recipies page to force excerpts on the home page: function my_excerpts($content = false) { // If is the home page, an archive, or search results if(is_front_page() || ...
2
votes
1answer
270 views

Add post dates from child theme and change font size on homepage post

I know this is not difficult. I know it is supposed to be in the style.css in the child theme, but no font size I change seems to make any difference. The titles of the posts on my homepage never. ...
2
votes
2answers
806 views

WP Multisite Static Frontpage

I created a multisite and my question is as followed: Im trying to display a default static page for each new site. So when they create a new site, they automatically get a default page I made. This ...
2
votes
1answer
73 views

Changing the homepage

Is it possible to change the Home page so it's not a blog, but a page? And also is it possible to change the name of the homepage? If yes, how is this done? Thanks, Richard
2
votes
3answers
1k views

Adding “latest from the blog” to the homepage

I have a big problem and no clue how to solve it :) I want to add a "module" to my homepage (static homepage, not blog posts) that will display the 2 latest blog posts in a very particular way and ...
2
votes
0answers
59 views

Keep featured content post in homepage with original order

I'm searching how to keep the featured post in my blog homepage without excluding it from query post. My blog uses the Twenty Fourteen theme. I found this solution. Open the featured-content.php ...
2
votes
1answer
306 views

is_home() in HTML head

Is there a way to check if the current page is the home page from within the head? My style.php needs the number of posts in the slider, but only on the home page. So I count my posts like this: ...
2
votes
3answers
314 views

How to insert an Audio Player in a Post or Page?

I have a blog which I sometimes use for audio clips. I want to put an Audio Player on the frontpage of my blog. How can I put the player after the title or make its code part of post excerpts?
2
votes
2answers
276 views

Wordpress image resizing on home page (product category)

I have been working on resizing the images on my wordpress website, the images are not appearing on equal sizes or not aligning properly. But inside the product pages it looks normal size but in the ...
2
votes
2answers
590 views

how can I remove the sidebar from my wp homepage [closed]

What's the best practice when it comes to removing the sidebar on the wordpress homepage? I'm using wp Version 3.2.1 and Skeleton Child Theme 1.6
1
vote
5answers
2k views

is_home, and is_front_page conditional problem

I have this snippet in a "portfolio-loop.php" file. I'm using get_template_part to display the loop on the front page and on other pages. I have this within the loop: <?php if( !is_home() || ...
1
vote
3answers
780 views

Is it possible to use a single custom post as the site front page

I know I can set a static page as the homepage but is it possible to set a single custom post as the site front page? I created a custom post type called "portfolio" where users can add all the work ...
1
vote
2answers
4k views

Template file for static posts page does not get loaded?

I have this inside my posts page (set in the admin panel: Posts Page: Blog): blog.php <?php /** * Template Name: Blog * @package WordPress * @subpackage Prominent * ...
1
vote
3answers
59 views

Can I set and show “important” post in my blog?

I have the following doubt related to the WordPress posts showed in the home page. I know that in the home page I can show the latest published posts. But can I also show (before the latest posts) a ...
1
vote
2answers
529 views

Is it possible to have a landing page based on the visitors location?

I am designing an events site and would like people to see a homepage based upon the events that are in their area. Could this could also be done with a login, if they register their address?
1
vote
2answers
793 views

How to only show the first X words (from each post) on the home page?

How can you have it so that the site's home page will only show the first X (let's say 300) words of the post? But without using "more" tag, or hand filled excerpts? I am looking for a plugin/hack ...
1
vote
1answer
517 views

How to put a banner ad between post 1 and post 2 on homepage only

Wordpress Swift Theme is installed on my My site http://tech-ticks.info From last few days, I am trying to find a solution to put an ad banner on homepage only between post1 and post 2. I have ...
1
vote
2answers
225 views

Change Site Title and Description html tags if not home page

For the purpose of good HTML structure, accessibility and SEO I'd like to change the site's title and description from H1 and H2 to P when appearing on any page other than the homepage. A conditional ...
1
vote
4answers
2k views

Show content only on front page?

I want to add some content (slider) only on the home page. I don't want it to apear on the other pages. I am trying following: <?php if(is_home()) { ?> <div> ... <div> } ?> But ...
1
vote
4answers
1k views

How to make Home Menu( Front Page) use index.php instead of page.php

I needed a "Home" menu item in my wordpress website, so I created a new page and named it "Home", added it to my main menu item and then from Reading Settings I selected the "Home" as Front Page. ...
1
vote
2answers
444 views

How to check if current static page is frontpage from admin plugin

I set static page as front page. I need to know if user currently on homepage in my custom plugin. Functions is_home() and is_front_page() doesn't works, since homepage is static page. I can get an ...
1
vote
1answer
135 views

Testing if current page is the static page set as home page

I set my 'About' page as home page, its permalink (my_site/about/) became my_site/ as a result. Is_page('about') returns TRUE on my local server but FALSE on online server. Why is that ?
1
vote
3answers
106 views

How can I hide Home in my menu in a specific page?

I want to how can I hide the home in the menu without setting show_home in functions.php to false, I just want to do is hide it in a specific page. How can I do this? I am using the Twenty-Eleven ...
1
vote
1answer
1k views

How can I get multisite primary blog (url or path) for current user?

In a multisite setup, when users are visiting a blog/site that there are not a member, I would like to display a link to "HOME" that takes them to their "primary" blog. I know how to determine if a ...
1
vote
2answers
1k views

is_front_page() not working

I'm trying to load a script from functions.php just when I'm on the front page. I set a static page called "home" in the reading options. The home page loads the front-page.php template correctly but ...
1
vote
1answer
144 views

How to make the post summary taller?

right now our posts on the landing page are only showing 2 lines of the content. How can I get the posts to show 5 lines of the content each?
1
vote
2answers
181 views

Making a wordpress page the index on the site?

Is it possible to make a "page, not a blog post" the main entry on your site? I'd like to be able to create a summary of the latest content as the first page the user visits on my site. I'm using ...
1
vote
1answer
55 views

Properly display posts on homepage

I'm having trouble displaying posts from a single category on the homepage the way I want them to appear. The theme I'm using uses a 3 column layout for the homepage and a content-sidebar layout for ...
1
vote
1answer
37 views

How to disable (get rid of) home page main loop entirely?

I'm using a custom theme, the index page doesn't depend on the main loop for home (which by default get the latest 10 posts for example). How can I get rid of the home loop entirely, so the index ...
1
vote
1answer
138 views

is_home() returns TRUE on page template

I'm wondering why my link: http://localhost/?page_id=3433 returns TRUE on is_home() usage: if(is_home()){ var_dump(is_home()); die('test'); ...
1
vote
3answers
3k views

Recent posts on a static home page

I want a static home page on my wordpress website, I have already set this up and have a bit of content on it, the next step is I want to have 5 recent posts underneath the content. As a normal page ...
1
vote
2answers
360 views

How do I display only the latest post on my home page, while maintaining proper plugin hooks?

What I'm trying to do is display the most recent post (a la my theme's "single.php") on my "home" page. This is complicated by the fact that I have certain plugins (specifically, Scripts n Styles) ...
1
vote
1answer
134 views

Template hierarchy about pagination after front-page.php

Quick, simple. I have front-page.php working in Wordpress, and these loops over the main loop for my latest posts. The problem is the pagination template. When I get to site.com/page/2, it shows the ...
1
vote
1answer
27 views

Confusing about permalink

I'm nubie in WP and I have some problems but the annoying for me is the default permalink. When tried to visit my site from top of the dashboard link, it says "mydomain.com/home" instead mydomain.com. ...