Aesqe
Forum Replies Created
-
@rfendelman: not by default, but you could do something like this, for example:
– add a custom field to each attachment, name it “external_link” or similar
– create your own file gallery template which checks for this “external_link” custom field and links each image to it, if it existsForum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] Server CPU Usage problem!@dwny: do you use any caching plugins?
You can also turn caching of gallery queries in File Gallery to speed things up a little bit. Go to your media settings page and find the ‘Cache’ subsection under File Gallery section, and check the checkbox next to ‘Enable caching?’.
Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] Pagination problem?@jocchino: what lightbox script are you using, and how are you binding it to links?
Forum: Plugins
In reply to: [File Gallery] File Gallery Display Not Showing All Files@daiyoukai: could you post a link to a page that displays this problem? or a screenshot? also, what version of the plugin are you using?
thanks 🙂
Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] Duplicated CSS image classes (fix)fixed in 1.7.5.3, marking as resolved
@deepbevel: currently, that function returns only all media tags, but you can use default WordPress functions to get all media tags related to a specific post’s attachments.
here’s a quick, untested function which should return an array containing all media tags (each as an object, see here: http://codex.wordpress.org/Function_Reference/get_the_terms) related to a post:
function get_media_tags_for_post( $post_id ) { global $wpdb; $media_tags_list = array(); $tags = array(); $attachment_ids = $wpdb->get_col( $wpdb->prepare("SELECT ID FROM $wpdb->posts WHERE post_parent=%d AND post_type='attachment'", $post_id) ); foreach( (array) $attachment_ids as $aid ) { $tags = get_the_terms( $aid, FILE_GALLERY_MEDIA_TAG_NAME ); $media_tags_list = array_merge($media_tags_list, $tags); } return $media_tags_list; }I’ll add this function to File Gallery in version 1.7.6.
Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] Won't allow reordering.Fixed in 1.7.5.3 – marking as resolved.
So, I’m guessing it all works as expected with the latest update? 😀
If so, I’ll mark this topic as resolved in 24 hours, so please comment if anything is still wrong with attachment ordering.
Thanks! 🙂
@raymondcrandall: no, you should use file_gallery_shortcode.
you can find out more about it in the help file: http://skyphe.org/wp-content/plugins/file-gallery/help/#theme_functions
or in these threads:
http://wordpress.org/support/topic/file_gallery_shortcode-help
I’m planning to refresh the help file for the next version, some of the data in there is slightly incomplete – but still accurate.
OK, I’ve found the culprit, and it’s the, what should I call it… ‘inflexibility’ of WP_Query in regard to the MySQL ORDER BY clause, but it’s probably my fault because I didn’t read WP_Query reference regarding the “orderby” clause more carefully – take a look at the very last paragraph of this section:
http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters
In MySQL (I suppose in any other SQL, too), when sorting by multiple fields/columns, you should place a comma between field/column names, like I did in 1.7.5.1 – “menu_order, ID”, or “”menu_order DESC, ID ASC””.
On the other hand, when setting ‘orderby’ value for WP_Query, there should be no commas present in there. And ordering by multiple columns, each having a different ORDER, is, as far as I can determine, not supported (yet).
So, to cut the jibber-jabber, I’ve uploaded version 1.7.5.3 of the plugin to the repository and it should be available for download now, or as an automatic update in the next 24hrs.
Please let me know if it still doesn’t work right for some reason.
Bruno
Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] Won't allow reordering.I’ve uploaded v1.7.5.2 here:
http://skyphe.org/files/wordpress/file-gallery-1752.zip
if anyone could test this version and confirm it works on their setup, I’d be very grateful.
Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] Phantom images in media librarygo to Settings -> Media
scroll down to “Edit screens options”
uncheck “Filter out duplicate attachments (copies) when browsing media library?”
now you should be able to see all attachments in the media library, including copies.
Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] Duplicated CSS image classes (fix)@tallerthanpenguins: thanks for the bug report! 🙂
I’ll fix it and release a new version of the plugin tomorrow.
Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] Paginate gallery "grid"@dbraphael: shortcode option is
paginate="true", but if you’ve set the limit for number of thumbnails within File Gallery metabox, you should be also seeing a “paginate” dropdown menu. Can you see it?shortcode example:
[gallery limit="9" paginate="true"]Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] turning off comments under images@ratingshark: it’s a standard WordPress feature, nothing to do with File Gallery.
There should be a “loop-attachment.php” or “attachment.php” file in your theme folder. You’ll need to edit that file to hide comments for attachments.
Look for
<?php comments_template(); ?>and comment it out like this:<?php //comments_template(); ?>