WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#18359 closed feature request (invalid)

is_template_selected or is_category_selected

Reported by: cyberwani Owned by: cyberwani
Milestone: Priority: normal
Severity: normal Version:
Component: Template Keywords:
Focuses: Cc:

Description

it is possible to use is_template_selected or is_category_selected to display custom meta box based on selected template or selected category.

eg. if a have selected "portfolio.php", then it displays only client_name and project_status in custom meta boxes. Or, if we selected template "testimonial.php", then it displays only client_name, testimonial_date, client_email, client_url in custom meta boxes.

Change History (1)

comment:1 scribu3 years ago

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

Please use the support forums for such questions.

Note: See TracTickets for help on using tickets.