Opened 21 months ago
Closed 12 months ago
#62685 closed feature request (maybelater)
Proposal to add the ability to control the visibility of posts
| Reported by: | tunyk | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Posts, Post Types | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.