/tainacan-metadata-type-url

A Tainacan Wordpress plugin for enabling URL with embed or iframe as metadata values.

Primary LanguagePHPGNU General Public License v3.0GPL-3.0

Tainacan URL Metadata Type

This repo contains an URL Metadata Type plugin for Tainacan. It accepts URL values and, when possible, renders them as an embed.

Make the script executable:

chmod u+x build.sh

To simply build the necessary .vue files into bundled javascript:

./build.sh

To, besides that, move the necessary plugin files to your wordpress plugin directory:

./build.sh /var/www/html/wp-content/plugins/

If you don't like the script you can bundle things by yourself:

cd tainacan-metadata-type-url/metadata_type
npm install
npm run build

But keep in mind that the script also takes care of removing some source files not necessary for the plugin to work, such as .vue, package.json and webpack.config.json.