A filter that displays 360-degree panoramas taken with Photo Sphere.
Installation Instructions
- Upload the
wp-photo-sphere
folder to the /wp-content/plugins/
directory
- Activate the plugin through the ‘Plugins’ menu in WordPress
How to add a panorama?
Use the Add a panorama
button to upload or choose a panorama to insert into your post.
Is it possible to read a distant panorama?
Since version 3.1, it is possible to read a distant panorama located on another website thanks to its URL. To do that, do not
indicate any ID number and use the url
attribute. Note that this feature does not work with domains that did not enable CORS.
For example: [sphere url="http://upload.wikimedia.org/wikipedia/commons/a/a4/Cascading_Milky_Way.jpg"]
.
How to change the title?
The default title displayed on each WP Photo Sphere link can be changed in the options page. You can also choose to display an
unique title for a specific panorama by using the title
attribute. Note that the %title%
tag is also available in this
attribute.
How to change the dimensions?
By default, the dimensions are 560 x 315 pixels but you can change that in the options page (in the Settings menu).
You can also choose different dimensions for each panorama using the width and height attributes.
For example: [sphere 42 width="200" height="400"]
or [sphere 42 width="50%" height="300"]
.
A maximum width can also be given with the attribute max_width. Its default value can be changed in the options page.
How to display the navigation bar?
The navigation bar allows users to zoom, animate the panorama or view it in fullscreen. To display it, just use the navbar
attribute
with the value yes
: [sphere 42 navbar="yes"]
.
You can choose to display it (or not) on all of your panoramas in the options page. If you display it on all of your panoramas and
want to deactivate it on one particular panorama, use the navbar
attribute with the value no
.
Can I change the automatic animation?
By default, panoramas are automatically animated after 2000 milliseconds, but you can change this with the
anim_after attribute. You can also deactivate the animation with the value -1. For example:
[sphere 42 anim_after=”5000″] or [sphere 42 anim_after="-1"]
.
You can set the animation speed with the anim_speed attribute. It accepts six units: revolutions per minute/second
(rpm/rps), degrees per minute/second (dpm/dps) or radians per minute/second (rad per minute/second). The default
speed can be set in the options page.
Example: [sphere 42 anim_speed="10rpm"]
.
Is it possible to autoload the panorama?
Since the version 1.1, you can specify, for each panorama, a special attribute: autoload
. If you use this attribute,
the panorama will start automatically after the page has loaded. This attribute doesn’t require any value, for
example: [sphere 42 autoload]
or [sphere 42 width="300" height="150" autoload]
.
How to change the levels of zoom?
Minimal and maximal levels of zoom can be personalized in the options page by changing the minimal and maximal fields of view. You can
also use the min_fov
and max_fov
attributes.