Photonic on theme

General questions on how to do things using Photonic

Photonic on theme

Postby technovis » 12 Oct 2011, 07:06

Thanks for your great plugin, "Photonic Flickr+Picasa+500px Gallery" on WordPress.

I would like to use Photonic on theme other than "do_shortcode('[gallery type="flickr" photoset_id="****"]')", because each "photoset_id" comes from custom fields on posts, pages, or taxonomies.
technovis
 
Posts: 2
Joined: 12 Oct 2011, 06:59

Re: Photonic on theme

Postby sayontan » 12 Oct 2011, 08:13

If you are running do_shortcode, you are running Photonic via PHP instead of inserting it as a shortcode. Your PHP code will have direct access to custom meta fields etc and you can pass them as shortcode parameters
Sayontan Sinha | http://mynethome.net/blog | http://www.aquoid.com/news
I don't do freelance work (for Suffusion or otherwise), so please don't contact me for quotes or offers.
sayontan
Site Admin
 
Posts: 10159
Joined: 15 Sep 2009, 16:39
Location: Houston, Texas

Re: Photonic on theme

Postby technovis » 13 Oct 2011, 00:55

Thanks for your comment!

This is solved. I typed the following code on taxonomy.php.

Code: Select all
<?php echo do_shortcode('[gallery type="flickr" photoset_id="' . get_metadata('taxonomy',$term_id,'flickr',true) . '"]'); ?>
technovis
 
Posts: 2
Joined: 12 Oct 2011, 06:59


Return to Support Requests

Who is online

Users browsing this forum: No registered users and 0 guests