woosidebars icon indicating copy to clipboard operation
woosidebars copied to clipboard

Add "attachments" conditions

Open mattyza opened this issue 11 years ago • 2 comments

This would be listed under the "Hierarchy" section and would have conditions for each attachment type (according to the template hierarchy flow) as well as a condition for all attachments, if no specific type has a custom widget area.

mattyza avatar Jun 19 '13 09:06 mattyza

hello @mattyza , I have not understood what you mean, thank you

iqbalnur32 avatar Oct 01 '20 03:10 iqbalnur32

"Attachments" (items in the WordPress Media Library) each have a corresponding page generated by WordPress. These pages use different template files in the theme, optionally for the media type, and with a check for a default "attachment.php" template file, before the fallback to a default template.

This issue proposes adding conditions for this set of templates in the template hierarchy.

mattyza avatar Feb 26 '21 09:02 mattyza