How to add custom fields to a custom post type?
-
Hi,
I’m trying to get to grips with custom post types by writing a plugin I can use on different projects. How to register a cpt is clear, plenty of information on that. But then most tutorials go straight to how to display the cpt using different templates. Now I’m looking for information on how to add different input-fields needed for my cpt. Preferably how to code this, not use an existing plugin.The input-fields I need are:
Title (txt)
Description (txt)
Media (images)
Distance (txt)
FileCan anyone point me in the right direction? Any tutorials on how to do this? I have experience in coding.
Thanks in advance,
Bert
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to add custom fields to a custom post type?’ is closed to new replies.