=== UglyFields ===
Contributors: uglydev
Tags: custom fields, meta fields, gutenberg blocks, options page, repeater
Requires at least: 7.1.4
Tested up to: 7.1
Requires PHP: 8.1
Stable tag: 0.3.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Custom fields that just work: a visual builder, blocks, options pages and content types. Ugly name. Pretty fast.

== Description ==

**Ugly name. Pretty fast.**

UglyFields is the custom fields plugin that gets out of your way. Build the fields you need in a visual builder, give your editors clear boxes with names they understand, and print the result in your theme with one line of code. No build step, no `meta_query` to write, nothing to install on the server.

**The free plugin is the whole builder, not a trial.** It works on as many sites as you like, with no time limit.

What you get:

* **A visual builder** with 28 field types: text, numbers, dates, choices, images, files, gallery, rich text, link, repeater, group, tabs and more.
* **Rules for where each group shows**: pages, posts, templates, options pages and your own content types.
* **Conditional logic**: show a field only when another one has an answer. Required fields are checked before saving.
* **Options pages, content types and taxonomies** made from the admin, with no code.
* **Gutenberg blocks with their own fields**, built from a folder of your theme.
* **Fields saved as files**: every group is written as a JSON file in your theme, so it travels with your code and can go in Git. Sync, export and import are included.
* **Import from ACF** with a review before anything is saved. Your values stay where they are.
* **Print values safely** with `ugly_show( 'field' )`, read them with `ugly_get( 'field' )`, or use a shortcode or the REST API.
* **Search by fields** with `ugly_find()`, with no `meta_query` to write.

In your theme:

`<?php ugly_show( 'subtitle' ); ?>`

**Want more?** UglyFields Pro adds eight more field types (flexible content, clone, relationship, taxonomy, menu, table, embed, icon), columns and filters in the lists, Block Bindings, forms on your site, more than one language with Polylang, WP-CLI and GraphQL. You pay once, and it is yours: if you do not renew, everything you built keeps working. Read more at [uglydev.com](https://uglydev.com/pricing/).

== Installation ==

1. In your admin, go to Plugins > Add New, search for UglyFields and press Install Now. Or upload the ZIP in Plugins > Add New > Upload Plugin.
2. Press Activate. UglyFields appears in your admin menu.
3. Open UglyFields, press New group, name it, choose where it shows and add a field.
4. In your theme, print the value with `ugly_show( 'your_field' )`.

== Frequently Asked Questions ==

= Is the free plugin limited? =

No. It has no time limit and no limit on sites. Pro adds more features for bigger projects; what the free plugin has keeps working whether you upgrade or not.

= What happens to my data if I stop using it? =

Your values stay in WordPress as normal custom fields, and your groups are JSON files in your theme. Deleting the plugin removes only what it made to run (the definitions of groups and options pages), never what your editors typed.

= Can I move from ACF? =

Yes. The import shows you what it found and what has no equivalent before it saves anything, and your values are kept as they are.

= Do I need Composer, Node or a build step? =

No. There is nothing to install on the server.

== External Services ==

This free plugin does not connect to any external service. It sends nothing about your site to anyone, does not track the people who visit it and does not add anything to your pages.

UglyFields Pro (the paid version, a separate plugin) uses Freemius to look after its license. Only when you activate a license key (Settings > License), Pro sends the site address, the version of the plugin and the state of the license to Freemius (`api.freemius.com`) to check the key and to deliver updates; the WordPress and PHP versions, the language and the title of the site may be sent too. Freemius [Privacy Policy](https://freemius.com/privacy/) and [Terms of Service](https://freemius.com/terms/).

== Screenshots ==

1. Your field groups in one list: what each box holds and where it shows up.
2. The builder: add fields, drag them into order and set each one without writing code.
3. The fields sit where editors already work, inside the WordPress editor.
4. Options pages: settings for the whole site, such as a phone number or opening hours, with rows you can repeat.
5. Move your work: export it to a file, or bring it in from ACF and other plugins.

== Changelog ==

= 0.3.0 =
* The new mark of UglyFields: the U made of blocks, on the bar of the plugin screens and in the WordPress menu.
* UglyFields Pro has its own license screen, and UglyFields and UglyFields Pro can no longer run at the same time.
* Options pages have the pencil to edit the group and the arrow to hide or show each box, as on the editing screen of a post.
* Deleting the plugin keeps your groups, options pages and content types, unless you turn on "Delete data on uninstall".
* Links to uglydev.com go to the right pages, the texts use American English, and the code passes the Plugin Check of WordPress.org with no errors.

= 0.2.17 =
* Code tidied to pass the Plugin Check of WordPress.org with no errors and no warnings. Nothing changes in how the plugin works.

= 0.2.16 =
* The mark of the plugin is now the U of the website, made of blocks with one orange: on the bar of the plugin screens and in the WordPress menu.

= 0.2.15 =
* The "UglyFields" link at the foot of the plugin screens opens the features page of the website.

= 0.2.14 =
* All the links to uglydev.com are made in one place and now go to the right pages (Documentation, Support, Feedback, Manage license). The texts use American English everywhere. The footer says "Pro" like the rest.

= 0.2.13 =
* Deleting the plugin from the Plugins screen no longer removes anything by default (as ACF does): your groups, options pages and content types stay in the database, so installing it again finds them. To remove them too, turn on "Delete data on uninstall" in the settings before deleting.

= 0.2.12 =
* The box of each field group on an options page now looks like the one on the editing screen of a post: the pencil to edit the group and the arrow to hide or show the box (WordPress remembers it for each person), plus the field count and the button that folds every block.

= 0.2.11 =
* "Manage license" opens uglydev.com/manage-license, which sends to the customer portal, so the portal address can change without a new version of the plugin.

= 0.2.10 =
* The paid plugin is called UglyFields Pro by its Freemius ZIP (premium suffix "Pro"): the code that used to take "(Premium)" out of the plugins list is gone.

= 0.2.9 =
* The paid plugin has the same name in its header as the free one (UglyFields) and Freemius suffix "Pro"; the plugins list always says UglyFields Pro.

= 0.2.8 =
* Freemius setting premium_suffix set to "undefined" (a test of the name in the ZIP).

= 0.2.7 =
* Freemius setting premium_suffix left empty (to see if the ZIP name loses its (Premium)).

= 0.2.6 =
* Same as 0.2.5, built again so the plugin name in the ZIP is clean.

= 0.2.5 =
* The Upgrade button leads to the plans page of the website, and the plugin no longer shows the window about canceling a subscription when it is turned off.
* No notice about a translation loaded too early.

= 0.2.4 =
* UglyFields and UglyFields Pro cannot both run, as with ACF and ACF PRO: turning one on turns the other off and says so in the plugins list. Nothing is deleted.

= 0.2.3 =
* The message after an action is drawn under the header, the same on every screen, and is shown once.
* Groups and blocks edited a moment ago say "Edited seconds ago".
* The line at the foot of the screens takes the whole width.
* What is only in Pro leads to the plans on the website.
* Deleting the plugin removes a little more of what it saved.
* New description, and the author is UglyDev.

= 0.2.2 =
* Text and text area keep what is typed, such as line breaks and simple formatting.
* New `ugly_rows( 'field' )`: the rows of a repeater or flexible content as a list that is always there, so a loop never warns.
* The ACF import explains the differences you are most likely to meet when moving a theme.

= 0.2.1 =
* Two repeaters, one inside the other, work wherever you put them, also inside flexible content.

= 0.2.0 =
* Sync for content types and options pages, trash and bulk actions in every list, required fields, and the ACF import with plain notes.
* Blocks are built in one place. The plugin loads lighter files, so pages are a little faster.

= 0.1.0 =
* First version: the builder, content types, blocks, options pages, REST API, import from ACF and Sync with the JSON files of your theme.
