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:


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 /



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.


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

Be Sociable, Share!

111 responses to “Getting Started”

  1. Joe says:

    So i’m new to wordpress. Does this page refer to being able to make some posts like blog pages and some posts like pages? I’m looking for a way to customize my posts so that they don’t offer all the blog info.

  2. […] Débuter avec Magic Fields (en anglais). Vous pouvez être également intéréssé par :Exportation/Importation de tables MySQL en BD… Protection et sécurité pour WordPress : le … E-book, tutoriel plug-in Google DOC embedder … E-book, comment intégrer le bouton Google Si… […]

  3. […] Para más información sobre la instalación y el funcionamiento del plugin, en la web oficial del plugin encontraréis todo lo que necesitéis: […]

  4. jeuxdotnet says:

    So i’m new to wordpress. Does this page refer to being able to make some posts like blog pages and some posts like pages? I’m looking for a way to customize my posts so that they don’t offer all the blog info.

  5. jim says:

    hello,any way to auto assigned categories?

  6. […] Einsatz eines Autocompleters viele Mühen. In vielen meiner Seiten verwende ich das gloreiche Tool “Magic Fields 2.0″ um mit Custom Fields zu arbeiten. Ich habe nun herausgefunden, wie sich der jQuery Autocompleter […]

  7. THINK_SMALL says:

    man the screenshots are actually MUCH too big – I can even SEE something on it!!! Please make the screenshots SMALLER, so we can not see anything that is in the picture – much better for not understanding what happens!

  8. kevin says:


    WOuld this work adding custom fields to a user?

  9. Kayl says:


    I installed MF2 on local and it runs very well,
    than I installed it on my online version and I created the fields. When I go in one of my custom post types and want to insert the value in the input I created, this doesn’t update, anyone know why?

    thanks a lot, Kayl.

  10. […] can start to use Magic Fields following our getting starter tutorial or visiting the […]

  11. elvis says:

    I create the magic field as the tutorial says.
    I get the custom panel and fields but the info doesn’t display on the post.
    I add the echo code to single.php file…