Skip to content

Latest commit

 

History

History
67 lines (45 loc) · 2.26 KB

README.md

File metadata and controls

67 lines (45 loc) · 2.26 KB

Simple Course Creator Post Meta

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

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.

This post meta add-on outputs additional information about each post in the post listing. The information displays right beneath the post title.

How It Works


Once activated, the post authors and dates published will appear beneath the post titles.

Settings and Customizer


Once activated, new options will be added to the SCC settings page under the display tab. You can hide the author, date, or both.

New customizer options will also be available. If you have Simple Course Creator Customizer installed, your new settings will be merged. Otherwise, they will appear on their own.

Theme Overrides


You can edit the post meta output using the following filters in your theme functions file.

For the "written by" text:

function your_filter_name( $content ) {
	$content = str_replace( 'written by', 'post author', $content );
	return $content;
}
add_filter( 'written_by', 'your_filter_name' );

For the "on" text:

function your_other_filter_name( $content ) {
	$content = str_replace( 'on', 'date', $content );
	return $content;
}
add_filter( 'written_on', 'your_other_filter_name' );

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've created a few little pieces of software. I'm not that easy to find online. That's by design.

Is this plugin useful to you? If so, please consider buying me a bag of coffee beans. Thank you much. Donate via PayPal