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 have created an options page for my plugin using Settings API. Now I want to create another tab where user will create records. He will also like to delete/edit records. There will be 10-20 records only. I want to stick with settings API for these records (Single field in database) but I am at a lose to decide if it is possible with settings API. If yes, can you guide me how as user will like to edit/delete records as well. Or should i opt for a table in database?

share|improve this question
    
You should use Custom Post Types. No extra table, no missuse of Settings API. –  kaiser Apr 25 '12 at 12:55
    
thanks for your reply. Actually its a custom slider where user will upload slides. So i think a custom table will be appropriate if Settings API is a misuse in this scenario. –  mysterious Apr 25 '12 at 13:06
    
No, just use CPTs with Title field, WYSIWYG or textarea for caption and featured image for the actual image. This way later themes can also make use of it. Just name the CPT "slider". Here´s a read why sliders & carousels are not a good choice. –  kaiser Apr 25 '12 at 13:26
1  
@kaiser can you make your comment your answer so that i can accept it. thanks –  mysterious May 1 '12 at 11:32
    
N/p - just done :) –  kaiser May 1 '12 at 17:16
add comment

1 Answer 1

up vote 1 down vote accepted

You should use Custom Post Types. No extra table, no missuse of Settings API.

Use CPTs with Title field, WYSIWYG/textarea (for caption) & a featured image (for the actual slider image). This way later themes can also make use of it. Just name the CPT "slider".

Here´s a read why sliders & carousels are not a good choice.

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.