On the blog home, archives, and search results, indicate that posts are part of a course.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets
includes
languages
.gitignore
README.md
license.txt
readme.txt
simple-course-creator-front-display.php

README.md

Simple Course Creator Front Display

View it on WordPress: (http://wordpress.org/plugins/simple-course-creator-front-display/)

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.

Simple Course Creator Front Display

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:

SCC Front Display Filtered

Customize the output to have its own style or blend it in with your byline. The freedom is yours.

Bugs and Contributions


If you notice any mistakes, feel free to fork the repo and submit a pull request with your corrections. The same is true of any features you feel should be added or changes that can be made.

License


This plugin, like WordPress, is licensed under the GPL. Do what you want with it. I seriously don't care.

Developer


I'm Sean. I created the Volatyl Framework for WordPress. I like to do most of my WordPress stuff on Build WordPress Yourself. I also write stuff on my personal site and SDavis Media. Follow me on the Twitter machine.

Meanwhile, tell me... is this plugin useful to you? If so, consider buying me a box of "Tazo: Awake - English Breakfast Black Tea." I need ALL the energiez. Thanks. Donate Black Tea