It’s been a while since I’ve asked this, and I’ve built several themes in that timeframe. The answer I’ve come up with is “use the filter”. There is no limitation to doing this, and it makes other developers’ jobs much easier, as they only need to filter the output (vs. trying to do output buffering).
In short, just filter it!
Related Posts:
- Using classes instead of global functions in functions.php
- Template for individual post designs
- Front End Post Submit Form
- Upgrading a custom theme through the Dashboard
- Theme Customizer not loading
- Version control for both Vagrant config and themes being developed [closed]
- How to correctly add JQuery in a WP theme?
- How to add a second stylesheet to the editor
- WP 3.1 upgrade breaks AutoFocus+ theme
- How to make theme elements customizable in wordpress?
- How to edit theme functions file to modify pagination?
- Customizer: save setting/control content to post/page
- Customize how a WordPress theme looks like in the Theme Selector
- Customizer – loading settings/controls/sections/panels based on a id/page id
- Integrate WooCommerce theme with a WordPress theme [closed]
- Automated Footer information
- Widget Option is Missing
- How do you use WordPress for a website that’s not in a blog format?
- searchform.php doesn’t work properly
- Customizer: get_preview_url() inside customize_save_after hook
- New to WordPress – Read the Codex, Other Docs; Still Confused
- Create theme for mobile phones and tablets only?
- How to add custom page elements to the WYSIWYG editor?
- Can’t change theme name
- When trying to set title, not sure how to edit it for different pages
- Is hand coding required at all?
- WordPress Twenty-Fourteen: How to Remove Home Page Header Image from Other Pages
- How to dowload and edit content of a website
- Any way to permanently translate themes?
- How to prevent XSS attack in wordpress theme?
- Best strategy for providing theme options using customizer
- How Does One Create a Global Variable Repository
- How to convert that page to a wordpress template? [closed]
- Turning WordPress Into full-featured website?
- TItle In Latest Post is not using H1 Tag [closed]
- WordPress 3.8 Backend Admin Color Scheme add more scheme how to do?
- Is it acceptable for a WordPress theme to not accept widgets?
- WordPress Theme Validator?
- Should all references to a text domain be to my current theme?
- Theme thumbnail in dashboard
- If you were to start using a WordPress framework today, which one would you use? [closed]
- How to have content scroll over background
- 3 Level Deep Navigation Menu Not Showing All Levels
- WordPress Template Part in iFrame
- How can I change the theme of different posts using a plugin?
- Theme support title tag – how to replace the default WP separator (with a filter)?
- Template for landing pages
- How to change the theme directory uri for localhost?
- Set a featured image as a replacement to the header image
- Replace site title with logo when logo is uploaded in customizer using
- Is it possible to have a theme that uses only one single page?
- Custom theme: How to call archive-post.php for viewing blog posts
- Will my site get messed up when the wordpress theme updates if I edited the html code in the editor to change footer?
- underscores use of the article element on the page template
- How to transfer one domain to another domain without losing theme options (customizer)?
- Plugin does not work in custom theme
- How to Have a Pure HTML Sub Directory In WP Site
- How to correctly enqueue the parent and child theme stylesheets in the creation of a child theme? [duplicate]
- Create a child theme from multiple themes
- Theme not showing up
- html5-reset theme does not show the image [closed]
- Managing WordPress Theme
- Theming Using Bootstrap Glyphicons and WordPress Dashicons
- featured content: which area does this cover [closed]
- Change image size depending on page
- WordPress page/blog incorporated into static website
- Theme Customizer not displaying saved values in wp_head (CSS)
- Random white space before doctype
- Adding a gallery to my first theme
- Is there a WordPress boolean for “theme_customizer_active()”?
- How to add menù section to my WordPress template?
- Are seven additional image sizes are too many?
- What are the critical theme files when building a custom theme?
- Having issue with WordPress wp_enqueue_style
- How can I use the WordPress Loop and Pagination in multiple instances but different scenarios throughout my site?
- How to make theme configurable
- Starting point for custom Themes [closed]
- How can I hard code my sidebar?
- Extending Twenty Eleven Theme
- What exactly is “wordpress theming”? [closed]
- Simple child theme modification but links are broken
- Theme Development -> Specific Homepage
- Customizing Titles on the Fly with Code
- Making a WordPress theme based on twentyten
- How to query details of images in gallery that is attached to a post
- Thesis -style Navigation
- registering a global template wordpress 6.0
- How can I wrap all blog posts image with
- theme style is applied on the dhasboard rather than the website
- Copying the theme style files and images to duplicate the website but with a difference
- Why still output /wp-content/themes/twentynineteen?
- How to clean up the theme for production?
- Templates without a loop, best practice?
- I have WordPress setup on primary domain, how do I set it up on its subdomain using the same database?
- Which cache is kicking
- How to set Post meta-box defaults based on the choices made by user in Customizer?
- Theme Action to hook for one time only function [duplicate]
- Alignment Problem [closed]
- What $handle does WordPress use for a theme’s implicit style.css?
- CSS added through customizer neglects the need of a child theme?