This is an add-on plugin for use with the Simple Course Creator plugin.
Simple Course Creator is designed to easily link posts together in a series and output that series list in the content of each included post.
The Simple Course Creator Front Display add-on outputs that course name on each post listed on the blog, archives, and search results. If a post is not part of a course, nothing displays. SCC Front Display behaves just like a typical byline displaying post meta information. It will not show on the individual post.
How It Works
SCC Front Display requires no settings. Once you install it, it works. However, it does have built-in customization options in the theme customizer.
If you have Simple Course Creator Customizer installed, the options will merge seamlessly into one customizer section.
Theme Overrides
SCC Front Display will output complete sentences on your posts. You’re in control of every word. The text that displays before your course name and after your course name can be filtered like so.
For the leading text:
function your_filter_name( $content ) { $content = str_replace( 'This post is part of the', 'Course:', $content ); return $content; } add_filter( 'course_leading_text', 'your_filter_name' );
For the trailing text:
function your_other_filter_name( $content ) { $content = str_replace( 'course.', '', $content ); return $content; } add_filter( 'course_trailing_text', 'your_other_filter_name' );
Those two filters will result in the following output:
Customize the output to have its own style or blend it in with your byline. The freedom is yours.
License
This plugin, like WordPress, is licensed under the GPL. GNU General Public License v2 or later: http://www.gnu.org/licenses/gpl-2.0.html
Developers
Feel free to fork the repo on Github and submit pull requests if you’d like to make contributions to the plugin.
View Simple Course Creator Front Display on Github