Manually Creating arve Shortcodes

TOC

You pick video URL from YouTube or another supported host and then.

[arve url="https://www.youtube.com/watch?v=Z7g8-GxLTSc" /]

See Attributes page for a list of all available parameters.

If the host is not listed or listed as not supported with URL you need to use the src from a iframe embed code a video host may give out.

[arve url="https://example.com/iframe-src-url-here" /]

SEO ready Shortcode would be:

[arve url="https://youtu.be/Z7g8-GxLTSc" title="Your SEO Title" description="Your SEO Description" upload_date="2016-09-14" /]

One thing is a little tricky without a UI: If you need a ID for the thumbnail parameter you can get if from the WP Media Gallery by clicking on the image and looking at the address bar ../wp-admin/upload.php?item=1234 the number on the end is the ID. So a video with this image as responsive custom thumbnail would be:

[arve url="https://youtu.be/Z7g8-GxLTSc" thumbnail="1234" /]

Do not confuse provider player URL-parameters with arve shortcode attributes when writing Shortcodes.

Wrong:

[arve url="https://vimeo.com/136395742" aspect_ratio="3:1" title="0" byline="1" portrait="0" /]

Right:

[arve url="https://vimeo.com/136395742" aspect_ratio="3:1" parameters="title=0&byline=0&portrait=0" /]

ARVE has its own autoplay and loop parematers and you should use them and ARVE will set the URL parameters for these automatically for you.

See the Provider Player Parameters page for options how to customize the players.

General Iframe Embedding

Generally speaking ARVE’s embedding for unlisted providers should be pretty straight forward.

All you have to do is paste the iframe embed code a site gives you into the ARVE block or when using Classic Editor and Shortcode Dialog src url and aspect ratio get extracted automatically.

When manually writing a shortcode all you need it the url from the src attribute. Optionally, you can use width and height linked with a colon as aspect ratio (default is 16:9 that is correct for most videos)

A site gives you are shortcode like this:

<iframe src="https://example.com/embed/1234" width="640" height="480"></iframe>

The shortcode you can create for it would look like this.

[arve url="https://example.com/embed/1234" aspect_ratio="640:480" optional="foobar" optional2="foobar2" /]

ARVE assumes a URL is an iframe src if ARVE can’t detect it see the Provider Support Table to see what providers will need an embed code.