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
- The topic ‘Using Custom Fields for A Course’ is closed to new replies.