jhdean
Forum Replies Created
-
Forum: Plugins
In reply to: [Media Library Assistant] Exclude particular tagsThanks David,
The taxonomy query worked well. It was a bit daunting when I was looking at it in the documentation with all the array functions. Thanks for writing the example.
Jeff
Forum: Plugins
In reply to: [Media Library Assistant] Working shortcode stopped working?Found the problem. I had for some reason deleted the custom field “image_sort_name” the was used for sorting in the shortcode.
Sorry to trouble you,
JeffForum: Plugins
In reply to: [Media Library Assistant] Working shortcode stopped working?It does not give an error but nothing is displayed when there are several images with the same title, including the one that is displayed with the primary image shortcode.
Forum: Fixing WordPress
In reply to: Anchor links don't work in "Mobile" modeI checked and I was using a CSS ID not a class.
Forum: Fixing WordPress
In reply to: Anchor links don't work in "Mobile" modeHello,
I found the problem. The menu which worked with the wide window linked to places on the page with a CSS class with the name of the anchor. This even before I inserted an actual anchor. This didn’t work when the window was minimized. The other anchor links on the page behaved the same even with specific anchors added on the page for each.
When I got rid of the class names that were duplicates of the anchor names, both the menu and anchor links worked in all window sizes. I was getting class id’s and anchor names mixed and for some reason linking to a class worked with a wide window.
Jeff
Forum: Fixing WordPress
In reply to: Anchor links don't work in "Mobile" modeHello,
So, I switched to the 2015 theme. The page created with the Divi theme did not display normally in the 2015 theme so I couldn’t test the problem menu.
I made a test page with anchors and basic links at the top since I couldn’t figure out how to insert the menu on the page. The anchor links worked even when the window was minimized. It also worked in the Divi theme though??
The menu created in the Divi theme was linking to CSS ids aplied in the Divi modules on the page rather than to normal anchors. I added regular anchors throughout the page and also put the same links from the test page into a text module on the original page. They worked when the window was large but not when minimized. Same as the problem menu. I’ll check with the folks at Elegant Themes to see if they know what’s up.
Thanks,
JeffBrilliant, you are correct. The Divi editor is only changing double quotes in the HTML attributes.
Thanks,
JeffDivi is a theme from Elegant themes with a drag and drop type of page builder which is very handy. I checked in a standard editor and didn’t have the problem. This issue seems to be related to the Divi theme page builder so I will look into it with them.
thanks,
JeffThanks for the clarification David,
I think I have found the cause of so many misinterpreted “tax query error” messages and I am rather mystified.
Whenever I change the double quotes in
<div class="detail-title">
to single quotes and save, in this case a Divi text module, I can preview and it works but when I update and then open the module again, the quotes are back to double quotes??? This is in the Text editor not the Visual editor.Have you come across this before? Any ideas?
Thanks,
JeffWith this enhancement you can access the following post-/page-level fields in data selection parameters:
‘page_title’ => $post->post_title,Hello David,
In the following code,
[mla_gallery columns=0 mla_search_fields=title s="{+page_title+}" tag="primary" mla_caption="<div class="detail-title">{+template:({+title+})+}</div><br> <br>{+template:({+description+}|{+caption+})+}" link="none" size=large]
I tried using
{+template:({+page_title+})+}
to grab the page title instead of the image title but it didn’t work. The rather convoluted reason was that in order to have a link in the FooBox lightbox, I had to put it in the image title. This way I can link to the detail page from the title displayed within the lightbox. The problem then is that on the detail page, when I display the image title with the above code, it is in the form of a link instead of plain text and is rather confusing and redundant as it links to the same page where it is displayed.
If it were possible to use the new enhancements in template code as well as selection parameters I could get around this. Would that be difficult to add or am I missing something that is currently possible?
Thanks again for all your help,
JeffForum: Plugins
In reply to: [Media Library Assistant] Caption choices example codeHi David,
Thanks for the explanation about square brackets and curly braces.
I’m not sure where I had gone wrong before. I tried again with your code that didn’t the extra pipe character and it worked as it should.
Jeff
Hi David,
I installed the development version after deleting the other. I was happy to see that my field and taxonomy mapping settings remained. One odd thing was the MLA zip file ended up in the media library.
Thanks very much for this addition!
It has made it possible for me to create a saved layout in the Divi theme I am using which when used to make a new page that is named with an image title, will populate the page with the primary image and it’s description along with a gallery of detail images with the same image title. This greatly reduces the time in generating detail pages for every sculpture I add images for. Make a new page, name it, done!I have some questions on fine tuning:
Sorting a gallery-
The filenames are for example early_risers-1.jpg through early_risers-5.jpg
I have created a custom field, image_file_sort_name and put file_name in the EXIF/Template Value field and selected EXIF under Priority, also tried with name_only. When I saved it and tried mapping, no value was filled into the field.mla_itemwidth-
I have been successful using the size=medium or small or full but not mla_itemwidth=”600px”. This is for when a single image meets the filtering criteria with a columns=0 specification.
[mla_gallery columns=0 mla_search_fields=title s=”{+page_title+}” tag=”primary” mla_caption=”{+template:({+description+}|{+caption+}|title)+}” link=”none” mla_itemwidth=”600px”]tax_operator=”NOT IN”-
I tried using tag=primary tax_operator=”NOT IN” and it showed the images with the primary tag rather than excluding them. What am I missing?As I continue fine tuning, do you prefer that I start new threads rather than including questions here?
Jeff
Thank you David,
Sounds like a great addition. I’ll try installing the update and try it out.
I tried your example from your previous response:
mla_caption=”{+template:({+description+}|{+caption+}|title+}” showed the description which did exist but began with an error about a missing closing parenthesis. When I removed the first parenthesis after “template:”, the error was gone.Is there a parameter for orderby= to sort by the file name of each gallery image?
Hi David,
Back to your first response:
“There are some simple solutions for passing a single taxonomy and term from a “primary image thumbnail” to build a [mla_gallery] of items having that assignment,”
In the following shortcode: [mla_gallery mla_search_fields=title s=”Early Risers” mla_caption=”{+title+}” link=”file”], can I replace the s=”Early Risers”, (Early Risers is the title of the main image on the page), with s= and then a formula that extracts the title from the main image instead of having to hard code it? This shortcode would then be used in the theme’s image target page or in an externally generated page template for each image.
I tried working with various examples but could not get it to work.
Thanks again,
JeffHello David,
Is there a way to search the MLA forum?
Thanks for the direction. Venturing forth I have made been able to display images with the specified title. I am trying to suppress or replace the default caption displayed below the image.
[mla_gallery mla_search_fields=title s=”Early Risers” mla_caption=”{+title+}”] displays the title field.
with: [mla_gallery mla_search_fields=title s=”Early Risers” mla_caption={title}] the word title with square braces is displayed.
Is there a way to display empty text in place of the caption or only text that is written in the shortcode without the square braces displaying around it?
Also, by including link=”file”, the images open in the FooBox light box which I have enabled for all images.
I tried adding mla_rollover_text='{+date+} : {+description+}’ to see how that worked but didn’t get the syntax correct and broke the gallery display. Can you clarify how it would be integrated and how I would use plain text with it as well?
So far, so good. I see that this is a very capable plugin and look forward to gradually understanding how to use it fully.
Thanks,
Jeff