WordPress.org

Ready to get started?Download WordPress

Plugin Directory

WP Teacher

WP Teacher is a plugin that allows teachers to integrate course content into their personal website to enhance student learning.

Basic Usage

This plugin functions like typical blog postings, but with only a few additional features.

  1. Install Plugin/Activate it (see above)
  2. Create some courses
  3. Create some assignment types
  4. Create some event types
  5. Add some assignments
  6. Add some events
  7. Add the widgets to the sidebar
    • Set a title
    • Set a course category to display (or leave default)
    • Set a type to display (or leave default)
  8. Create a Calendar page
  9. Set the display page for the calendar OR Add the [wpt-class-calendar] short tag into a page
  10. View the results!

Calendar Use

Select a page to display the calendar on within the plugin's settings OR copy/paste [wpt-class-calendar] to your calendar page.

Accessing Assignment Meta Information

To get the assignment due date:

$assignmentDueDate = get_post_meta($post->ID, 'wpt_assignment_dueDate', true);

To get the assignment docs:

$assignmentDocs = get_post_meta($post->ID, 'wpt_assignment_docs');

$assignmentDocs = $assignmentDocs[0];

// return Array ( 0 => Array( 0 => Array('name', 'fileLink'), 1 => Array('name', 'fileLink') ... ) )

Accessing Event Meta Information

To get the event start date:

$eventStartDate = get_post_meta($post->ID, 'wpt_event_date', true);

To get the all other post meta:

$eventMeta = get_post_meta($post->ID, 'wpt_event');

$eventMeta = $eventMeta[0];

// return Array ( 0 => Array('end-date', 'time', 'end-time', 'time-mark', 'end-time-mark', 'all-day') )

Requires: 3.0.1 or higher
Compatible up to: 3.4.2
Last Updated: 2013-4-23
Downloads: 3,024

Ratings

4 stars
4 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1 100,1,1
100,2,2
0,1,0