Aesqe
Forum Replies Created
-
Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] CSS include?I’d definitely recommend using
wp_enqueue_style()to avoid duplicate inclusion.Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] Template tag: does it make sense?you can call the main
file_gallery_shortcodefunction from anywhere in your theme. accepted parameters are the same as in the shortcode, just provide them as an array, rather than a string of variables (i’ve noticed some buggy behavior).try this, for example:
echo file_gallery_shortcode(array("size" => "medium", "link" => "file", "columns" => 3));this, however, will not automatically enqueue any CSS styles or scripts, so it’s up to you to handle those. if you’re working with custom templates, then you know where you’re calling the function, and you can enqueue any CSS or javascript files as needed.
hope this helps 🙂
Forum: Plugins
In reply to: [File Gallery] add an url for each picture of the gallery@jennifer: that field’s value isn’t saved anywhere in the database, it’s there only so you could set a link for the currently-viewed media, when it’s inserted into the post editor.
Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] Custom Media fields in Template?hi ljvd 🙂
you can use the standard WP get_post_custom() function to retrieve an attachment’s custom fields.
try something like this inside your template:
$custom_fields = get_post_custom($attachment->ID); foreach($custom_fields as $key => $values) { // skip fields with underscore as their first letter if( '_' != substr($key, 0, 1) ) { foreach($values as $value) { echo '<p>[' . $key . '] => ' . $value . '</p>'; } } }Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] Pagination fix@workpressed: it should work all the same regardless of the post type.
Which version of the plugin are you using?
Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] Empty starting PO file?thedarkmist:
– deactivate old version
– delete old version
– install new versionyour options should stay preserved 🙂
Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] Rel tag not working?thehobbo: actually, there is no particular reason, I just figured 99% of users won’t open anything else but full size images in lightboxes. But, as more and more people create their own templates, I see that I better offer rel attribute regardless of link option.
Also, I’d really recommend you try the latest RC of File Gallery (http://wordpress.org/extend/plugins/file-gallery/download/), as there are soooo many improvements in it 🙂
Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] EXIF in template?hi ethan 🙂
in the template, use the following code to get the EXIF data:
$image_data = wp_get_attachment_metadata( $attachment->ID ); $image_meta = $image_data['image_meta'];and then you will be able access the following properties:
$image_meta['aperture']; $image_meta['credit']; $image_meta['camera']; $image_meta['caption']; $image_meta['created_timestamp']; $image_meta['copyright']; $image_meta['focal_length']; $image_meta['iso']; $image_meta['shutter_speed']; $image_meta['title'];`
Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] Rel tag not working?hi thehobbo, thedarkmist 🙂
(he rel tag won’t be added unless the “link to” option is set to “file”.
which version of the plugin and wordpress are you using?
thanks!
Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] Standard sort orderhi bstreeck 🙂
those options are for file gallery metabox in the admin *only*.
I’ve explained that in the help file, but I’ll add it to the settings page as well
Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] CSS include?@felixschl: yes, unless you use a shortcode within your post content, the CSS files will not be included. They simply cannot be included because they need to be placed in the head of the document. Shortcodes within post content are processed way before those included in your template files and allow File Gallery to enqueue all the needed files. If you call do_shortcode() from a template file, that means that the call will be received _after_ the page head has been processed.
As for the second question: did you rename the template folder to something else, and modified the CSS file accordingly?
Forum: Plugins
In reply to: [File Gallery] File Gallery Plugin – Simple Template not workingno problem, I’m glad you got it working 🙂
Forum: Plugins
In reply to: [File Gallery] Filter with more than one tagadded in v1.7-RC9, will be out in a few days
Forum: Plugins
In reply to: [File Gallery] File Gallery template & Child Themethanks for letting me know, I’ll fix it for v1.7-RC9 🙂
Forum: Plugins
In reply to: [File Gallery] File Gallery Plugin – Simple Template not working@henryleo::
the “simple” template depends on javascript, it looks the same as the default template when javascript is off or there was an javascript error.if you’re running firefox, please check the error console (ctrl+shift+j on Windows), errors tab, and see if you can find some error associated with javascript files on your site.
I’ve tested Google Analyticator locally and everything works fine. 😐
let me know how it goes or if you need any help!