I need to have custom page as homepage and I know how to do that (http://www.lancelhoff.com/how-to-set-a-wordpress-static-front-page/), but when I set custom page as homepage, I cannot have latest posts page. So how can I link to latest post pages, because it's address isn't anymore root path?
Create a new Page, for example "Blog", then goto:
http://yourdomain.tld/wp-admin/options-reading.php
and change "Front Page" to for example Home (your homepage) and Posts page to your Blog Page (in this example "Blog")
Now you can link in your header.php your Blog Page:
Blog
and if you save this, you can click on this and will see your Posts. Or you can create a custom Page Template like this Code: WordPress Custom Theme and set this as your Page Template of your Blog. But the First way is easier...
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 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).
Already costomised my theme's main page from Reading option in Settings tab(on Dashboard) and now how to display all posts under Blog link on it(ie, how to show all posts under blog).
Thanks
In reading options set blog to be the posts page.
Here you can set front page, and posts page. Both need to be static pages that you have created in Pages admin panel. Blog is just another page that you have specified in reading settings to show posts.
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?