Andy Keith
Forum Replies Created
-
Forum: Plugins
In reply to: [Better Recent Comments] Make “…Read more”Sorry, you’ll need a developer on this. It’s a free plugin, so not something I can help with.
Forum: Plugins
In reply to: [Posts Table with Search & Sort] Date formatNo, there isn’t a way to change it at the moment, but we’ll definitely add this in the next version.
In the meantime, you can alter the date format on line 304 of posts-data-table.php. E.g.
'{date}' => get_the_date( 'm/d/Y', $_post ),
Andy
Forum: Plugins
In reply to: [Better Recent Comments] Make “…Read more”Hi,
You would need to customise the plugin to achieve this. Relevant code is in Better_Recent_Comments_Util::get_recent_comments() function.
Andy
Forum: Plugins
In reply to: [Posts Table with Search & Sort] Ading rating new columnHi,
You won’t be able to do this in the free plugin. If you use our Posts Table Pro plugin, you could add a custom column using the
posts_table_custom_data
filter. Posts Table Pro also has native support for custom post types.Hope that helps..
Forum: Plugins
In reply to: [Better Recent Comments] How does one specify comment ID or product ID?Sorry I can’t provide any more free support for this. I would recommend Codeable:
Forum: Plugins
In reply to: [Better Recent Comments] How does one specify comment ID or product ID?Just use the shortcode as normal – the shortcode uses the code that you’ve modified so that should work.
Forum: Plugins
In reply to: [Better Recent Comments] How does one specify comment ID or product ID?There’s no shortcode option to set this. You’d need to add the code manually.
Modify the comment args in Better_Recent_Comments_Util:
Change the get_comments args on line 78 to this:
$comments = get_comments( array( 'number' => $number, 'status' => 'approve', 'type' => apply_filters( 'better_recent_comments_comment_type', 'comment' ), 'post__in' => 23 // set your product ID here ) );
And to select specfic comments only:
$comments = get_comments( array( 'number' => $number, 'status' => 'approve', 'type' => apply_filters( 'better_recent_comments_comment_type', 'comment' ), 'comment__in' => array( 45, 56) // set your comment IDs here ) );
- This reply was modified 8 years, 1 month ago by Andy Keith.
Forum: Plugins
In reply to: [Better Recent Comments] How does one specify comment ID or product ID?Hi,
Sorry for the slow reply.
To display specific comments only, you would need to set “comment__in” on the array passed to get_comments(). This is in Better_Recent_Comments_Util, line 78. E.g. ‘comment__in’ => array( 24, 35 ).
To display comments from one product (i.e. post) then set the “post__in” parameter.
Andy
Forum: Plugins
In reply to: [Posts Table with Search & Sort] Custom SortHi,
Sorry for the delay getting back to you. It depends how your plugin works, if it’s sorting by menu_order then you won’t be able to achieve that with our plugin. If it’s applying some filter to the posts, then it should work.
However we do offer a Pro version of the plugin which does allow sorting by menu_order:
https://barn2.co.uk/wordpress-products/posts-table-pro/
Thanks,
AndyHi,
Sorry you’re having trouble. No one else has reported this so must be something specific to your server. Do you have an error log I can take a look at?
Thanks,
AndyForum: Plugins
In reply to: [Better Recent Comments] how does it handle CACHED pagesHmm, sorry, I don’t know how to replicate this behaviour with standard WordPress comments (short of building something similar to Disqus). At the moment, I think it falls outside the scope of the plugin.
Sorry I can’t be more help…
Forum: Plugins
In reply to: [Better Recent Comments] how does it handle CACHED pagesHi Doug,
If you’re using a caching plugin which caches whole pages (e.g. Page Cache in W3 Total Cache) then the whole page – including any comments returned by Better Recent Comments – will be retrieved from the cache, so they may not be the latest comments.
For other types of caching (e.g. object caching) then the comments may be returned from the cache if it hasn’t been flushed, so they could again be out of date. However most caching plugins will flush the cache when changes occur (e.g. new posts or new comments added).
Basically, our plugin is similar to the in-built “Recent Comments” widget provided by WordPress so whether or not the comments are cached will be the same in our plugin as it is for the standard WordPress widget.
Hope that helps…
Andy
Forum: Plugins
In reply to: [Better Recent Comments] Padding under avatar?If you go to https://barn2.co.uk and then the contact page you can send me a message from there.
Andy
Forum: Plugins
In reply to: [Better Recent Comments] Padding under avatar?Hi, do you have a link to the page so I can check?
Forum: Plugins
In reply to: [Better Recent Comments] Rank comment problemHi,
I’ve tested it and it works fine for me. See screenshot comparing Better Recent Comments with the WordPress recent comments widget:
https://www.awesomescreenshot.com/image/1982567/121091845f87918f978669075e338780
Can you tell me how to reproduce the error?