=== Simple Course Creator === Contributors: sdavis2702 Tags: course, series, lesson, taxonomy, posts Requires at least: 5.0 Requires PHP: 7.4 Tested up to: 6.7 Stable tag: 2.1.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Organize WordPress posts into courses and display a course listing within each post. == Description == Simple Course Creator lets you group WordPress posts into courses using a custom taxonomy, then automatically displays a linked list of all posts in the same course within each post's content. **Features** * Create unlimited courses from the Posts menu — just like categories and tags * Assign posts to a course from the edit post screen or the manage posts screen * Display the course listing above content, below, or both * Choose between numbered list, bullet list, or no list indicator * Sort the listing by date, title, author, last modified, comment count, or random * Style the current post in the listing as bold, italic, or strikethrough * Optionally collapse the listing behind a toggle link (JavaScript) **Post Meta** Show author and publish date beneath each item in the course listing. Both are enabled by default and can be toggled from the settings page. **Front Display** On the blog home, archive pages, and search results, indicate that a post belongs to a course. Enabled by default and can be toggled from the settings page. **Customization** Style the course box, post meta output, and front display indicator directly from the WordPress Customizer — no custom CSS required. For deeper customization, override the plugin's template files in your active theme. Create a directory called `scc_templates` in the root of your active theme and copy any files from the plugin's `includes/scc_templates/` directory into it. Theme files take priority over plugin files. == Installation == 1. Upload `simple-course-creator` to the `/wp-content/plugins/` directory 2. Activate the plugin through the Plugins menu in WordPress 3. Create courses under Posts > Courses 4. Assign posts to a course from the edit post screen or the manage posts screen 5. Optionally configure display settings under Settings > Course Settings **Upgrading from v1.x with add-on plugins** If you were using the separate SCC Customizer, SCC Front Display, or SCC Post Meta plugins, deactivate and delete them after updating to v2.0.0. All functionality is now built into this plugin. Your existing Customizer settings and display preferences carry over automatically. == Frequently Asked Questions == = Can a post be assigned to more than one course? = Yes. If a post belongs to multiple courses, a separate course listing is displayed for each one. The position setting (above, below, both) applies to all listings. = Can I customize the course listing output? = Yes, several ways. **Hooks** — Add actions in your theme's functions.php to insert content at specific points in the output. Available hooks, in order of appearance: * `scc_before_container` * `scc_container_top` * `scc_below_title` * `scc_below_description` * `scc_before_toggle` * `scc_after_toggle` * `scc_above_list` * `scc_before_list_item` — receives `$post_id` * `scc_after_list_item` — receives `$post_id` * `scc_below_list` * `scc_container_bottom` * `scc_after_container` The toggle link text is filterable via the `course_toggle` filter (default: "full course"). The front display leading and trailing text are filterable via `course_leading_text` and `course_trailing_text`. The post meta label text is filterable via `written_by` and `written_on`. **Template override** — Create an `scc_templates/` directory in your active theme and copy any files from `includes/scc_templates/` into it. Your theme versions will take priority. **Customizer** — Use the Simple Course Creator Design section in Appearance > Customize to adjust colors, borders, padding, and typography for all three output components. **Custom CSS** — Write CSS in your theme targeting `.scc-post-list`, `.scc-post-meta`, and `.scc-front-display`. Each listing has a `data-course-id` attribute if you need to target a specific course box (`[data-course-id="5"]`). When a post belongs to multiple courses, each listing also carries the `scc-multiple-courses` class and all listings are wrapped in a `.scc-course-group` container. = Can I add my own styles to the Customizer output? = Yes. The `scc_add_to_styles` action fires inside the generated `