Teamized Integration
WordPress Plugin for integration with Teamized.
by Rafael Urben · github.com/rafaelurben/wp-teamized · website
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/rafaelurben/wp-teamized/archive/refs/heads/main.zipThis is a WordPress Plugin for integrating with django-teamized.
Features
- Settings page: "Teamized" (under Settings group)
- Blocks:
- Club Member Portfolios: Display club group member profiles in a responsive grid
Installation
- Install the git updater plugin.
- Download the latest archive from Releases
- Go to the "Plugins → Add Plugin" screen and click the "Upload Plugin" button.
- Upload the zipped archive directly.
- Click "Activate Plugin".
- Go to the "Settings → Git Updater" screen and click "Activate Free Version".
- Install the "wp-teamized" plugin:
- Download the latest zip archive from Releases.
- Go to the "Plugins → Add Plugin" screen and click the "Upload Plugin" button.
- Upload the zipped archive directly.
- Click "Activate Plugin".
[!WARNING] If the plugin is installed via Git Updater settings, translations may not work correctly. Please install the plugin via zip upload as described above.
Development Setup
- Clone this repository to your local machine.
- Create a local WordPress environment (e.g., using Local by Flywheel, XAMPP, or MAMP).
- Create a symbolic link from the plugin directory in your WordPress installation to the cloned repository. For
example, on Windows, you can use the following command in Command Prompt (run as Administrator):
mklink /D "C:\path-to-wordpress\wp-content\plugins\wp-teamized" "C:\path-to-repo" - Activate the plugin from the WordPress admin dashboard.
Translation
This plugin uses WordPress's built-in translation system with text domain wp-teamized.
The compiled translation files (.mo and .json) are not included in the repository.
They are generated from the .po files in the release pipeline.
Use WP-CLI to generate .pot and .po files:
# Generate .pot template
wp i18n make-pot . languages/wp-teamized.pot
# Update .po files for each language
wp i18n update-po languages/wp-teamized.pot
# Now update the .po files with your translations...
# Compile .po files to .mo
wp i18n make-mo languages/
# Generate .json files for JavaScript translations from .po files
wp i18n make-json languages/
You may also use the Docker version (PowerShell):
# Generate .pot template
docker run --rm --volume "${PWD}:/var/www/html/wp-content/plugins/wp-teamized" --workdir /var/www/html/wp-content/plugins/wp-teamized wordpress:cli wp i18n make-pot . languages/wp-teamized.pot
# Update .po files for each language
docker run --rm --volume "${PWD}:/var/www/html/wp-content/plugins/wp-teamized" --workdir /var/www/html/wp-content/plugins/wp-teamized wordpress:cli wp i18n update-po languages/wp-teamized.pot
# Now update the .po files with your translations...
# Compile .po files to .mo
docker run --rm --volume "${PWD}:/var/www/html/wp-content/plugins/wp-teamized" --workdir /var/www/html/wp-content/plugins/wp-teamized wordpress:cli wp i18n make-mo languages/
# Generate .json files for JavaScript translations from .po files
docker run --rm --volume "${PWD}:/var/www/html/wp-content/plugins/wp-teamized" --workdir /var/www/html/wp-content/plugins/wp-teamized wordpress:cli wp i18n make-json languages/