doclalor
Forum Replies Created
-
Forum: Plugins
In reply to: [Extend Media Upload] Plugin doesn’t work since WordPress 5.4.2I discovered the same. So just following here . . .
Forum: Plugins
In reply to: [RDP Wiki Embed] Show section?Sure!
These are just examples:
- From the page for the Lingzhi_mushroom, I’d like to embed the infobox below the #biota infobox.
- From the page for Amanita flavorubens, I’d like to embed the infobox below the #biota infobox.
These sections aren’t #-anchored, but maybe it’s possible.
I appreciate your checking into this!
- This reply was modified 5 years, 6 months ago by doclalor.
Okay, thanks much. And double-thanks for the search feature on your Google Photos API interface!
Forum: Plugins
In reply to: [Auto Upload Images] Doesn’t work on linked images?Same. Interested, too, chiming in for notification if there’s relevant follow-up (like if there’s an easy-fix plugin conflict or something).
Thank you for the reply!
I am not inserting images one-by-one. I am trying to write code in the template to automatically display whatever images are attached to posts. (Is that wrong-headed?)
So while I’m generating that code in my template, I have:
$images_html = "[mla_gallery main_size='full' tile_size='full' link='post' style='random' layout='masonry']";
And I tried adding a parameter to wrap the caption in <p>-tags, like maybe:
‘caption='<p>{+caption+}, {+description+}</p>’;
↑ Obviously THAT didn’t work. But will something else?
Does that make sense of what I’m attempting?
I like your idea of working with the Masonry layout across the site, for uniformity of experience. Here’s my shortcode:
[mla_gallery main_size='full' tile_size='full' link='post' style='random' layout='masonry' mla_caption='<p>{+title+}, {+caption+}, {+description+}</p>']
But that raises an issue, too, as it makes it hard to style captions. Is there a way to specify tags in which captions can be enclosed? As it is, here is the HTML it generates:
<div class="photonic-photo-title photonic-title"> <a class="photonic-launch-gallery launch-gallery-imagelightbox imagelightbox" rel="lightbox-photonic-wp-stream-1" href="https://mycomeditations.net/tii-content/uploads/sites/2/2019/08/Hyphal-Tip.jpg.jpg" title="" data-title="<a href='https://mycomeditations.net/pulsed-growth-of-fungal-hyphal-tips/hyphal-tip-jpg/' > "Hyphal tip," by <a href="https://www.flickr.com/people/47353092@N00">AJC1</a>.</a>" data-photonic-media-type="image" data-photonic-deep="gallery[photonic-wp-stream-1]/3251/">"Hyphal tip," by </a><a href="https://www.flickr.com/people/47353092@N00" title="">AJC1</a>. </div>
It would be great to be able to wrap the caption itself in <p>-tags (and specify a class). Also, because there’s already an -tag in the caption (e.g., on this page), there’s an embedded within the scope of an , breaking the line, too.
Thanks for your help ironing out my gallery issue!
I have this, which works! But is perhaps inelegant:
$image_caption = get_post(get_post_thumbnail_id())->post_excerpt; $img_src = wp_get_attachment_image_url(get_post_thumbnail_id(),'full'); $img_link = get_attachment_link( get_post_thumbnail_id() ); $output_html = '<div class="blah"><a href="'. $img_link .'"><img src="'.$img_src.'" /></a><p>' . $image_caption . '</p></div>';
I appreciate any suggested improvements.
Thank you! You are right.
I’m sorry to bother you with the follow-up, as it’s beyond the scope of your plugin. But in case you’re willing to help further, I’m looking, then, for an existing WordPress function that will output (1) the image (2) with a link (3) to the attachment page AND (4) the caption. I’ve pieced together some of that (see below), but there must be a better way.
Here are the functions what I’ve tinkered with (I must not be hitting the right one):
wp_get_attachment_image( ); get_post(get_post_thumbnail_id())->post_excerpt; wp_get_attachment_image( 'thumbnail' ); wp_get_attachment_url('get_the_ID()'); get_attachment_link($attachment->ID); get_attachment_link( get_post_thumbnail_id() ); the_post_thumbnail() $img_link = get_attachment_link( get_post_thumbnail_id() );
and much, much more . . . and nonsense like:
<a href="'. get_attachment_link( get_post_thumbnail_id() ) . '">' . get_the_post_thumbnail(get_the_ID(),'full') . '</a><br /><p>' . get_post(get_post_thumbnail_id())->post_excerpt . '</p>
Thank you for any help identifying an existing WordPress function (or appropriate combination of functions) that will output (1) the image (2) with a link (3) to the attachment page AND will also output (4) the caption!
I didn’t get stuck either.
But – ouch! – what I didn’t know was that to get the click-through, I had to click AT THE BOTTOM of the lightbox!
Sorry about that, and thank YOU for helping!
The top layout.
The style of the lightbox I see when clicking one of the images changes every time I select a different “Inbuilt Lightbox librar[y]” to use on https://{mysite}/wp-admin/admin.php?page=photonic-options-manager
Thanks for taking a look!
I’ve tried many Lightboxes, but right now I’m using “Image Lightbox.” Here’s a sample page:
https://{my-site}/flammulina-velutipes/
(Because the site is under development, I’ll re-password protect it after hearing from you.)
- This reply was modified 5 years, 7 months ago by doclalor.
Thanks, that makes sense. I’ve also tried links in lightboxes without success. Might I be missing a parameter? I can only get my lightbox clicks just advance to the next gallery image.
I have
main_size='full'
so right-click and “Open in new tab” provides access to the image. But I am hoping a click will do it.Thanks for any further guidance you might be able to offer. If none, thanks for a cool plugin!
Forum: Plugins
In reply to: [WP Wiki Tooltip] Automate tooltips via functions.php?Once I removed my redundant matches (duh: ‘mycorrhiza’ matches inside ‘mycorrhizae’,’mycorrhizas’, not to mention with ‘mycorrhiza’ itself!) and added your call, it works!
Thanks for your help!
Forum: Plugins
In reply to: [WP Wiki Tooltip] Wiktionary tooltip emptyYes,
[wiki base="NARY" title="myco-" section="English"]'múkēs'[/wiki]
does the trick!Many thanks.
- This reply was modified 5 years, 7 months ago by doclalor.
Forum: Plugins
In reply to: [Breadcrumb NavXT] How to display ALL categories in hierarchyThat made the difference, John! Once I unchecked all but the deepest subcategory, everything worked as imagined. Thank you.
It’s a little ironic because I was using a plugin to auto-check parent categories during category assignment. I though, “How helpful . . .” Actually, in this case, not!
- This reply was modified 5 years, 7 months ago by doclalor.