Wodrpress Plugin Magic Fields

Magic Fields: The Magic Wordpress Plugin

Getting Started

This tutorial will be explain the basic use of Magic Fields, how create write panels, how create custom fields and how print in the template.

Installing Magic Fields.

Magic Fields is installed as any wordpress plugin, you just need download from his download page, put the folder in:

wp-content/plugins

And in the admin area in the plugins section do click in the “activate” link and its all.

When you active the plugin the first thing to Magic Field ask is for create two folders, this folders are:

/wp-content/files-mf /

and

/wp-content/plugins/Magic-Fields/thirdparty/phpthumb/cache

Is enough to you create these folders and give them enough permissions for be writable by Magic Fields

Now we are on road for start to use Magic Fields!

Basic Usage

The best way to understand how Magic Fields Works is with a example, in this example i want create a portfolio of my work. So, the first thing to do is a create a category called “portfolio” and after that create our write panel and assigned the category “portfolio”

Add a new write panel

Add a new write panel

Write Panels ‹ magic_fields — WordPress

In the write panel page exists many options, this options will be explained more a detail in the future for now i just leave the options by default.

Write Panels ‹ magic_fields — WordPress-1

After to create the write panel I’m going to add custom fields for this write panel, for now I will create just one custom field for add the services to I gave to the client.

create_field

Write Panels ‹ magic_fields — WordPress-2

In this page I can choice what type of custom field I want in this case I want a textbox field, and I give the name of “services” and the Label of Services.

I don’t want to this field be required and I don’t want to this field can be duplicated. (the duplicate featured will be explain in detail in the next’s posts)

And it’s all now we can enter to the portfolio panel and now we can start to create content.

Add New Post ‹ magic_fields — WordPress-1

We can view our post created with our write panel in the “Manage” option.

Edit Posts ‹ magic_fields — WordPress

Displaying our information in the template.

Well now we need display the information to be added in our template, for that Magic Fields give us a little api for this. Lets go.

In our single.php file we can add this:

echo get('services');

And it’s all.

Now if we visit the post we will see the information to we put in the services field.

Client name « magic_fields

Exists many more things to we can do with Magic Fields, in the next’s posts I will talk about the differents types of fields.

UPDATE: For more information about Magic fields visit the wiki

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • BarraPunto
  • LinkedIn
  • Meneame
  • Reddit
  • Slashdot
  • Tumblr
  • Hi ammenullah, in get is name of field (http://wiki.magicfields.org/doku.php?id=front-end_functions and )

    Hi Tim uses the parameter $post_id in functions http://wiki.magicfields.org/doku.php?id=front-end_functions

    Hi Keith you can use multiline textbox field

  • Hello, I don’t know where I could post this, but I’m having one problem that I don’t really know if it’s a problem or not, I created a couple magic fields related to some of my categories to slit my post section in some like photos and videos has special place to post the information, and normal posts goes into post area, everything working fine… and no problem about this, my version is 1.4.1 (beta I think) but my main problem is when I post in one of these categories using the magic field new post area only to post on that category, when I post over there I can’t see the same post on edit posts, on the normal posts session like it was on 1.4…

    What changed?? do you guys know how to fix this?
    Thanks.

  • We’re about to start testing this plugin for a large project and I have some questions:

    - I noticed that you can assign a default category in the write panel but how would we assign a specific post tag?

    Also,

    - We’re using custom post types with custom category and a selection of custom taxonomies. So how would we assign this to the custom write panel?

  • Hi garrison

    1.- try with special js http://wiki.magicfields.org/doku.php?id=es:cargar_js_en_los_write_panels

    2.- for the moment no. We are working on this

  • Hello,
    I have added a new pane “Quotes”. However, when I click the pane I don’t get an overview of the quotes, but the “Posts” pane is opened in the “add new” mode. Why is this? Is it possible to change this to the normal workflow in WordPress?

    I used to use the “more fields” plugin, but your plugin has better functionality regarding fieldtypes.

  • Hi

    I’m a MagicField user since several month, and… My question looks like Garrison’s second one.

    But different : is it possible to assign custom taxonomies on panels, programmatically in the functions.php file ?

    I tried to use register_taxonomy but it doesn’t works…

    (excuse me for my bad english :-x )

You can follow any responses to this entry through the RSS 2.0 feed.

Trackbacks / Pingbacks