Marcus Kober
Forum Replies Created
-
Forum: Plugins
In reply to: [Multiple Featured Images] Cannot get it to workHi there,
could you please provide the code you are using to register the featured images?
Regards,
MarcusForum: Developing with WordPress
In reply to: Gutenberg Custom Block: supports colorHi @mlchaves,
thanks for your response.
What bugs me is the fact that when I set anchor to true in supports, my custom block gets the anchor control automatically. So why doesn’t that apply to color support?
Because color in supports defaults to null. So I thought if I declare color support, Gutenberg will show the color controls automatically too.
Maybe I was wrong here, but I like to know why it behaves like that…
Regards,
MarcusForum: Plugins
In reply to: [Multiple Featured Images] jQuery.fn.load() is deprecatedHi Muhammad,
please provide the following details so that I may help you:
- Version of WordPress (get it from dashboard)
- Version of Multiple Featured Images (get it from the plugin list)
- List of installed plugins
On my test installations I haven’t seen this error yet. Because of that I need the details in question.
Regards,
MarcusForum: Plugins
In reply to: [Multiple Featured Images] Divi Lay-out can’t handle the extra fieldHi there,
please provide the following informations to help me to get this figured out.
– How do you register the featured image? Please share your code.
– How are you trying to embed the featured image in Divi? Please provide a screenshot.
– Where in the frontend should the featured image show up? Please provide a screenshot in which you mark the relevant area.Thanks for your help!
Regards,
MarcusForum: Plugins
In reply to: [Multiple Featured Images] Add class to each imageHi there,
sure, there are several ways to add classes to your featured images.
1) Use wp_get_attached_image
You could get the id of your featured image for using it in the WordPress function wp_get_attached_image.
$myId = kdmfi_get_featured_image_id( 'featured-image-2' ); echo wp_get_attached_image($myId, 'full', false, ['class' => 'my-class']);2) Shortcode
You could use the shortcode.
Shortcode usage:
[kdmfi_featured_image id=”featured-image-2″ size=”full” class=”your-class”]
Possible attributes for the shortcode:
id: the id of the featured image, e.g. featured-image-2, requried
size: the desired size, defaults to “full”
post_id: the ID of the post to which the featured image is assigned, defaults to the current ID
class: the classes for the image tag, defaults to “kdmfi-featured-image”
alt: the alt attribute for the image tag, defaults to the title of the used image
title: the title attribute for the image tag, empty by defaultRegards,
MarcusForum: Reviews
In reply to: [Multiple Featured Images] A must-haveHi Nate,
thank you for your kind review!
Regards,
MarcusForum: Plugins
In reply to: [Multiple Featured Images] Please update your great pluginHi @mtnporcupine,
you’re welcome.
You mind leaving a review? 🙂
https://ww.wp.xz.cn/support/plugin/multiple-featured-images/reviews/
Forum: Plugins
In reply to: [Multiple Featured Images] Please update your great pluginHi @mtnporcupine,
I’ve tested the plugin with WP 5.5 and had no problemes attaching images to a post.
Could you provide the error message, that would be helpful.
Thanks!
MarcusForum: Plugins
In reply to: [Multiple Featured Images] Please update your great pluginHi @monstress,
I’m currently testing it, expect the new tested version today. Sorry for 5 months of waiting…
Regards,
MarcusSame here!
Forum: Fixing WordPress
In reply to: Appearence correct when logged in, wrong when logged outJust tested with a random parameter added to the url:
https://mediarunners.nl/werkwijze/?test=239487234
This way the cache is bypassed and the page looks good. So I guess you just have to clear the cache…
Forum: Fixing WordPress
In reply to: Appearence correct when logged in, wrong when logged outHi there,
in the page source code there’s a html comment saying “Cached with Swift Performance Lite”.
When you are logged in the site isn’t cached, but when you are not logged in you see the cached version of the page.
So you either have to clear the cache because you changed something or there’s a problem with the cache plugin. I don’t know this cache plugin, but to me it looks like there’s going something wrong with CSS caching/minifying.
Is there an option in the cache plugin to disable CSS minifying?
If cache clearing doesn’t help, please try to deactivate the cache plugin.
Regards and greets to the Netherlands from Germany. 🙂
MarcusForum: Plugins
In reply to: [Multiple Featured Images] setting a default image?Hi there,
thank you. 🙂
At the moment there’s no way to define a default image. But you can help yourself with the function kdmfi_has_featured_image( $image_id, $post_id );. Use this in an if clause and if there’s no featured image attached then output your default image.
Regards,
MarcusForum: Plugins
In reply to: [Multiple Featured Images] Gutenberg compatibility?This code isn’t in the plugin because it depends on the user which custom featured images he wants to install. How should it be named? In which post type should it show up?
In this way the user is completely free to add any featured images he/she wants.
In a feature version of my plugin there will be an option page to install featured images completely without code…
Forum: Plugins
In reply to: [Multiple Featured Images] Add a custom class to featured image 2Hi there,
my plugin doesn’t support this at the moment.
But you are able to do a little workaround.
Use the following code:
function add_my_featured_image() { if(is_singular('negozi-millennium')){ $featuredImageId = kdmfi_get_featured_image_id('featured-image-2'); echo wp_get_attachment_image($featuredImageId, 'full', false, ['class' => 'your-class-goes-here']); } } add_action( 'x_after_view_global__slider-below', 'add_my_featured_image', 10 );Regards,
Marcus