SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Nov 2007
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    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 http://www.advancedcustomfields.com/ 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
    Location
    ether
    Posts
    4,479
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Here's how to create custom post types: http://codex.wordpress.org/Post_Types#Custom_Post_Types
    Then you can add as many meta-boxes to your custom post type: http://codex.wordpress.org/Function_...e/add_meta_box
    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!!


Bookmarks

Posting Permissions

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