Andy Keith
Forum Replies Created
-
Forum: Plugins
In reply to: [Better Recent Comments] Make [Read more]You’d need a developer to look at that, as you need to add some code to your theme or a custom plugin to do this. Sorry I can’ be more help
Forum: Plugins
In reply to: [Better Recent Comments] Make [Read more]Hi,
The three dots (&hellp;) is added by WordPress function get_comment_excerpt. You would need to use the ‘get_comment_excerpt filter’ to change the output to add the read more:
Forum: Plugins
In reply to: [Better Recent Comments] Code to Exclude Admin CommentsHi,
Sorry for the slow reply. The plugin doesn’t currently support that feature I’m afraid, but you could get a developer involved to customise it to meet your requirements.
Many thanks,
Andy
Hi,
Sorry for delay. No the plugin isn’t compatible with those fields, either in this plugin or the Pro version. These fields will be associated with a user account rather than a post (or post type) and our plugin doesn’t work with users.
Thanks for asking…
Forum: Plugins
In reply to: [Better Recent Comments] Code to Exclude Admin CommentsHi,
Sorry for the slow reply. For some reason we haven’t added a filter for the comment args, as the default widget does. However we will definitely add that in the next version. Once this is done, you can add this code to exclude posts by author:
function brc_comments_less_author( $args ) { global $post; $args['post_author__not_in'] = $post->post_author; return $args; } add_filter( 'better_recent_comments_comment_args', 'brc_comments_less_author' );
I’ll update this thread when this filter becomes available.
Forum: Plugins
In reply to: [Posts Table with Search & Sort] ‘tag’ columnHi,
No it’s not possible to add tag at the moment, but we’ll look at this for the next version.
You can do this in our “Pro” version of Posts Table – https://barn2.co.uk/wordpress-plugins/posts-table-pro/
Forum: Plugins
In reply to: [Posts Table with Search & Sort] Change Font ColorHi,
Your theme is doing this. You’ll need to add some CSS to your customiser (Appearance -> Customiser -> Additional CSS) or to a child theme. E.g.
table.dataTable tbody td { color: #333; }
Forum: Plugins
In reply to: [Better Recent Comments] Exclude post author commentsHi,
No the plugin doesn’t support that at the moment, but I’ll add it to the list!
Andy
Forum: Plugins
In reply to: [Better Recent Comments] Link from the comment textHi,
Sorry for the delay. You can’t currently do that, but in the next version I’ll add a filter to allow this. Should be in the next day or two. Will update this thread when available.
Andy
Forum: Plugins
In reply to: [Better Recent Comments] Change excerpts length?No problem ??
Forum: Plugins
In reply to: [Better Recent Comments] Change excerpts length?Hi,
Sorry for slow reply. Try adding this to your theme or child theme’s functions.php file:
function xyz_set_comment_excerpt_length( $length ) { return 10; } add_filter( 'comment_excerpt_length', 'xyz_set_comment_excerpt_length' );
This will change it in the default WordPress comments widget too.
Hope that helps,
AndyForum: Plugins
In reply to: [Better Recent Comments] Speed improvements?Excellent ??
Forum: Plugins
In reply to: [Better Recent Comments] Speed improvements?Hi,
Sorry for the delay getting back to you. Not sure what happened with the previous release – I think there was a glitch somewhere in SVN. Anyway, 1.0.4 is now definitely available for download/update. Let me know if any further problems….
Andy
Hi,
Yes you could do that in either Posts Table Pro or WC Product Table. You would need to initialise your external database somewhere (e.g. on the ‘init’ hook) then add your custom column to the shortcode like this:
[product_table columns=”name,price,external-quantity,add-to-cart”]
(Assuming you’re using Product Table, but you could do the same in Table Pro).
You then need to add a filter to fetch the external quanitity, e.g.
add_filter( 'wc_product_table_custom_data_external-quantity', 'wcpt_add_custom_data_external_quantity', 10, 3 ); function wcpt_add_custom_data_external_quantity( $value, $post, $product ) { $value = // fetch from external DB return $value; }
Hope that helps.
Andy
Forum: Plugins
In reply to: [Posts Table with Search & Sort] Date formatHi Andy! Yeah it would be better as a shortcode option. I’ll make sure to add that in the next version, so it’s not hard-coded.
Andy