WP Teacher
Viewing documents required for an assignment (2 posts)

  1. BlackHorseMedia
    Posted 3 years ago #

    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') ... ) )
  2. fredlawl
    Plugin Author

    Posted 3 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Teacher
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.