Which one is better to create an image uploader for posts and pages? meta_box or custom_field?

Question

I created an image uploader for a settings page that I just created to my site. I used register_setting to do that.

I already created an image uploader for posts as banner. The Image uploader is created using a plugin named ACF(advanced custom fileds). I want to create a custom image uploader from scratch without any plugin. I am really confused how to do it. Should I use add_meta_box() or register_setting()? or maybe custom fields? I am new to WordPress. Please someone tell me the best approach and if possible how to do it.

Thank all of you in advance.

0
, Ashur 3 years 2020-06-03T07:11:04-05:00 0 Answers 90 views 0

Leave an answer

Browse
Browse