Community Forums › Forums › Archived Forums › General Discussion › 360 Photos for Featured Images
Tagged: 360 Photo, featured image
- This topic has 11 replies, 2 voices, and was last updated 8 years, 9 months ago by
Brad Dalton.
-
AuthorPosts
-
September 23, 2017 at 9:39 am #211797
rfichtinger
MemberI was wondering if there's an easy way to insert a 360 Photo as a Featured Image?
Thanks,
http://www.invitation633.com/
BobSeptember 23, 2017 at 1:55 pm #211807Brad Dalton
ParticipantHello Bob
Where did you want to display the featured image. On archive pages and/or single posts?
September 23, 2017 at 2:22 pm #211808rfichtinger
MemberBrad,
On the single posts.
- Bob
September 23, 2017 at 2:43 pm #211809Brad Dalton
ParticipantLink to a example of a 360 image you want to use please.
You would need to be able to embed the image. If you can do that in WordPress, then you can easily add it in genesis single posts.
September 23, 2017 at 2:46 pm #211810rfichtinger
MemberSeptember 23, 2017 at 3:51 pm #211811Brad Dalton
ParticipantSeptember 23, 2017 at 4:53 pm #211812rfichtinger
MemberI have the plugin for the 360 VR Photos - "WP-VR-view - Photo Sphere and 360 video". It displays 360 photos on the posts (by using shortcode) - just don't know how to get it into my featured image area.
Thanks,
BobSeptember 23, 2017 at 5:02 pm #211813Brad Dalton
ParticipantSomething like this
add_action( 'genesis_before_entry', 'shortcode_before_entry' ); function shortcode_before_entry() { if ( ! is_singular( 'post' ) ) { return; } echo do_shortcode('[your_shortcode_handle]'); }
September 23, 2017 at 6:23 pm #211816rfichtinger
MemberI updated my functions file. Not sure how to place shortcode into the set featured image area.
I've tried creating a test post with no featured image and place a 360 file on the post itself - thinking it would show that as my featured image - which works on regular jpg's. But a gray box shows up instead of the 360 photo.
Any more thoughts.
Thanks for your help,
BobSeptember 23, 2017 at 6:41 pm #211817Brad Dalton
ParticipantDid you swap out this [your_shortcode_handle] with your shortcode?
Also check known issues. Didn't work in Chrome for me but did in FF.
September 23, 2017 at 6:53 pm #211818rfichtinger
MemberNot sure what you mean? I used the plug-in's short code. What's does the new short code look like? Sorry I'm not a coder.
[vrview img="http://www.invitation633.com/wp-content/uploads/2017/09/IMG_2149.jpg" width="100%" ]
Thanks,
BobSeptember 23, 2017 at 6:59 pm #211820Brad Dalton
ParticipantThats a shortcode so swap that out in the PHP code above
add_action( 'genesis_before_entry', 'shortcode_before_entry' ); function shortcode_before_entry() { if ( ! is_singular( 'post' ) ) { return; } echo do_shortcode('[vrview img="http://www.invitation633.com/wp-content/uploads/2017/09/IMG_2149.jpg" width="100%" ]'); }
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.