SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Nov 2007
    0 Post(s)
    0 Thread(s)

    Custom fields for posts in Wordpress

    Can anybody recommend a tutorial on how to create more advanced custom fields for Wordpress? The web is awash with tutorials that only show how to create simple text fields, but I have yet to find one that explains how to create custom fields with more advanced functions. I know I could use something like this but if I do that I could run into issues and besides I want to (at least) attempt to know what I am doing (in other words write my own code, not use a plugin and have no idea how to make it do what I want). For example I want to build a custom post type called "downloads" with a custom field labelled "Operating System" and want the latter to have multiple checkboxes, one for each supported operating system. For example if a program supports Windows 8 x64 and Windows 2000, I can check those two, and leave Windows XP 64 bit unchecked.
    Last edited by hawkman; Sep 11, 2013 at 10:25. Reason: clarification

  2. #2
    SitePoint Wizard silver trophybronze trophy asp_funda's Avatar
    Join Date
    Jun 2003
    1 Post(s)
    0 Thread(s)
    Here's how to create custom post types:
    Then you can add as many meta-boxes to your custom post type:
    Each meta-box is a grouping of mutually related fields.
    Our lives teach us who we are.
    Me - Photo Blog - Personal Blog - Dev Blog
    iG:Syntax Hiliter -- Colourize your code in WordPress!!


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts