mbruxelle
Forum Replies Created
-
Thanks David
I don’t know why but the Row Close code was not added to the output.
I simply duplcated the template, selected it, and it worked. Now I have a “<br style=”clear: both;”>” added at the end of each row.Thanks a lot for your help!
Marc
Forum: Plugins
In reply to: [Media Library Assistant] Use PHP Function instead of shortcode ?Hi
Thanks a lot!
Actually my tax_query was incorrect, it is supposed to be a multidimensional array, not a single one.
All fixed now!Thanks again for your great support!
Forum: Plugins
In reply to: [Media Library Assistant] Use PHP Function instead of shortcode ?Hi
Thanks a lot!
I tried to use MLAShortcodes::mla_gallery_shortcode but just to be sure.My $attr array looks like :
$attr = array( 'post_mime_type' => 'all', 'tax_query' => array ('taxonomy' => 'attachment_tag', 'field' => 'id', 'terms' => array($wp_query->query_vars['photo_id']), 'include_children' => 0 ), 'mla_target' => 'blank', 'columns' => 2, 'posts_per_page' => 30, 'size' => 'large', 'link' => 'file', );
Is it correct ?
Then I call echo MLAShortcodes::mla_gallery_shortcode( $attr, $content );
But I don’t see what $content is supposed to be ??For the moment, it makes my page crash and returns a blank document.
Thanks again for your help,
MarcForum: Plugins
In reply to: [Media Library Assistant] $wp_query->query_vars in queryHi David,
Thanks for your reply.
I followed your instructions and now the code returns this error :ERROR: Invalid mla_gallery tax_query = ‘array ( 0 => array ( \’taxonomy\’ => \’attachment_tag\’, \’field\’ => \’id\’, \’terms\’ => array( [+wp_query_vars:photo_id+] ), \’include_children\’ => false ) )’
Best
MarcForum: Plugins
In reply to: [Media Library Assistant] Problem with permalinksThanks again David, everything works perfectly now. How could I miss the visual editor problem!! ?? Impressive plugin and great support.
Forum: Plugins
In reply to: [Media Library Assistant] Problem with permalinksAnother thing ?? Sorry I’m trying to find a search form specific to this forum but I can’t, I can only search the whole wordpress site apparently.
I was wondering if i can use php functions in shortcodes. I have a custom field mapped to the creation date of an image. i’d like to output under each image of a gallery the creation date in a french format, like “date_format({custom:Date_Creation_Image}, ‘d-m-Y’)”.
Is it possible ?Thanks
Forum: Plugins
In reply to: [Media Library Assistant] Problem with permalinksThank you very much. I’m almost there now ??
Just a little extra question. When I use HTML entities, it just outputs exactly what i entered.
I cannot output a line break.
If I use <br>, it outputs the word <br> instead of showing a line break.
If I use <br>, it outputs <br>Thanks again ??
Forum: Plugins
In reply to: [Media Library Assistant] Problem with permalinksThanks David for the quick answer. It is very helpful.
I added a gallery page called “/gal/” and changed my codes :Tag page
[mla_tag_cloud taxonomy=attachment_tag number=0 limit=10 mla_link_href=”/gal/?current_id={+term_id+}”]Gallery page (/gal)
[mla_gallery post_mime_type=all tax_query=”array ( 0 => array ( ‘taxonomy’ => ‘attachment_tag’, ‘field’ => ‘id’, ‘terms’ => array( {+request:current_id+} ), ‘include_children’ => false ) )” mla_caption=”{+title+}” columns=1 posts_per_page=5 size=large link=none]It seems to work pretty well now. I just have two more questions ??
-Is it possible to show the value of a custom field in the output of the gallery? Below the caption of the image, I’d like to show the value of a specific custom field. Is it possible ? If so, is it possible to test if it exists before the echo ?
-Second question, is it possible to link to the full size image using something like lightbox ?
Thanks again, your plugin is really awesome!