このプラグインは WordPress の最新3回のメジャーリリースに対してテストされていません。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress で使用した場合は互換性の問題が発生する可能性があります。

Just Variables

説明

This plugin allow you to create simple text variables (single/multi-line) to use them in your theme templates after that.
Once you added at least one variable, a new page called Theme Variables will appear under the Appearance menu.
You can move all your text data (like copyright text, phone numbers, address etc.) to variables.
So if the final client wants to change this text, he can do this easily as admin without editing the template.

This project is also available on github.com:
https://github.com/aprokopenko/justvariables.

You can post issues, bugs and your suggestion in Issues tracker there.

スクリーンショット

  • Plugin settings page where you can add new variables
  • Theme Variables page under the Appearance menu

インストール

  1. Download, unzip and upload to your WordPress plugins directory.
  2. Activate the plugin within your WordPress Administration Backend.
  3. Go to Settings > Just Variables.
  4. Add few variables that you want to use in your theme templates. After that, a new page called Theme Variables will be created under the Appearance menu.
  5. Go to the Theme Variables pages and add values for variables.
  6. Insert template codes.

FAQ

Q: Will my theme continue to work if I deactivate or remove this plugin?

A: If you have inserted a template function from this plugin to your templates, then you probably get error about missing functions. You will need to clean up your template files from function calls.

評価

2021年6月17日
Before I used this plugin, I had to update my prices in 8 different places. I can do it in 1/8 of the time now! Thank you!
2017年3月6日
In the interest of making as much of a website's content editable by site owners as possible, this plugin fills a big need, namely that of Global variables that can be inserted anywhere but edited just once.
2016年12月31日
Hi, great little plugin. You do need to update it to get it to work as documented in the support forum: https://wordpress.org/support/plugin/just-wp-variables/ But it saved me at least half a day, so thank you!
2016年9月3日
Thanks for plugin, it works good however it seems doesn't work in Contact Form 7 emails. I get text [shortcode-variables slug="contacts"] in email body. Could you advise how to fix it?
7件のレビューをすべて表示

貢献者と開発者

Just Variables はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“Just Variables” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

  • Version 1.2.3:
    • Bug fix: Removed deprecated function screen_icon() and updated issue with jQuery Migrate
  • Version 1.2.2:
    • Bug fix: Updated deprecated function get_current_theme()
  • Version 1.2.1:
    • Bug fix: Duplicated slashes before quotes on settings pages
  • Version 1.2:
    • New: added info how to get value without printing it
    • New: added HTML5 placeholder for inputs. This will help clients to see how to enter data correctly
    • Bug fix: Broken “delete” icon in admin page
  • Version 1.1 :
    • Bug fix: emergency fix for WP 3.4.1 (https://github.com/aprokopenko/justvariables/issues/3)
  • Version 1.0 :
    • Tested and added language support, added Russian language
  • Version 0.1 :
    • First version beta