0

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?

5
  • You should use Custom Post Types. No extra table, no missuse of Settings API.
    – kaiser
    Commented Apr 25, 2012 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
    Commented Apr 25, 2012 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
    Commented Apr 25, 2012 at 13:26
  • 1
    @kaiser can you make your comment your answer so that i can accept it. thanks
    – mysterious
    Commented May 1, 2012 at 11:32
  • N/p - just done :)
    – kaiser
    Commented May 1, 2012 at 17:16

1 Answer 1

1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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