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]
- The the_post_thumbnail without srcset?
- after_setup_theme always runs
- WordPress API Menu/Submenu Order
- What WP folder can I use to write files to?
- Why I can’t add a CSS style in this WordPress theme?
- Display a different theme for not logged-in users
- Best practice (forward compatibility) for theme options
- Single Page WordPress Theme – Using page templates
- Returning Variables back into a template
- new theme permissions don’t allow me to edit
- How to add custom template tag in wordpress theme?
- Which theme foundry has clean coded themes, where code is poetry [closed]
- What page should I use for a contact form?
- Retrieve data using wpdb to use for customizer controls
- Responsive Images – Generating multiple images from Theme Customizer control upload?
- How can a Theme Contain no Header File or Footer File?
- Modify the Additional CSS section (adding a disclaimer)
- Some translations do not work in my template class
- WordPress not registering Theme Customization Section
- Why is the Links Manager visible?
- How to remove a file included in parent theme with locate_template() via child theme?
- qTranslate with my own theme and settings
- Customizer: Output default value in Customizer CSS
- Override template file i subfolders
- Theme Development for WordPress Multisite Installation
- Theme Development: Starter Content after hook
- Change locale by detecting viewer’s browser language setting and let them choose prefered language after
- Why is it needed to enqueue parent stylesheet in child theme?
- Is there any WordPress theme for Self Storagae just like Spacer [closed]
- WordPress Unite Theme: Footer isn’t sticking [closed]
- How to enqueue javascript for WP Customize options sidebar?
- WordPress 500 Internal server error when activating custom theme [closed]
- Default Text not showing from customizer
- If you were to start using a WordPress framework today, which one would you use? [closed]
- WordPress Template Part in iFrame
- Template for landing pages
- Is it possible to have a theme that uses only one single page?
- underscores use of the article element on the page template
- Plugin does not work in custom theme
- html5-reset theme does not show the image [closed]
- Adding a gallery to my first theme
- Valid SQL query not returning results
- Change Image Sizes for Mobile Theme
- Recommended sidebar / content widths
- Converting a theme to a child theme in a network
- How to change listing type permlink?
- Calling a WP Plugin Function’s Variable in Theme Template [duplicate]
- How to make updatable custom WordPress theme?
- How can I access variables from theme in child theme? [closed]
- Local variable name in setup_postdata()
- Creating a Single Page Theme correctly
- Child theme menu not appearing in Twenty Seventeen
- How do I remove header/page-title image in farvis theme? [closed]
- how to edit woocommerce checkout page
- How to link post image to post link?
- WordPress Theme Developments – Start from another theme
- Modify comments_popup_link output
- Display tab title as ‘blog tagline | blog title’
- Can you create a custom page with content in the center already defined?
- How to migrate the menu from the site on my own theme in WordPress?
- RSS feed url showing page not found. How to solve it?
- php file child theme directory not overriding parent theme php file [duplicate]
- How do I change the tagline input to textarea?
- WordPress theme Modifications not showing up on live server
- How to Create a Multi Purpose Theme?