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.
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 creating my first WordPress theme with a one-page parallax scrolling style.
I have created my entire website (statically) in the index.php file. It works fine if I set the Admin->Reading setting to 'Your Latest Posts'.
But now I am trying to create a separate page for the blog so I did the following:
I created a file, page.php, with the standard blog page code and gave it a template name.
I set the Blog page on wordpress to use the Blog template.
All other pages (i.e. home, about us, etc.) are set to use default
page template (which should be index.php right?)
I set the Reading settings to Front Page: Home and Posts Page: Blog
All I get is the blog page template for all pages (as if it were the default page template).
How to set up a website like this?
index.php should really be your blog template not your static home page. Make a copy of page.php to page-home.php (or whatever you've named your front page), then put the static content in there. You probably won't even need to assign the template to the page - WordPress will do that automatically based on the file name.
By default, page.php is used for all static pages, index.php is used for whatever you've assigned as your blog page in the "Reading" section of the dashboard. index.php is also the template of last resort, which will be used if WordPress can't find any other appropriate template files.
Through settings I set to show one static page (lets say I called it "static") as index page. And a blog page as a second page whch you can reach via menu. The static page is displayed just fine, but when I want to open any page with blog template (dynamic content) I get just the name "static", username and the date, and its displayed only once. Nothing more. I dont have an idea of where I could look for the problem.
Which wordpress version you are using?
Hope you done it like this(Double check it).
Settings > Reading > Front Page Display.
Then you select the "A static page" radio button. And sets both "Fron Page" and "Post Page".
Also for further investigation, can you provide the site link?
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?
Quick question (quick deadline...I know I can use google).
I'm writing a site on Wordpress w/ a static home page, it has a few pages--I want the 'blog' page to show the wp entries...what's the best way to set this up.
Right now I have a static template for each page (with content rendered), but of course, the blog page doesn't show the posts...
Thanks for the help!
Create a Wordpress Page Template by making a page with any name and this comment at the top:
/*
Template Name: Blog Enitres
*/
Go create a page, use that as the template (there is a selector on the right hand side). Call it whatever and save it. This is your static page.
Then, after that, go down to Settings > Reading and change the 'Home' page to be the page you've created.
Then create an index.php and save it. This will be the template for the displayed posts. Create an empty page and select it at the 'Posts Page' in settings.
To learn more about this functionality go here.
To learn more about the Wordpress loop and how to display entries, visit codex.wordpress.org