Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am trying to build a little settings area to change the strings of some text (image urls & links) on the homepage via the dashboard.

I have found a useful tutorial which provides the plugin structure (http://wakeusup.com/2011/11/how-to-create-plugin-options-page-in-wordpress/) , but when I try and change the 'key' (not sure if this is the correct term, but it is within the link) it wont display the text, tho when using 'kkpo_quote' as the key it works, I have searched both files and substituted all instances of kkpo_quote for 'exampletext' to no avail.

What am I doing wrong? and is it simple to add another key?

share|improve this question
add comment

1 Answer

As I understood you correctly you just want to rename 'kkpo_quote' and you have conflict. Not to have conflict try to replace all 'kkpo_quote' with same name, for example: if you replace 'kkpo_quote' with 'new_quote' in register_setting(KKPLUGINOPTIONS_ID.'_options', 'new_quote'); then make sure that you replace it with 'new_quote' where ever is 'kkpo_quote' There is 7 times apearing in that tutorial 'kkpo_quote'

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.