GithubHelp home page GithubHelp logo

wordpressdev / my-meta-box Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bainternet/my-meta-box

0.0 2.0 0.0 160 KB

A class for creating custom meta boxes for WordPress

Home Page: http://en.bainternet.info/2012/how-i-add-a-wordpress-metabox

License: GNU General Public License v3.0

my-meta-box's Introduction

My Wordpress Meta box Class
=======================
Contributors: bainternet
Requires at least: 3.1
Tested up to: 3.4.2

Description
-----------
The Meta Box Class is used by including it in your plugin files and using its methods to 
create custom meta boxes for custom post types. It is meant to be very simple and 
straightforward. For name spacing purposes, All Types metabox ( meaning you can do anything with it )
is used. 

This class is derived from Meta Box script by Rilwis<[email protected]> version 3.2. which later was forked 
by Cory Crowley (email: [email protected]) The purpose of this class is not to rewrite the script but to 
modify and change small things and adding a few field types that i needed to my personal preference. 
The original author did a great job in writing this class, so all props goes to him.

Usage
--------
Take a look at the `class-usage-demo.php` file which can also be tested as a WordPress Plugin. 
Other options are available for each field which can be see in the 'my-meta-box-class.php' file, 


Known Issues and Limitations
-------------
Reapater field can't handle Posts and Taxonomy for now (and maybe even others).


Changelog
---------
= 2.9.2 =
Fixed issue #25

= 2.9.1 =
Fixed Typo in line 1812, issue #24

= 2.9 =
Fixed "array" when repater field has something other then text field :).
has_field() now checks repeater fields as well.

= 2.8 =
Fixed issue #10 by moving ajax hook to constructor.
split demo meta box to 2 meta boxes.

= 2.7 =
Fixed Load js on edit pages only.

= 2.6 =
Fixed issue #13.
Fixed issue #14.

= 2.5 = 
Fixed Issue #11.
Added Sortable option to repeater field.

= 2.4 =
Fixed WP_DEBUG errors, and taxonomy field args notice.

= 2.3 = 
* added AMPM param to addTime to show time field with am/pm option

= 2.2 = 
* Fixed use with theme on custom path

= 2.1 = 
* Added Code Editor with syntax highlighting (php,css,html,javascript) using CodeMirror.

= 2.0 =
* Fixed Insert To Post bug

= 1.9 = 
* Fixed Image field functions in repeater block.

= 1.8 =
* fixed multiple image upload issue.
* cleaned js file from unused function.


= 1.7 =
* Fixed demo plugi file with new function names.
* Fixed Wysiwyg for version 3.3 once more, (which should work now).
* Fixed image upload field.

= 1.6 =
* Added an option to set path for themes.
* Fixed repeater dynamic editing

= 1.5 =
* Fixed Wysiwyg for version 3.3


= 1.2 =
* Fixed repeater block JS code.
* Offloaded images with an option to use local images.
* Added inline for repater block.
* Added genric addFiled function.

= 1.1 =
* Reapater Implemented and removed debug leftover var_dump

= 1.0 =
* First Release

my-meta-box's People

Contributors

bainternet avatar

Watchers

James Cloos avatar Rafique avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.