Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • I have the same problem – only the 10 first posts are displayed.
    I have organized my posts by year and would like to show ALL posts for one specific year
    – preferably without pagination. How do I achieve that?

    Sample
    [display-posts date_query_after="2020-12-31" date_query_before="2022-01-01" title="Posts 2021" include_date="true" date_format="j. M. Y" include_title="true" include_author="true" image_size="thumbnail" category_display="true" include_excerpt="true" excerpt_length="100" excerpt_more_link="true" ignore_sticky_posts="true" order="DESC"]

    Thread Starter pheisholt

    (@pheisholt)

    Hi @navipane and @andykeith

    Sorry for the delayed response.

    Thanks Pierre for following up on this issue. I don’t have the skills to debug this issue either. And you may be absolutely right – the root cause of this may not be a bug in the NextGEN plugin. Although there are issues with the NextGEN image comments that undoubtedly have to do with the NextGEN code.

    I will try the updated version of BRC and report back to you. I’m running WordPress 5.5.3 and PHP 7.4.11. But give me some time – I’m in the midst of a major project which at the moment is consuming all my time.

    -paul-

    Thread Starter pheisholt

    (@pheisholt)

    Hi, @navipane

    No, the problem is not resolved.

    My conclusion is that the problem is caused by a bug in the NextGEN Gallery plugin. I have reported it multiple times. So far Imagely/NextGEN has done absolutely nothing about it, and I’m not very optimistic.

    The way Imagely/NextGen has implemented their comments quite simply breaks the system. They have not disputed that it actually is a bug. But that does not seem to bother them.

    I have not found a work-around – other than to regularly adjust the number of comments shown in the BRC widget.

    -paul-

    Thread Starter pheisholt

    (@pheisholt)

    Excellent, thanks!
    Will look into that.

    -paul-

    Thread Starter pheisholt

    (@pheisholt)

    Hi

    Thanks – that brings us one step closer.

    This SQL picks out the 5 most recent comments based on comment_date_gmt. And in my case it lists 5 comment IDs – two of which are NextGEN image comments.

    As you probably already have guessed, I don’t know the inner workings of WordPress, but this SQL only seems to fetch the comment IDs. So I’m assuming that these IDs are passed on to another function in order to actually display the comments in the widget.

    Do you know which function that is, and if so which SQL query it triggers? My guess is that that SQL query may explain why the NextGEN comments are ignored – although they are present in the ID list from the get_comments() function.

    -paul-

    Thread Starter pheisholt

    (@pheisholt)

    Hi

    I will do that. I’ve already been in touch with them several times about this, but I haven’t had them explain how they store their comments. So I will give it a try.

    However, it would be helpful if you could provide the SQL query which is triggered by the BRC widget. I assume that it joins several tables, since the wp_commnents table alone does not differentiate between regular comments and the NextGEN comments.

    -paul-

    Thread Starter pheisholt

    (@pheisholt)

    Hi

    Thanks for the response.

    Unfortunately, the comment_type doesn’t seem to be the problem here. The comment_type field is blank for absolutely all comments, including the NextGEN comments.

    I can send you credentials to a test site, if you’re interested in taking a look at it yourself.

    -paul-

    Thread Starter pheisholt

    (@pheisholt)

    Excellent, thanks!

    Thread Starter pheisholt

    (@pheisholt)

    Hi

    NextGEN Gallery’s lightbox includes an option to enable comments. It’s a regular comment field with a submit button. You can see an example here: NextGEN Gallery Lightbox with comment field

    The comments are stored in the wp-comments database table alongside all other comments (post, page etc.). And that’s obviously where the problem begins.

    In the wp_comments table there doesn’t seem to be anything to distinguish between comments from different post types or from different taxonomies. But by joining the wp-comments and the wp-posts tables, one can determine which is which.

    This SQL statement will separate the NGG comments (post_type=photocrati-comments) from other comments (post_type=post | page |...)

    SELECT DISTINCT ID, post_title, post_password, comment_ID, comment_post_ID
    , comment_author, comment_date_gmt, comment_approved, comment_type
    , comment_author_url, post_type, SUBSTRING(comment_content,1,30) AS com_excerpt 
    FROM wp_comments 
    LEFT OUTER JOIN wp_posts ON (wp_comments.comment_post_ID = wp_posts.ID) 
    WHERE comment_approved = "1" AND comment_type = "" AND post_password = "" 
    ORDER BY comment_date_gmt DESC LIMIT 10;

    Hope this may be of some help.

    I can send you screen shots, if you provide an email address or some other way to convey them to you.

    Thread Starter pheisholt

    (@pheisholt)

    I’d like to reopen this case, since it turns out to more serious than I initially thought.

    One thing is not being able to show media comments using Better Recent Comments (BRC). What I now have discovered is that media comments (in this case NextGEN Gallery image comments) are taken into account when BRC determines the x number of newest comments.

    So if I set BRC up to show the 5 latest comments, and the 5 most recent comments in the wp_comments database table are media comments (=NGG image comments), the BRC widget won’t display any comments at all. If the 4 most recent comments are media comments, BRC will display 1 comment only etc.

    So it would be nice if BRC at least would limit its scope to the taxonomies it’s able to display, when determining the most recent comments.

    Thread Starter pheisholt

    (@pheisholt)

    Thanks for the response.

    I’ve been in touch with Imagely and suggested that they consider creating a separate widget that will display the NGG image comments.

    However, I still don’t understand the difference between these two types of comments – especially since they appear jointly in WP Control Panel | Comments. So it appears that WP is able to identify the NGG comments and list them alongside regular post comments.

    Thread Starter pheisholt

    (@pheisholt)

    Yes, I did. I discovered that I could use a tag. It works like a synonym.

    After I registered the term ‘Brown, Joe’, I added a tag ‘Joe Brown’.

    The result is that the name is listed under B in the glossary, and at the same time all instances of both ‘Joe Brown’ and ‘Brown, Joe’ are linked to the term ‘Brown, Joe’.

Viewing 12 replies - 1 through 12 (of 12 total)