Opened 16 months ago
Closed 8 months ago
#62685 closed feature request (maybelater)
Proposal to add the ability to control the visibility of posts
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | |
| Component: | Posts, Post Types | Keywords: | |
| Focuses: | Cc: |
Description
A proposal to integrate the basic functionality for WordPress posts similar to that of products in Woocommerce.
Option for posts to display:
In the catalog and in search results
Only in the catalog
Only in search
Hidden
Change History (2)
Note: See
TracTickets for help on using
tickets.
This is the beauty of hooks and the extensibility of WordPress. You have a bare skeleton to add your things, and then with a little code in a plugin like WooCommerce, you can achieve this functionality.
Adding a simple query and some conditionals on which posts to show in the
pre_get_postshook, you can do this pretty easily and elegantly.