I didn't think I would encounter this kind of problem in creating a static front page because this seems to be a very trivial customization of wordpress. I am using Thematic as my parent theme. I created a home.php template and pasted the code from the parent's page template into it. I also created two new blank pages named Home and Blog. I set home.php as the template for page Home. Then I went to Settings->Reading and set my front page to a static page and selected page Home. I also set posts page to page Blog. Now when go to my Blog page, I only see a single post?
What is set for "Blog pages show at most" in Settings>>Reading? Do you have more than one post?
Related
After reading many posts and reading tutorials on the WWW, I still can't seem to get my posts to go to my alternative blog page.
I currently have a front static page called "Home" and a blog page
called "Blog"
I set the Reading settings as follows:
Front Page Displays - A Static Page
Front page: Home
Posts Page: Blog
Now when I create posts, I do not getting any of them to show up on my blog page. Instead the page displays a menu with the following items:
Pages
Archives
Categories
Meta
What am I doing wrong.
In order to use a blog page template, you need to have a page template for it. You can create page templates by following this link.
I am slightly confused with front-page.php. I created a page "Home" from the backend of the wordpress and selected a custom template, let's say Food. I also have front-page.php. Now from settings page, I selected Home Page as my front page. But still I visit the website, it shows content from front-page.php.
When I already selected Home page as my front page, then it should show content from food Template not front-page.php. I am confused over this.
Try renaming front-page.php template, so the WordPress will not find it.
Then it should display the "Home" page with the custom template.
More information can be found on Codex site, which states:
On the site front page, WordPress will always use the front-page.php
template file, if it exists. If front-page.php does not exist,
WordPress will determine which template file to use....
I have designed a website in Wordpress using static pages and I would also like to add blog feature to it.
On my static homepage, I would like to include a small blogroll, linked to full blog-page. (just like if my home page was set to blog instead of home page).
In other words, I want to utilize together both page and blog features, but setting static page as main page makes it impossible to view all the posts written on the websites.
If i set blog page as homepage, then i loose my static homepage, but i get page with all the posts written.
How can I actually create a link from static homepage to a page with all blog-posts?
In the Reading Settings page of the admin area (Settings > Reading; the same place you select your static front page) there is a selector called Posts page. Select the page that you would like the blog posts displayed on (this will override any content you actually have on that page).
You can also create a file named home.php in your template's folder with your post display code and when you navigate to www.example.com/home.php it will display.
I am trying to get all the posts from my wordpress site to one single page. after implementing the custom theme first i created the page named "blog". In settings->reading i set the post page to blog. I created some posts. but instead of showing these posts my blog page show index page. I have tried same procedure on default activated theme then it is working fine. please let me know what can be the issue for this ?
If you create a page named blog, then the template to produce the content of the page should be called page-blog.php (in your theme folder).
in WordPress I have an inner page called "blog", and in settings->reading I have that page assigned as the page for blog posts. I want that page to be excerpt instead of full posts. In the theme page.php is used for the (page) loop for the Blog page, but that's overridden by the assignment of blogs posts to that page and I can't simply change "the_content" to "the_excerpt" in page.php to make this work.
I need some conditional tag code to this happen (or would that even work?) in page.php, or is there another way to accomplish this?
The Wordpress template hierarchy diagram will help you out - Wordpress Hierarchy
Your page.php template displays an individual page, it will not be generating the blog archive page you want to edit. Depending on your theme that will either be category.php, archive.php or index.php.
Just change the relevant file to change the excerpt on your blog page.