Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optionally extract quiz ID from a custom field #97

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rickyjbland
Copy link

This code change allows the quiz ID to be specified from a custom field from a post.

This has allowed me to put Slickquiz in a sidebar which calls different quizzes depending on the page. (for my purposes I've fixed it in the sidebar so comprehension questions are always visible on the side when scrolling through an article).

In order to activate the quizzes, you need to put 'custom' in the shortcode and 'slickquiz' as a key (with the value equating the id of the Slickquiz) in a custom field.

custom-id-shortcode1
example-quiz-sidebar
slickquiz-custom-field

Note: this is my first ever attempt at coding something for 'real' purposes or using github to make changes!

This code change allows the quiz ID to be specified from a custom field from a post.

This has allowed me to put Slickquiz in a sidebar which calls different quizzes depending on the page. (for my purposes I've fixed it in the sidebar so comprehension questions are always visible on the side when scrolling through an article).

Note: this is my first ever attempt at coding something for 'real' purposes or using github to make changes!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant