Tagged Questions

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

learn more… | top users | synonyms

0
votes
2answers
503 views

White screen on front page only

I've got the famous white screen, but only on my home page. Deeper pages load just fine. I moved my themes directory to themes-old and made a new themes directory that only has twentyten in it. I ...
0
votes
6answers
573 views

how to create a static front page for my blog in wordpress

I need php code to create a static front page for my blog.how do it by php in wordpress.anybody can help me.
0
votes
2answers
175 views

Show a different code on front page to other pages

I'm looking to display a list of posts in the header section on my template on all pages with the exception of the front page where I would like to show an image in place of the list of posts. Is ...
4
votes
2answers
4k views

How to make my front page display only the most recent sticky post, plus usual widgets?

WP 3.3.1, Suffusion 4.0.2 I am trying to figure out how to make my front page display only the most recent post marked sticky. I can't find how to do this in the documentation. What I'm trying to ...
0
votes
1answer
148 views

Problem with custom page template and permalink

I created custom page template for news template_news.php with name template name: news and i created a page and configured for that page also i set permalink to /news/%postname% also i set ...
0
votes
1answer
59 views

Linked pages from plugin on front can't see $wpdb

I obviously need more knowledge re this one. From my plugin. I have a custom main page which displays my custom db data table of a list of stores. Each store has a "link" ie using a href eg. <a ...
2
votes
2answers
2k 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
1k views

Frontpage pagination issue with paginate_links() function

I'm using following snippet to output pagination: // get the current page if ( get_query_var('paged') ) { $current_page = get_query_var('paged'); } else if ( get_query_var('page') ) { ...
0
votes
2answers
248 views

Remove edit post link from static front page

Checking for front page with either is_home() or is_front_page() still removes the edit link from all pages/posts. What's wrong with this? add_filter( 'edit_post_link', 'foo_edit_post_link' ); ...
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 ...
1
vote
3answers
479 views

Showing option when page is frontpage

Currently I'm having some difficulties with below snippet. As it currently works it shows the_excerpt_rss on a single post and single page. AND it shows the option on is_home(). But what if a page ...
0
votes
1answer
121 views

is_front_page use in sidebar.php

I want to introduce some code into sidebar.php dependant on whether the site was on the front page or not. ( I have a static front page and am using the front-page.php file ). To cut a long story ...
0
votes
1answer
47 views

I need advice on how to structure the categories according to the layout i have

I'm seeking advice on how to structure the categories so it fits well my page structure: The main highlight is a single post and the secondary highlight boxes will probably contain a slides showing ...
14
votes
2answers
7k 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
185 views

Make 'Page' slug the 'index'

I want to have my Index page show posts from a certain Category ('news'). I have that functionality, but is there a way I can make a 'News' Page, where the slug just points to the index?
0
votes
2answers
223 views

What is the advantage of using home.php over index.php for the front page

I am building a theme and wondering whether or not to include a home.php file or not. The theme (which will not be available to the public) will be mainly used with a static home page and separate ...
0
votes
1answer
393 views

Static front page with excerpt

I'm currently developping a theme for WordPress, and I have run into a little issue. I have to display some text as well as a "latest articles" list on the front page. I have the front page set to ...
0
votes
2answers
651 views

Best Practice for Displaying Categorized Posts on Front Page

I am building a custom wordpress theme from a clients mockup. On the homepage there are 2 sliders, and 4-5 areas for recent posts of different types. I would like to have all the content be editable ...
-1
votes
1answer
732 views

plugin: 'init' hook, check if we're not in admin

I've tried this inside of my plugin ('init' hook) but it doesn't work: if(is_front_page() || is_singular() || is_archive()) { ... } How could I check it using init hook? Thanks.
0
votes
1answer
80 views

Theme Development -> Specific Homepage

I am a beginner to starting a Wordpress template from scratch, so I am open to any helpful links or help that can be given to me :) Questions: What would this file be called front-page or home.php? ...
0
votes
1answer
1k views

How to show full post on home page

I am using the Yoko theme and would like to show the most recent full post in category 1 on the home page. I am a Wordpress newbie, but my approach was going to be to provide my own index.php in a ...
0
votes
1answer
260 views

Using front-page.php need new blog page

I'm using front-page.php to generate a static frontpage for a Web site I'm working on. I can't seem to get Wordpress to display the blog posts on any other page. I tried creating a custom template to ...
0
votes
1answer
126 views

“Home” Page now only displaying the single latest post

We did have a normal dynamic post home page.( Arjuna X 1.6.11 by SRS Solutions) After selecting for a static, we returned the settings to our original settings. However, now we only have the single ...
2
votes
2answers
462 views

Should I use custom post types for a front page video feature (vimeo)?

I'd like to create a front page video feature that embeds a vimeo video of the users choosing. I'd like the user to only have to input the video code. For instance, for http://vimeo.com/24474320 - ...
0
votes
2answers
761 views

Static Front-Page Excerpts

Working on a new site, I'm trying to plant recent post excerpts on a static front-page. I had been doing all my static content outside of wordpress (as static files), but was convinced to pull ...
0
votes
1answer
953 views

What file is the standard frontpage that lists all the posts?

I want to edit something in my theme but i can't find the file that lists all the blogposts on the homepage. In the 'Reading' settings i have: Front page displays - your latests posts as the chosen ...
0
votes
1answer
121 views

Front Page Settings

I'm setting up a WordPress site that has Flash puzzles embedded in the pages. (My site will have pages instead of posts). Each week I'll add a new puzzle to the site's Home page. When the site loads ...
0
votes
1answer
3k views

How to display blog posts on a dedicated page?

I'm in the middle of moving to WordPress from another CMS. I definitely have to keep the links intact, which are like this: example.com (Redirects to /blog) example.com/blog (The blog, displaying ...
0
votes
1answer
451 views

1 post per category on homepage and counting those posts

What I'm trying to do on my homepage is to pull the latest post from each of 6 categories but then I need the variable $counter to increase (+1) for each post so that I can style them properly. I've ...
0
votes
2answers
371 views

Stop Authors from submitting spam post

I am designing a frontend for users, where they can submit an article/post from. But i am worrying if someone puts javascipt code, or SQL injection, or other malicious code. Is there a plugin or some ...
0
votes
1answer
360 views

front page won't change templates

I have tried changing the template of the attached page and changing which page is attached as the home page, no effect for either. The front page remains the same. I am at my wits end with this one!! ...