Opened 12 years ago
Closed 12 years ago
#24876 closed feature request (invalid)
Featured Content: add a new parameter to Featured Content to allow users to include Featured Posts in the main blog query
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 3.8 |
| Component: | Themes | Keywords: | has-patch dev-feedback |
| Focuses: | Cc: |
Description
Related ticket: #24857
By default, Featured Content excludes the Featured Posts from the main blog query so these posts don't appear twice on the page.
However, in some cases blog owners might want to include these posts, and not modify the original query on the page.
In the attached patch, I have added a new parameter, include_featured, that defaults to false. If it is set to true, the function excluding the Featured Posts from the main query is not added.
add_theme_support( 'featured-content', array(
'featured_content_filter' => 'mytheme_get_featured_posts',
'max_posts' => 6,
'include_featured' => true,
) );
Attachments (1)
Change History (6)
#1
follow-up:
↓ 2
@
12 years ago
- Cc mfields added
I talked with mfields about this during WordCamp Portland. He suggested to have featured posts excluded when the front page is dynamic, and have them included when it's a static page. What do you think?
#2
in reply to:
↑ 1
@
12 years ago
Replying to obenland:
He suggested to have featured posts excluded when the front page is dynamic, and have them included when it's a static page. What do you think?
That would make sense, indeed. I would still offer an option to overwrite the default behaviour when adding theme support, though.
#3
@
12 years ago
- Milestone Awaiting Review deleted
- Resolution set to invalid
- Status changed from new to closed
#4
@
12 years ago
- Resolution invalid deleted
- Status changed from closed to reopened
Was anything ever put into Wordpress to allow featured posts to not be excluded?
#5
@
12 years ago
- Resolution set to invalid
- Status changed from reopened to closed
No, it was not, however the project is on hold.
This was moved to the theme itself. Please read the link Sergey provided. The Featured Content proposal, as a part of core vis a vis a plugin, has been refactored due to many issues.
http://make.wordpress.org/core/2013/11/12/featured-content-epilogue/
Featured Content: add a new parameter to Featured Content to allow users to include Featured Posts in the main blog query