Hi Mouste,
The widget and number of words, I assume you only set it once. You could change the number in the code:
https://plugins.trac.ww.wp.xz.cn/browser/gwolle-gb/trunk/frontend/gb-widget.php#L379
You could also use the inspector in your browser and change the value of the option in the select dropdown, then save it.
Annoying that the link is not shown.
Last year the code was fixed for that, but it might not always work apparently.
What happens is that upon saving the page with shortcode, there is also a meta field saved. Then the dropdown gets filled based on a WP_Query for that meta field.
Could it be you are using a very old version of WordPress? The piece of code is using the function has_shortcode().
What happens if you save that page again?
Thank you
It works for the number of characters.
I have the latest version of wordpress and it doesn’t work for the link.
Is it possible to change a variable to decrease the reading speed in the message appearance widget?
thanks again
For showing which meta fields are set for the guestbook post, could you change this line in functions/gb-post-meta.php ?
https://plugins.trac.ww.wp.xz.cn/browser/gwolle-gb/trunk/functions/gb-post-meta.php#L104
From:
add_filter( 'is_protected_meta', 'gwolle_gb_is_protected_meta', 10, 3 );
To:
add_filter( 'is_protected_meta_', 'gwolle_gb_is_protected_meta', 10, 3 );
Nothing bad should happen, just that you go to edit the post which has the shortcode, you should be able to see the meta fields.
Can you tell me which shortcode you have in that post, and which meta fields are shown in the metabox for meta fields?
I am interested in meta fields gwolle_gb_read and gwolle_gb_book_id.
By the way, the next days I will be a bit slower in responding. I hope you can take that and not get impatient 🙂
I don’t like bugs in this part of the code, since they are hard to debug.
Oh, forgot about your other question 🙂
I assume you use the slider in the widget?
It is really a super simple slider with no real settings. You can see that here:
https://plugins.trac.ww.wp.xz.cn/browser/gwolle-gb/trunk/frontend/js/sss/sss.js
I have no plans to offer more customizations for it, sorry.
What you could do is copy this file into your own plugin or theme. Dequeue the one from the plugin, and enqueue your own one.
Reference:
https://developer.ww.wp.xz.cn/reference/functions/wp_dequeue_script/
https://developer.ww.wp.xz.cn/reference/functions/wp_enqueue_script/
It needs some custom code. Not tested, but it might work.
You could also change the file in the plugin, but every update it will be overwritten.
Or maybe better…
Look here:
https://plugins.trac.ww.wp.xz.cn/browser/gwolle-gb/trunk/frontend/js/sss/sss.js#L127
You could copy this block of code and change it. Then in JavaScript, remove the linked event from .gwolle-gb-widget-slider and add your own with different options.