Blog

Custom meta field for custom post type in wordpress

In term of customization of WordPress theme development, some your theme need some extra field and meta box field for your custom post type.where you want to add some value that can be useful and important to your theme development.

Now its easy and short example that explain how add some extra field to  POST, PAGE, CUSTOM POST TYPE page screen.

i am explaining step by step the whole code,

First of all go to your functions.php in your theme location. add the function and hooks into your functions.php file.

custom_meta

Register your metabox field fisrt.

 

Now your meta box is registered, its time to add your html with input field that will appear in your post, page or custom post type page.

Third step is to save your metabox value in database.

Now every thing is ready to use. The whole code  will be , you can copy and paste and edit the code as per your requirement.

This is whole code. I hope its helpful to you.

30 Comments

  1. aceneeraj

    When I originally left a comment I seem to have clicked the -Notify me when new comments are added- checkbox and now every time a comment is added I receive four emails with the same comment. Perhaps there is a way you are able to remove me from that service? Appreciate it!

  2. aceneeraj

    Greate article. Keep posting such kind of information on your page. Im really impressed by it.
    Hello there, You have done an incredible job. I will definitely digg it and personally suggest to my friends. I’m confident they’ll be benefited from this website.

  3. aceneeraj

    Hi terrific blog! Does running a blog similar to this require a massive amount work? I have virtually no knowledge of programming but I was hoping to start my own blog in the near future. Anyhow, should you have any ideas or techniques for new blog owners please share. I understand this is off topic however I just had to ask. Thanks a lot!

  4. aceneeraj

    First off I want to say awesome blog! I had a quick question in which I’d like to ask if you do not mind. I was curious to know how you center yourself and clear your thoughts prior to writing. I have had trouble clearing my mind in getting my thoughts out. I do take pleasure in writing however it just seems like the first 10 to 15 minutes are wasted simply just trying to figure out how to begin. Any suggestions or tips? Thank you!

  5. aceneeraj

    I know this if off topic but I’m looking into starting my own weblog and was curious what all is needed to get setup? I’m assuming having a blog like yours would cost a pretty penny? I’m not very web savvy so I’m not 100% positive. Any tips or advice would be greatly appreciated. Thanks

  6. aceneeraj

    Hi there would you mind letting me know which hosting company you’re using? I’ve loaded your blog in 3 different web browsers and I must say this blog loads a lot quicker then most. Can you recommend a good internet hosting provider at a reasonable price? Kudos, I appreciate it!

  7. aceneeraj

    Oh my goodness! Impressive article dude! Thank you, However I am going through problems with your RSS. I don’t know the reason why I am unable to subscribe to it. Is there anybody getting the same RSS problems? Anyone that knows the answer will you kindly respond? Thanx!!

  8. aceneeraj

    Hey! Someone in my Facebook group shared this site with us so I came to look it over. I’m definitely loving the information. I’m bookmarking and will be tweeting this to my followers! Terrific blog and brilliant style and design.

  9. aceneeraj

    certainly like your website but you need to check the spelling on several of your posts. Several of them are rife with spelling problems and I in finding it very troublesome to tell the reality then again I’ll certainly come back again.

  10. aceneeraj

    With havin so much content and articles do you ever run into any issues of plagorism or copyright violation? My site has a lot of exclusive content I’ve either created myself or outsourced but it seems a lot of it is popping it up all over the web without my permission. Do you know any solutions to help reduce content from being stolen? I’d certainly appreciate it.

  11. aceneeraj

    You really make it seem so easy with your presentation but I find this topic to be really something that I think I would never understand. It seems too complicated and very broad for me. I am looking forward for your next post, I’ll try to get the hang of it!

  12. aceneeraj

    Hey! This is kind of off topic but I need some guidance from an established blog. Is it tough to set up your own blog? I’m not very techincal but I can figure things out pretty fast. I’m thinking about creating my own but I’m not sure where to begin. Do you have any points or suggestions? Appreciate it

Leave a Reply

Your email address will not be published. Required fields are marked *

Security *