-
Notifications
You must be signed in to change notification settings - Fork 0
Adding News Templates
Jim Reevior edited this page Aug 14, 2018
·
1 revision
When the BU Post Lists is active, page templates can list specific posts based on the options selected in the admin. In Responsive Framework, this feature is supported on the News page template.
Support for this feature can be added to other page templates using the
responsive_news_templates
filter.
<?php
/**
* Add post lists support to custom page templates.
*
* @param array $news_templates Page templates that support BU Post Lists.
*
* @return array Page templates that support BU Post Lists.
*/
function mytheme_responsive_news_templates( $news_templates ) {
$news_template[] = 'page-templates/custom-template.php';
return $news_templates;
}
add_filter( 'responsive_news_templates', 'mytheme_responsive_news_templates' );
Get started
Configuration
Build child themes
- Customizing CSS in a child theme
- Overriding templates in a child theme
- Code patterns
- Code reviews
- Pulling in Foundation Updates
- Merging and Creating a Pull Request
Sass
Javascript
PHP
- Coding Standards
- PHP Constants
- Temp PHP Code Patterns
- PHP Snippets
- How to Use Hooks
- Action Hooks
- Using Action Hooks To Output Markup
- Filter Hooks
Shortcodes
Templates
GitHub
Tasks
Contribute to the framework
- Framework Development and Release Workflows
- Documentation Template
- Testing your changes
- Creating a new release
- Migration Guide
- Needs Documentation
Code Examples
- Adding Content Container Classes
- Adding News Templates
- Adding Script Dependencies
- Changing Available Layouts and Default Layout
- Displaying a Fancy Gallery
- Loading a Custom Build of Modernizr
- Loading Modernizr in the Footer
- Using Action Hooks To Output Markup
- Understanding get_template_part
BU Developer Resources