Tagged Questions
0
votes
0answers
16 views
home.php and the first page of the archive
I have a home.php template file in our Wordpress blog that displays a special first page as the front page of our blog (Short post excerpts, posts from categories, photos, etc, etc).
Now I want to ...
1
vote
2answers
47 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 ...
0
votes
1answer
80 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:
...
0
votes
1answer
193 views
Add Adsense code in index.php
My wordpress blog homepage has thumbnail gallery.
I want add adsense image ad code to 5,10 place.
Below code from my index
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
...
-1
votes
1answer
33 views
How to access the so called “Posts page”
This might be a dumb question - I'm sorry for that but:
If I decide to alter "Reading Settings" and choose a front page for home I can define a "Static Page" and a "Posts Page".
"Static Page" ain't ...
0
votes
1answer
276 views
How to display thumbnail and excerpt of a page on homepage?
How to display attached thumbnail and excerpt (about 200 words) of a page on homepage?
<?php
$page_data = get_page( 401 ); // Get page ID 401
echo '<h3>'. $page_data->post_title ...
1
vote
2answers
57 views
Page-loop is looping content from custom loops on the same site. How to avoid that?
i've made a custom home-page (with a template) and i'm using three loops on this site: two category-loops and on the bottom of the site the main loop for the page (the page content). the problem is: ...
0
votes
0answers
21 views
we need to setup home.php with a message that says “create a page and set it as a front page in settings” [closed]
we need to setup home.php with a message that says "create a page and set it as a front page in settings". Please help me this problem how i mate its.
1
vote
1answer
89 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 ...
2
votes
2answers
486 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 ...
0
votes
1answer
473 views
page.php – is_front_page NOT WORKING
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.php ...
2
votes
1answer
892 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 ...
0
votes
2answers
121 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
73 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
364 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
352 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 ...