Enables themes to support custom single.php templates per category in the form single-CATEGORYID.php.
Bewertungen
Zuletzt aktualisiert
December 11, 2013
Version
1.0.0
Aktive Installationen
10
Custom-Single

This plugin enables themes to specify a different single.php template based on post category. As posts can have multiple categories assigned, it uses the following to select which possible custom template to use:

1) Categories directly assigned — Check for extant single-CATEGORYID.php files and prioritize based on category order 2) Parents of categories — Parents are checked based on category order of the directly assigned categories.

Note, the above assumes that there’s a category order plugin installed. If the categories are NOT in a specific order AND there are multiple categories assigned per post then the template selection will be left up to the server. Naturally, if there is only category assigned per post (or only one possible template per post), then there will be no issue.

Requirements

Kostenlosmit dem Creator-Tarif
Mit deiner Installation stimmst du den Geschäftsbedingungen von WordPress.com sowie den Bedingungen für Drittanbieter-Plugins zu.
Aktive Installationen
10
Getestet bis
3.7.41
Dieses Plugin steht zum Download zur Verfügung, um in deiner selbst gehosteten WordPress-Installation verwendet zu werden.