Title: Magic Fields 2 Toolkit
Author: Magenta Cuda
Published: <strong>22.03.2013</strong>
Last modified: 15.11.2015

---

Шукати плагіни

Цей плагін **не перевірявся з останніми 3-ма основними випусками WordPress**. Можливо,
він більше не може розроблятися або підтримуватися, і він може мати проблеми сумісності
при використанні з більш новими версіями WordPress.

![](https://s.w.org/plugins/geopattern-icon/magic-fields-2-toolkit.svg)

# Magic Fields 2 Toolkit

 Від автора [Magenta Cuda](https://profiles.wordpress.org/magenta-cuda/)

[Завантажити](https://downloads.wordpress.org/plugin/magic-fields-2-toolkit.1.2.1.2.1.zip)

 * [Деталі](https://uk.wordpress.org/plugins/magic-fields-2-toolkit/#description)
 * [Відгуки](https://uk.wordpress.org/plugins/magic-fields-2-toolkit/#reviews)
 *  [Встановлення](https://uk.wordpress.org/plugins/magic-fields-2-toolkit/#installation)
 * [Розробка](https://uk.wordpress.org/plugins/magic-fields-2-toolkit/#developers)

 [Підтримка](https://wordpress.org/support/plugin/magic-fields-2-toolkit/)

## Опис

**This plugin is no longer being actively developed. This means no new features 
will be added to this plugin.
 Moreover, I no longer use this plugin and will not
know of a problem unless a user reports it. However, I remain absolutely committed
to maintaining the existing feature set of this plugin and if a problem is reported
I will do my very best to fix it. You can report problems using the [support page of this plugin](https://wordpress.org/support/plugin/magic-fields-2-toolkit).

This [toolkit](https://magicfields17.wordpress.com/magic-fields-2-toolkit-0-4-2/)
transforms the [Magic Fields 2](https://wordpress.org/plugins/magic-fields-2/) plugin
into something that can be used by a non programmer to do media oriented CMS web
design.
 With this toolkit you can design your page content using only HTML, CSS
and the [toolkit’s shortcodes](http://magicfields17.wordpress.com/magic-fields-2-toolkit-0-4-2/#shortcode).
Using the [toolkit’s content templates](http://magicfields17.wordpress.com/magic-fields-2-toolkit-0-4-2/#macros)
you can define a reusable template for page contents which can be used to create
multiple pages using the page’s custom fields to instantiate the template. This 
toolkit also simplifies the use of media (images, audio, video and embeds) by providing
[configurable shortcodes](https://magicfields17.wordpress.com/magic-fields-2-toolkit-0-4-2/#alt_media)
for generating responsive HTML wrappers for these media elements.

The current features are:

#### Support for coding HTML templates without the need for PHP programming

 * [shortcode for showing Magic Fields 2 custom fields and taxonomies](http://magicfields17.wordpress.com/magic-fields-2-toolkit-0-4-2/#shortcode).
   In particular, the shortcodes makes it easy to display a table of custom field
   names and their values.
 * [post content templates for HTML and WordPress shortcodes](http://magicfields17.wordpress.com/magic-fields-2-toolkit-0-4-2/#macros)–
   these templates do not need PHP code.
 * [gallery shortcode for showing Magic Fields Media Library images](http://magicfields17.wordpress.com/magic-fields-2-toolkit-0-4-2/#gallery).
 * [tabs shortcode for showing mt_template shortcodes in jQuery UI Tabs](http://magicfields17.wordpress.com/magic-fields-2-toolkit-0-4-2/#tabs).

#### Additional custom fields

 * [fields for WordPress’s video and audio shortcodes](http://magicfields17.wordpress.com/magic-fields-2-toolkit-0-4-2/#alt_media).
 * An [enhanced image field](https://magicfields17.wordpress.com/magic-fields-2-toolkit-0-4-2/#alt_image)
   that supports a custom click URL and a mouseover popup.
 * [alternative related type field](http://magicfields17.wordpress.com/magic-fields-2-toolkit-0-4-2/#alt_related)
   which uses multiple selection checkboxes instead of a single selection dropdown.
 * [numeric field](http://magicfields17.wordpress.com/magic-fields-2-toolkit-0-4-2/#alt_numeric)
   with support for measurement units suffix and/or currency symbol prefix.
 * [URL field](http://magicfields17.wordpress.com/magic-fields-2-toolkit-0-4-2/#alt_url)
   contains the data for a HTML <a> element.
 * [pseudo field for generating a table of Magic Field names and values](http://magicfields17.wordpress.com/magic-fields-2-toolkit-0-4-2/#alt_table).
 * field for WordPress’s embed shortcode.
 * alternative textbox field that allows you to select previously entered data.
 * alternative dropdown field that allows you to enter new options directly into
   the dropdown.

#### Search widget

 * [finds posts by Magic Fields 2 field values.](http://magicfields17.wordpress.com/magic-fields-2-search-0-4-1/)

#### Miscellaneous enhancements to Magic Fields 2

 * [Create a copy of a Magic Fields 2 custom post](http://magicfields17.wordpress.com/magic-fields-2-toolkit-0-4-2/#copy)
   copying all of the Magic Fields’ custom fields, groups and taxonomies.
 * Identify and delete unreferenced files in folder files_mf.
 * Provides an alternative get_audio function that outputs HTML5 audio elements 
   for iPad and iPhone browsers.
 * Provides some Magic Fields 2 utility functions for PHP programmers.

Please visit the [Toolkit’s online documentation](http://magicfields17.wordpress.com/magic-fields-2-toolkit-0-4-2/)
for more details.
 **This plugin works with Magic Fields 2.3 and requires at least
PHP 5.4.**

## Встановлення

 1. Upload the `Magic Fields 2 Toolkit` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Open ‘Settings->Magic Fields 2 Toolkit’ menu item and enable specific features –
    all features are not enabled by default.
 4. To copy a custom post open the “All Your Custom Post Type” menu item and click 
    on “Create Copy” for the entry of the desired post.
 5. To use shortcodes please see [the online documentation](http://magicfields17.wordpress.com/magic-fields-2-toolkit-0-4-2/#shortcode).
 6. To use content templates please see [the online documentation](http://magicfields17.wordpress.com/magic-fields-2-toolkit-0-4-2/#macros).
 7. Other features are self-explanatory.
 8. The most current documentation is available at [Toolkit’s online documentation](http://magicfields17.wordpress.com/magic-fields-2-toolkit-0-4-2/).

## Часті питання

  Does this plugin require Magic Fields 2 to be installed?

Yes, this plugin is designed to work with Magic Fields 2 custom fields which have
a non-standard implementation.

  I have installed the plugin without errors but the plugin does nothing.

You must enable specific features – all features are not enabled by default. Open‘
Settings->Magic Fields 2 Toolkit’ menu item and select the features you want.

  After upgrading to version 0.4.6 the search results table of post is not sortable.

Version 0.4.6 has a new default content macro for sortable tables. However, the 
toolkit will not automatically replace an existing content macro – because you may
have customized it. However, you can restore the default content macro by completely
erasing the content macro definition.

## Відгуки

![](https://secure.gravatar.com/avatar/dd2b2ae4b76ed509cc4ab223be2a793cde472c14a69b7bd1181971a260f7ec34?
s=60&d=retro&r=g)

### 󠀁[End of Active Development](https://wordpress.org/support/topic/end-of-active-development/)󠁿

 [Magenta Cuda](https://profiles.wordpress.org/magenta-cuda/) 03.09.2016

The home page of this plugin is hosted at wordpress.com. Some time after Aug 23,
2015 wordpress.com changed the post processing that it applies to sanitize the HTML
before saving. The new algorithm began ignoring some of my HTML escape characters
and saving escaped HTML as valid HTML. This has broken many of my examples which
by necessity contain HTML. I cannot even restore to an earlier good version since
the new post processing is still applied and again ignores the same HTML escape 
characters and re-mangles the earlier good version into the same mess. For the present
it seems it is impossible to restore that site. If you need any help at all please
contact me at https://wordpress.org/support/plugin/magic-fields-2-toolkit. I absolutely
respond to every request in reasonable time so it will not be a waste of your time.
Since, I only have access to the mangled good earlier versions it seems the whole
site may need to be rewritten and moved to another web host. As this plugin only
has 30+ users according to wordpress.org I think it is easier to support those users
individually than to rewrite and move this entire site. Of course this means I will
have to stop development of this plugin as there will be no way to document new 
features but there were only a small number of additional features I had planned
anyway.

 [ Прочитати всі 3 відгуки ](https://wordpress.org/support/plugin/magic-fields-2-toolkit/reviews/)

## Учасники та розробники

“Magic Fields 2 Toolkit” — проект з відкритим вихідним кодом. В розвиток плагіну
внесли свій вклад наступні учасники:

Учасники

 *   [ Magenta Cuda ](https://profiles.wordpress.org/magenta-cuda/)

[Перекладіть “Magic Fields 2 Toolkit” на вашу мову.](https://translate.wordpress.org/projects/wp-plugins/magic-fields-2-toolkit)

### Цікавитесь розробкою?

[Перегляньте код](https://plugins.trac.wordpress.org/browser/magic-fields-2-toolkit/),
перегляньте [сховище SVN](https://plugins.svn.wordpress.org/magic-fields-2-toolkit/)
або підпишіться на [журнал розробки](https://plugins.trac.wordpress.org/log/magic-fields-2-toolkit/)
за допомогою [RSS](https://plugins.trac.wordpress.org/log/magic-fields-2-toolkit/?limit=100&mode=stop_on_copy&format=rss).

## Журнал змін

#### 1.2.1.2.1

 * End of active development notice

#### 1.2.1.2

 * A workaround for problems with [shortcode_parse_atts()](https://core.trac.wordpress.org/ticket/34039)
   and [wptexturize()](https://wordpress.org/support/topic/wptexturize-inconsistent-behavior).

#### 1.2.1.1

 * rewrote database access routines of utilities functions to improve security and
   efficiency

#### 1.2.1

 * support configurable jQuery UI themes for the mt_tabs shortcode

#### 1.2

 * alt_image, alt_video, and alt_audio fields now accept width in percentage (not
   just pixels) which is more appropriate for responsive design
 * more code re-written to fix bugs, improve security and improve software quality

#### 1.1.1

 * code rewritten to fix bugs, improve security, improve software quality and support
   localization

#### 1.1

 * Fixes for WordPress 4.3
 * Added a mt_show_tabs shortcode for displaying a list of [show_macro] shortcodes
   in jQuery UI tabs
 * mt_show_gallery shortcode for alt_images fields now support mouse-over popups
   and clickable links
 * Code for shortcode [mt_field] rewritten to improve software quality

#### 1.0

 * The post content template interpreter has been redesigned and rewritten.
 * Video and audio media now support mouse-over popups and clickable links where
   applicable.
 * Css for media elements and the search widget improved to be compatible with more
   themes.
 * Added a sync button to synchronize Magic Fields 2 fields with the current toolkit
   fields to fix the annoying bug where the toolkit stops working after you upgrade
   Magic Fields 2;
 * Filters moved to the namespace mf2tk to reduce global namespace pollution.
 * All shortcodes are now rename-able for consistency and conflict resolution.
 * Some code rewritten to improve software quality.

#### 0.5.8.3

 * alt_image_field, alt_video_field, alt_audio_field, alt_embed_field and alt_numeric
   parameters e.g., width, height, … can now be overridden by using corresponding
   show_custom_field parameters
 * alt_image_field, alt_video_field, alt_audio_field and alt_embed_field now have
   a simplified how to use interface
 * fix css alignment problems with media elements, in particular removed the bottom
   margin from media elements to reduce the space between media and caption
 * rewrite code to improve speed, stability, security and software quality – use
   namespaces to reduce global pollution, gracefully handle missing parameters, 
   use $wpdb->prepare(), …

#### 0.5.8.2

 * fix the really annoying bug where the should be optional mouseover overlay had
   to be specified

#### 0.5.8.1

 * alt media fields now support showing popups on mouseover
 * fix [problem](https://wordpress.org/support/topic/get_data-returns-wrong-options)
   with Magic Fields get_data function by replacing with function alt_get_data

#### 0.5.8

 * added interactive shell for evaluating shortcodes so that you can quickly see
   the HTML generated by shortcode processing

#### 0.5.7.1

 * variable assignments now support filters
 * if statement now supports an equality condition
 * added filters to return field name and field type

#### 0.5.7

 * support assigning custom field values to content template variables
 * modify content template conditional inclusion to require both definition and 
   truthy
 * support iteration for content template variables

#### 0.5.6

 * content templates now support a post iterator
 * fix bugs with the alt_video field type

#### 0.5.5

 * content templates now support iterators for group and field indexes

#### 0.5.4

 * added a gallery shortcode for “image media” and “alt_image” fields
 * “how to use” now works for duplicated fields

#### 0.5.3

 * added support for post type specific search result templates

#### 0.5.2

 * added a URL field
 * alt_image now has onclick URL property
 * added how to use boxes for taxonomies
 * inserting content templates can now be done directly from the post content editor–
   alt_template pseudo field is not necessary
 * alt_table field now saves its settings

#### 0.5.1

 * save post content as a content template(content macro)
 * psuedo field to generate the shortcode to use a content template(content macro)

#### 0.5.0.2

 * fix some css problems on Firefox and some anomalies with the video shortcode 
   on Firefox

#### 0.5.0.1

 * removed some debugging code

#### 0.5

 * make shortcodes easier to use by automatically generating a bespoke shortcode
   for each Magic Field
 * added a pseudo field that automatically generates a shortcode for table of Magic
   Fields names and values
 * added a numeric field type with a measurement unit suffix and/or currency symbol
   prefix
 * make the video, audio, embed and image field types more user friendly and correct
   anomalies in the generated HTML elements
 * bug fixes, prettify admin settings interface

#### 0.4.6.3.1

 * bug fixes, prettify user interface and code maintenance

#### 0.4.6.3

 * fix drag and drop problem on search widgets administrator’s interface for older
   versions of Internet Explorer
 * added style sheet for the search widget
 * several small enhancements and bug fixes for the search widget

#### 0.4.6.2

 * no changes; just synced readme and plugin version numbers

#### 0.4.6.1

 * upgrade a utility file to current version

#### 0.4.6

 * The search results table of posts is now a sortable table. Note that this requires
   a manual upgrade of search widget’s content macro.

#### 0.4.5.3

 * fix pagination bug for search results output
 * added psuedo file __post_author
 * added search by post author
 * added support for post type specific css file for alternate search result output
 * omit select post type if there is only one post type

#### 0.4.5.2

 * 0.4.5.1 was the wrong version

#### 0.4.5.1

 * optionally display seach results using a content macro
 * supports drag and drop to change order of search fields
 * for searches optionally set query type to is_search so only excerpts are displayed
   for applicable themes
 * provides a field for WordPress’s embed shortcode.
 * rovides a field for WordPress’s video and audio shortcodes.

#### 0.4.2.5

fix error in macro definition

#### 0.4.2.4

fix a bad uri.

#### 0.4.2.3

corrected version number errors again.

#### 0.4.2.2

corrected version number errors.

#### 0.4.2.1

corrected errors in this readme.

#### 0.4.2

 * show_custom_fields now can iterate over a list of posts making a table of data
   from multiple posts easy to do
 * macro shortcode now understands inline macros so you do not have to create a 
   content macro post
 * macro conditionals can now have a #else# block
 * macros can now have default arguments
 * added psuedo field __post_title

#### 0.4.1

 * ordering fields first by group index then by field name
 * excluding fields by class name, e.g. -alpha means exclude fields of class alpha
 * injecting the class name into field prefixes and suffixes using the html comment
   <!–$class–>
 * a psuedo parent field __parent so that the parent post can be referenced in a
   recursion
 * wildcarding the group name, e.g. _\__<_,_> is now valid
 * a special group member field mf2tk_key which will specify the group index as 
   text and whose class is the group class
 * indexing groups by name instead of integers using the value of the mf2tk_key,
   e.g. alpha_beta<gamma,_> instead of alpha\_beta<1,_>
 * classes for groups using the class of the mf2tk_key which can be used to include/
   exclude groups
 * group_before/group_after with replacement of html comments <!–$Group–>, <!–$class–
   >, <!–$group–>
 * changed search from using the multiple select html element to multiple select
   html checkboxes

#### 0.4

 * Added new features: macros for post content, an alternative dropdown field, an
   alternative HTML5 compatible get_audio() function and utility functions.
 * Enhanced the shortcode feature with more parameters and the search feature with
   configurable parameters.

#### 0.3.1

 * Minor correction to 0.3

#### 0.3

 * Added a search widget for Magic Fields.
 * Added an alternative textbox field that allows you to select previously entered
   data.

#### 0.2

 * Added an alternative related type field which uses multiple selection checkboxes
   instead of a single selection dropdown.
 * Enhanced shortcodes to make it easier to display a table of field names and their
   values.

#### 0.1

 * Initial release with custom post copy and custom field shortcode features.

## Мета

 *  Версія **1.2.1.2.1**
 *  Останнє оновлення **10 років тому**
 *  Активних встановлень **20+**
 *  Версія WordPress ** 3.6 або вище **
 *  Tested up to **4.2.39**
 *  Мова
 * [English (US)](https://wordpress.org/plugins/magic-fields-2-toolkit/)
 * Позначки
 * [custom fields](https://uk.wordpress.org/plugins/tags/custom-fields/)[shortcodes](https://uk.wordpress.org/plugins/tags/shortcodes/)
   [templates](https://uk.wordpress.org/plugins/tags/templates/)
 *  [Розширений перегляд](https://uk.wordpress.org/plugins/magic-fields-2-toolkit/advanced/)

## Оцінки

 3 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/magic-fields-2-toolkit/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/magic-fields-2-toolkit/reviews/?filter=4)
 *  [  1 3-star review     ](https://wordpress.org/support/plugin/magic-fields-2-toolkit/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/magic-fields-2-toolkit/reviews/?filter=2)
 *  [  1 1-star review     ](https://wordpress.org/support/plugin/magic-fields-2-toolkit/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/magic-fields-2-toolkit/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/magic-fields-2-toolkit/reviews/)

## Учасники

 *   [ Magenta Cuda ](https://profiles.wordpress.org/magenta-cuda/)

## Підтримка

Є що сказати? Потрібна допомога?

 [Перейти в форум підтримки](https://wordpress.org/support/plugin/magic-fields-2-toolkit/)