Make WordPress Core

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: tunyk's profile tunyk 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)

#1 @swissspidy
16 months ago

  • Focuses ui accessibility administration performance removed

#2 @SirLouen
8 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to maybelater
  • Status changed from new to closed

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_posts hook, you can do this pretty easily and elegantly.

Note: See TracTickets for help on using tickets.