Creating post custom field text area

I want to make, I guess a custom field for my theme. I'm not sure is it the right way to do this with custom fields.

I searched a lot, but could not find what I need. So I'm hoping that some one could give some pointers or links, since I dont know what exactly to search for my case.

What I want to make is to add below post title bolded intro for the post. I know I could do this by the post, but I am making a design where this would be separated.

Like

  1. title
  2. description / bolded intro for post
  3. Author/ social button
  4. Post

So you can see why I need it separately.

Any pointers?

Topic custom-field customization custom-post-types Wordpress

Category Web


Yes, you'll want to create custom metaboxes for those. This is a pretty good intro into how to do that. But you might want to think through a few things:

  1. Are you sure you want that added to ALL posts? If not, perhaps create a custom post type and attach those fields to that post type instead.
  2. Maybe you really DO want it on Posts and not a Custom Post Type, but is it necessary for ALL posts? If not, you might want to add some custom javascript to conditionally add those fields if the user wants to do that kind of post. While this script is for page template, it could easily be applied to a post instead.
  3. I find it easiest to start with a Custom Meta Box library. WebDevStudios has a really great and regularly updated library to try out.

Good luck!

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.