Title: Using Custom Fields for A Course
Last modified: August 20, 2016

---

# Using Custom Fields for A Course

 *  [marathonmilk](https://wordpress.org/support/users/marathonmilk/)
 * (@marathonmilk)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/using-custom-fields-for-a-course/)
 * Hi all
 * I may have got the purpose of custom fields completely confused so apologies 
   in advance if I’ve got it wrong. If there’s a better way to do what I want to
   do, any help would be appreciated.
 * I want to create a mini-course on my site. I’d like to link the pages together
   so I can do next/previous buttons (and a page select but this isn’t as important).
   I’ve thought of using a custom field to set each page with a ‘lesson number’ (
   lesson one’s custom field key = lessonID and value = 1, whereas lesson 2 would
   have the custom field key = lessonID and value = 2.
 * Then I’d use a bit of PHP to compute what the correct page to link to (current
   page + 1 or -1) and generate a link. I’m not sure if it’s possible though to 
   find pages based on their custom fields and then what the coding to link to it
   would be.
 * I’m not sure if I’m on the right track or making this unnecessarily complex though
   so I’d appreciate any help to achieve this.
 * Thank you!
    Mark

Viewing 1 replies (of 1 total)

 *  Thread Starter [marathonmilk](https://wordpress.org/support/users/marathonmilk/)
 * (@marathonmilk)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/using-custom-fields-for-a-course/#post-2543416)
 * To clarify: I’d like to link some pages together as a course. I know there are
   plugins to do this with posts, are there any ways to do this with pages?
 * Thanks
    Mark

Viewing 1 replies (of 1 total)

The topic ‘Using Custom Fields for A Course’ is closed to new replies.

## Tags

 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [custom fields](https://wordpress.org/support/topic-tag/custom-fields/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 1 reply
 * 1 participant
 * Last reply from: [marathonmilk](https://wordpress.org/support/users/marathonmilk/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/using-custom-fields-for-a-course/#post-2543416)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
