WPU Options
Friendly interface for website options.
by Darklg · github.com/wordpressutilities/wpuoptions · website
★ 4stars
1forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/wordpressutilities/wpuoptions/archive/refs/heads/main.zipDeclares an update source (https://github.com/WordPressUtilities/wpuoptions), so updates arrive through the plugin's own updater.
From the readme
Options
Friendly interface for website options.
How to install :
Put this folder to your wp-content/plugins/ folder.
Activate the plugin in "Plugins" admin section.
How to add fields :
Put the code below in your theme's functions.php file.
Field types :
Default : A "text" input.
"title" : A simple section separator.
"editor" : A WYSIWYG editor used in the content of a post.
"file" : An attached file.
"media" : An attached file present in the Media editor.
"page" : A WordPress page.
"category" : A WordPress category.
"taxonomy" : A WordPress taxonomy. (default : category. Use the argument "taxonomy" value to specify.)
"post" : A WordPress post. (default : post. Use the argument "posttype" value to specify.)
"select" : A value inside an array present into "datas" (default : yes/no)
"radio" : A value inside an array present into "datas" (default : yes/no)
"textarea" : A classic textarea
"color" : A "color" field
"date" : A "date" input
"email" : A "email" input
"number" : A "number" input
"url" : A "url" input
Field tests :
"email" : value must be a valid email
"page" : value must be a numeric ID
"radio" : value must be contained into the "datas" array.