[wp-trac] [WordPress Trac] #1380: Add Optional XSL styling to feeds output

WordPress Trac noreply at wordpress.org
Mon Sep 29 21:36:25 UTC 2025


#1380: Add Optional XSL styling to feeds output
--------------------------+----------------------
 Reporter:  jrconlin      |       Owner:  (none)
     Type:  enhancement   |      Status:  closed
 Priority:  lowest        |   Milestone:
Component:  Template      |     Version:  1.5.1
 Severity:  trivial       |  Resolution:  wontfix
 Keywords:  bg|has-patch  |     Focuses:
--------------------------+----------------------

Comment (by umarraza9450):

 I’m running into the same issue and would really like to see this added as
 a core option.
 Right now I’m using a similar workaround by adding:
 <?php echo '<?xml version="1.0" encoding="' . get_bloginfo('charset') .
 '"?'.'>';
 if (defined('RSS_XSL_STYLE_SHEET') && RSS_XSL_STYLE_SHEET)
     echo '<?xml-stylesheet href="' . RSS_XSL_STYLE_SHEET . '"
 type="text/xsl" media="screen"?>' . "\n";
 ?>





 https://changjiexiang.exposed/


 to the feed templates (like wp-rss2.php, atom, etc.) and defining the
 constant in wp-config.php.
 It works, but it would be great if WordPress allowed specifying an XSL
 stylesheet directly through a filter or a setting so updates don’t
 overwrite the changes.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/1380#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list