Questions tagged [frontpage]
The home page of a site. Could either contain the blog index, or a static page.
283
questions
1
vote
0
answers
95
views
Home/front page won't display content after a form is submitted
I have setup a WordPress site using just pages (no posts) http://dev3.sugarvine.com/
I've created all the pages in the backend and made the 'About' page the front page. All the pages use index.php to ...
0
votes
1
answer
4k
views
is_front_page and is_home are not working in page.php
I'm trying to target my landing page with is_front_page or is_home in my page.php file but it's not working. I have set the settings > reading to a static page.
However, if I create a page-home....
0
votes
2
answers
4k
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
6
answers
670
views
how to create a static front page for my blog in wordpress
I need the php code to create a static front page for my blog. How do I do it with php in WordPress?
0
votes
2
answers
300
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
2
answers
6k
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
1
answer
212
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
1
answer
89
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 ...
5
votes
4
answers
11k
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
1
answer
2k
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
2
answers
993
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
1
answer
4k
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
3
answers
3k
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
1
answer
161
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
1
answer
51
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 ...
76
votes
3
answers
55k
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
1
answer
989
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
2
answers
439
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
1
answer
558
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
2
answers
860
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
1
answer
2k
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
1
answer
94
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
1
answer
3k
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
1
answer
305
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
1
answer
138
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
2
answers
612
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 - I'...
1
vote
2
answers
1k
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
1
answer
4k
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
1
answer
238
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 ...
2
votes
1
answer
5k
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 all ...
0
votes
1
answer
498
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
2
answers
503
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 ...
-1
votes
2
answers
2k
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!!