Opened 14 years ago
Closed 14 years ago
#15945 closed defect (bug) (fixed)
Twenty Ten: Single column page template displays posts incorrectly when set as posts page in Reading Settings
Reported by: | andrewspittle | Owned by: | |
---|---|---|---|
Milestone: | 3.1 | Priority: | normal |
Severity: | blocker | Version: | 3.1 |
Component: | Themes | Keywords: | |
Focuses: | Cc: |
Description
If a page is created using the "One column, no sidebar" template in Twenty Ten but is also set to be where posts display at Settings > Reading posts will appear but will be served from the loop-page.php loop instead of loop.php
Titles are not linked. Tags, categories, and comment links do not appear.
Tested in 3.1-beta2-17056
To reproduce...
- Create a new page titled "Blog" at Pages > Add New
- Set page to use the one column template in Twenty Ten
- Publish the page
- Go to Settings > Reading and set "Blog" to the posts page.
- View the "Blog" page
You should see something like the attached screenshot which displays a post with no link to the permalink and no category, date, or comment information.
Attachments (2)
Change History (17)
#2
@
14 years ago
- Milestone changed from Awaiting Review to 3.1
- Severity changed from normal to blocker
#3
@
14 years ago
Related not-yet-investigated regression I don't think there's a ticket for yet: http://wordpress.org/support/topic/static-home-page-not-showing-31
#4
@
14 years ago
- Keywords has-patch added
#6
@
14 years ago
I'm not seeing the issue. Why would you set the home page to use that template if you don't want to use that template?
#7
@
14 years ago
I think the issue is that "template" covers both layout and element behavior. People want the no-sidebar layout, but still want links and timestamps etc on the blog posts. There's no user feedback that says putting the blog stream on a page will remove all the blog info. We either need an additional template that is no-sidebar blog page or we need to address the way it's handling putting a blog stream into a page template. If it's not a regression, though, I don't see this as a 3.1 issue.
#8
@
14 years ago
If it's not a regression, though, I don't see this as a 3.1 issue.
Meant to include that in the ticket. In 3.0.3 a one-column page set as the posts page will revert to the index.php template. The sidebar will display and all posts include links, timestaps, etc.
#9
follow-up:
↓ 11
@
14 years ago
Right, but.. then the page template setting was made erroneously.
I do see an issue with a flood of problems coming into the forums on this. Can we safely write an upgrade script to turn off page templates for the posts page?
#10
@
14 years ago
There's no user feedback that says putting the blog stream on a page will remove all the blog info.
I do see an issue with a flood of problems coming into the forums on this. Can we safely write an upgrade script to turn off page templates for the posts page?
The same behavior has been happening with the (non-home) front page for years, and it doesn't seem have caused too much confusion.
I agree that an easy solution would be to void page templates whenever a page is set to "home."
#11
in reply to:
↑ 9
@
14 years ago
turn off page templates for the posts page?
+1 for this, it will help immensely with the confusion.
#12
@
14 years ago
So r16915 needs to be reverted then? Or should we reset the template when a page is set as Home?
When the
page_for_posts
setting is used,loop.php
andindex.php
files should run. In this case, when the custom page template is set forpage_for_posts
, the custom page template runs and notindex.php
.I was able to reproduce with another theme that uses a custom page template (Structure).