Support » Plugin: WP Teacher » Viewing documents required for an assignment

  • Hi, can you tell me what you mean by:

    “To display the documents, you will need to know how to edit a theme file. (see Assignment Meta on that page)”

    I know I have to add the code below, I just don’t know which of the theme files I need to add it to. I’ve tried a few but have had no luck.

    Thanks 🙂 Just learning my way around this plugin, loving it so far!!

    $assignmentDocs = get_post_meta($post->ID, 'wpt_assignment_docs');
    $assignmentDocs = $assignmentDocs[0];
    // return Array ( 0 => Array( 0 => Array('name', 'fileLink'), 1 => Array('name', 'fileLink') ... ) )
Viewing 1 replies (of 1 total)
  • Plugin Author fredlawl


    Sure, easy enough. Its best to create a theme file single-assignment.php in the theme directory.

    But if you’re not familiar with creating/modifying themes and want to learn more, check this tutorial: Line25 and scroll to “Single.php and Comments.php Template Files” or if you want a more in-depth tutorial to learning theme design/development: Tuts Plus

Viewing 1 replies (of 1 total)
  • The topic ‘Viewing documents required for an assignment’ is closed to new replies.