WordPress.org

Plugin Directory

Test out the new Plugin Directory and let us know what you think.

Just Custom Fields

Turn WordPress into more powerful CMS by adding advanced and easy to use custom fields

Q: Where can I edit new fields for Posts or Pages?

A: After installation and activation of the plugin, you will see a new menu item under Settings > Just Custom Fields

Q: My site works slow, is it something wrong with your plugin?

A: Plugin files are included and affect only in the WordPress dashboard. They affect only the Post edit pages and the Just Custom Fields settings page. So it can't affect the site speed.

Q: How can I add my own component (new field type)?

A: First of all you need to create a new PHP class for your field. Your class should be extended from the Just_Field plugin class! You can start from copying the existing class /[plugins-folder]/just-custom-fields/components/input-text.php to your plugin folder or theme and update the code:

  • Change the class name
  • Change the class methods to use your specific controls and data.

Class structure is very similar to the WordPress Widget API classes.

Then you need to include your new component file into your plugin main file or theme functions.php file.

And the last step:

  • Add a new action hook "add_action('jcf_register_fields', 'my_register_fields_function')"
  • Add a new callback function similar to this one:

function my_register_fields_function(){ jcf_field_register('YOUR_COMPONENT_CLASS_NAME'); }

Requires: 4.7 or higher
Compatible up to: 4.7.3
Last Updated: 1 week ago
Active Installs: 4,000+

Ratings

4.4 out of 5 stars

Support

1 of 1 support threads in the last two months have been marked resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

0,1,0
100,1,1 100,1,1 100,1,1
100,2,2 100,1,1 100,1,1
100,3,3 100,2,2 100,2,2
100,1,1
0,2,0 100,2,2
67,6,4
100,2,2 100,2,2
100,1,1
100,1,1
100,1,1
50,2,1
100,1,1
100,1,1
100,1,1 100,1,1
100,1,1