tugbucket
Forum Replies Created
-
Forum: Plugins
In reply to: [Multi-column Tag Map] Two CPTSomething is weird. I’m testing version 17.0.31 with 400+ posts over 3 post types using
[mctagmap show_posts="yes" post_type="post,post-type-1,post-type-2" from_category="sample-category"]
and it’s returning all that would be expected.
Looking at your page, it looks like the shortcode is firing multiple times. You shouldn’t be seeing “Sorry, but no tags were found” if anything is returned.Could you email me alan[at]tugbucket.net ?
Forum: Plugins
In reply to: [Multi-column Tag Map] Two CPTOkay, try 17.0.31 and let me know.
Thanks
Forum: Plugins
In reply to: [Multi-column Tag Map] Two CPTPlease update to 17.0.30 and let me know if that fixes it.
Forum: Plugins
In reply to: [Multi-column Tag Map] Multisite wish…can you send me an email, alan [at] tugbucket.net? I’ve been thinking about how to do this but I have questions about what it would entail.
- This reply was modified 1 month, 2 weeks ago by tugbucket.
Forum: Plugins
In reply to: [Multi-column Tag Map] Two CPTis your page showing all posts, including those in the custom post types?
Forum: Plugins
In reply to: [Multi-column Tag Map] Two CPTOh boy. Let me look into it.
Forum: Everything else WordPress
In reply to: create random image display[shuffleelements parent=".ngg-galleryoverview" children=".ngg-gallery-thumbnail-box" delay="30000" fade_speed="200" button_text="Shuffle images" on_load="yes"]
There’s a sample shortcode for you to add. Wherever you place it, that’s where the button will be. All the options are listed here: https://github.com/tugbucket/shuffle-elements
The shortcode above will produce a button with the text “Shuffle images”, it will shuffle the images on page load and automatically shuffle every 30 seconds. If you want a different behavior, again the options are here: https://github.com/tugbucket/shuffle-elements
Just in case: https://www.wpbeginner.com/wp-tutorials/how-to-add-a-shortcode-in-wordpress/Forum: Everything else WordPress
In reply to: create random image displaydo you want to use this on this page: https://estherramos.com/pinturas/ or https://estherramos.com/justone1/ or some other page?
Forum: Everything else WordPress
In reply to: create random image displayhttps://estherramos.com/ what page on the front end?
Forum: Everything else WordPress
In reply to: create random image displayCan you provide a link to the page you have the gallery on?
Forum: Everything else WordPress
In reply to: create random image displayWhat page is your gallery on?
Forum: Everything else WordPress
In reply to: create random image display@estherramos here’s s simple plugin: https://github.com/tugbucket/shuffle-elements
It has the option to shuffle on load, to shuffle on click, to shuffle at set intervals and any combination of the three.
You can go code -> local tab -> download zip and you can install and activate like any other plugin.
Forum: Fixing WordPress
In reply to: Zooming images on the product archive pagebefore filtering it loads this image: https://www.kordiayadak.com/wp-content/uploads/2023/06/115010015-200×200.jpg
<img loading="lazy" decoding="async" width="200" height="200" src="https://www.kordiayadak.com/wp-content/uploads/2023/06/115010015-200x200.jpg" class="attachment-woocommerce_thumbnail size-woocommerce_thumbnail" alt="" srcset="https://www.kordiayadak.com/wp-content/uploads/2023/06/115010015-200x200.jpg 200w, https://www.kordiayadak.com/wp-content/uploads/2023/06/115010015-64x64.jpg 64w, https://www.kordiayadak.com/wp-content/uploads/2023/06/115010015-150x150.jpg 150w, https://www.kordiayadak.com/wp-content/uploads/2023/06/115010015.jpg 280w" sizes="(max-width: 200px) 100vw, 200px">
after filtering it loads this image: https://www.kordiayadak.com/wp-content/uploads/2023/06/115010015-200×240.jpg
<img width="200" height="240" src="https://www.kordiayadak.com/wp-content/uploads/2023/06/115010015-200x240.jpg" class="attachment-woocommerce_thumbnail size-woocommerce_thumbnail" alt="" decoding="async">
So it’s not zooming, you are loading a different image.
Forum: Everything else WordPress
In reply to: create random image displayIf I enter javascript and css commands, can I do it only on this page, without altering the presentation of images on the other pages?
As it is right now, no. Better to make it a plugin then.
The second question: how would the random change be activated? Would it be automatic, from time to time, or could a button be inserted to activate it?
What do you want it to do?
Forum: Everything else WordPress
In reply to: create random image displayLooks like you are using NextGen Gallery.
https://wordpress.org/support/topic/how-to-achieve-random-ordering-of-images%EF%BC%9F/
There is anorder_by="rand()"
but it’s only available in the Pro version. If you have the pro version you can add that attribute to the shortcode in the HTML editor for your page for example:[ngg src="galleries" ids="1" display="basic_thumbnail" thumbnail_crop="0" display_view="caption-view.php" maximum_entity_count="500" order_by="rand()"]
If you don’t have the Pro version you can add a little code to make it happen. You’ll need a away to add custom Javscript to your site.
I used: https://wordpress.org/plugins/custom-css-and-javascript/
In the Javascript part I added:jQuery(document).ready(function( $ ){ var parent = $(".ngg-caption-view-wrapper"); var divs = parent.children(".ngg-gallery-thumbnail-box"); parent.css({"opacity":0}); while (divs.length) { parent.append(divs.splice(Math.floor(Math.random() * divs.length), 1)[0]); setTimeout(function(){ parent.animate({"opacity":1},500); }, 500); } });
And, in the CSS part I added:
.ngg-caption-view-wrapper { opacity: 0; }
The CSS part will “hide” the images until they get randomized then the Javascript will shuffle their order and fade them in.