Andy Keith
Forum Replies Created
-
Hi @seanvdmn, I’m not sure what you mean. Posts Table with Search & Sort is a free plugin? There is no payment involved? ??
If you are referring to our Pro plugin (which is not available here), then the plugin will continue working even after the license has expired.
Sorry for the delay. I can confirm that the bug is now fixed in the latest version of TEC.
Hi @d0153, I’m just waiting to hear back from our development team. Will let you know.
Forum: Plugins
In reply to: [Better Recent Comments] Version RevisionHi Rick, thanks for letting me know. You’re right that a new version shouldn’t have been tagged just to signal compatibility with the latest WP version. I’ll pass that onto the development team.
Great, thanks!
Thanks @abzlevelup.
Hi Abz,
Thanks for your reply. Here’s the code where we build the query and fetch the posts:
$query_args = [ 'post_type' => 'tribe_events', 'post_status' => 'publish', 'tax_query' => [ [ 'taxonomy' => 'tribe_events_cat' 'terms' => [ 'conferences', 'meetups', 'expos' ] 'operator' => 'IN' 'field' => 'slug' ] ], 'meta_query' => [], 'order' => 'DESC', 'orderby' => 'date', 'no_found_rows' => true, 'suppress_filters' => false, 'posts_per_page' => 10 'offset'. => 0 ]; $query = new WP_Query( $query_args ); $posts = ! empty( $query->posts ) ? $query->posts : []; // display $posts as a list...
I’d also like to confirm something regarding the second checker on your example here
Sure, what did you want to confirm?
Forum: Plugins
In reply to: [Better Recent Comments] Filter recent comments by post categoryHi,
No, as I mentioned earlier there isn’t an option in the plugin to retrieve comments for posts in a given category. WordPress doesn’t offer a way to do this (not a direct way anyway), so to achieve that you would need some custom development.
The code snippet I sent above can be used to display comments from selected posts, and you can display comments on any page using the
[better_recent_comments]
shortcode (see the plugin description for more info on this).Forum: Plugins
In reply to: [Better Recent Comments] Filter recent comments by post categoryYeah no problem. I’ve just added a page to our Knowledge Base to show how to do this: https://barn2.com/kb/displaying-comments-for-specific-posts/
Forum: Plugins
In reply to: [Better Recent Comments] Filter recent comments by post categoryHi ostii,
Thanks for your message. No, unfortunately you can’t restrict the comments by category. WordPress has a really poor mechanism for fetching comments, which we’re kind of stuck with in the plugin. You can restrict the comments to individual posts using a code snippet (let me know if you’re interested) but not by category.
Andy
Forum: Plugins
In reply to: [Better Recent Comments] Some comments appears without link in widgetHi Jonatan,
It looks like each comment in the Better Recent Comments widget is being wrapped with an additional
<a>
link, which isn’t something plugin adds at this point. For example, the first comment looks like this:<div class="comment-wrap"> <a href="https://.../#comment-298075"> <!-- this link is the problem! --> <span class="comment-author-link">Marek_</span>: “ <span class="comment-excerpt" style="word-break: break-word;">To je v po?ádku, ka?dy má jiné preference. Ale myslím, ?e i aerodynamicky ?isté auto m??e byt hezké, nap? EQS,…</span>” <span class="comment-date"><a href="https://...#comment-298075">Zá? 1, 14:52</a></span> </a> </div>
So because you have a link within a link – the ‘comment-date’ link inside the outer one, that causes the error you’re seeing, as it’s not valid HTML.
Could you try disabling the other plugins on your site, or checking for any code which is interacting with Better Recent Comments?
Forum: Plugins
In reply to: [Better Recent Comments] Plugin Makes Duplicate QueriesHi Rick,
Thanks for your patience. I’ve investigated this in more detail and I’m unable to reproduce the duplicate queries issue you mention. When using the Better Recent Comments widget, the plugin will fetch the most recent comments (default is the 5 most recent) and display them in the sidebar.
For the comments on a single post, these are fetched separately by the theme and the comments listed will be only those that are for the current post. So these will most likely differ from the recent comments in the sidebar which includes comments from all posts.
I’ve also run the Query Monitor plugin and it doesn’t show any duplicate queries coming from the plugin. If you can provide more information on the duplicates you’re seeing, let me know.
Forum: Plugins
In reply to: [Better Recent Comments] Plugin Makes Duplicate QueriesHi Rick, please ignore the above reply. My colleague thought that this issue referred to one of our paid plugins, for which support is handled via our support center. For this plugin, support queries are dealt with here on wordpress.prg. sorry for the confusion.
I’m currently investigating the issue in more detail and will get back to you soon.
Kind regards,
Andy
Forum: Plugins
In reply to: [Better Recent Comments] date format issueNo problem ??
Forum: Plugins
In reply to: [Better Recent Comments] date format issueHi there,
I think there’s some hidden characters in the ‘date_format’ option in the shortcode. When I copied your shortcode into my test site, I get the same problem as you. But if I deleted the date_format option altogther, then type it again, it works!
Try copy this into your page or widget:
[better_recent_comments number="50" date_format="D, M d, Y g:ia" format="{avatar} {author} on {post}: {comment} {date}" avatar_size="75"]
Let me know if that doesn’t fix it.
Andy
- This reply was modified 3 years ago by Andy Keith. Reason: Add code tags