• Resolved davidki

    (@davidki)


    Hello I tested load more posts feature and I found this behavior. I use shortcode [ccc_my_favorite_list_results posts_per_page=”3″]
    I have 7 favorited posts in LocalStorage.

    But on favorited lists page I see 3 posts (this is correct).
    In header in class “.ccc-favorite-post-count” in post count I see also 3 (should be 7)

    And load more button is hidden. User can not use this button.

    Correct logic (according how it is working on all ecommerce shop’s categories) should be this:

    I have 7 favorited posts. So posts count should display always 7 even after click on load more button.

    Posts count number change only when some post is deleted from favorited posts.

    And Load more button should be visible as long as there are other favorited posts left which are not visible yet.

    Please, can you edit this current weird behavior?

    Thank you, very much.

    David

    • This topic was modified 3 years, 1 month ago by davidki.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Takashi Matsuyama

    (@takashimatsuyama)

    Hello @davidki

    Unfortunately, I was not able to reproduce the same problem.
    It worked correctly in my tests.

    I may not be able to identify why it is hiding with the partial check on this topic.

    Is it a compatibility with other plugins?
    Or it may be a compatibility issue with your theme.

    For example, you may want to try the following steps in a test environment.

    1. Try with a standard theme.
    2. Stop other plugins.

    Thanks

    Plugin Author Takashi Matsuyama

    (@takashimatsuyama)

    Hello @davidki

    I noticed it again.
    Maybe the reason is that you don’t have the following shortcode in your favorites list page or header.php.

    It’s a shortcode : [ccc_my_favorite_list_menu slug="your_slug"].
    If you’re not using this, putting this somewhere might help.

    We need to get the post count, so we need “.ccc-favorite-post-count” for that.

    Its HTML class should be generated by this shortcode.

    Please see the related topic

    Thanks

    Thread Starter davidki

    (@davidki)

    Thank you for your reply,

    for me need it was necessary to work with “$the_query->found_posts” insted of “$the_query->post_count”.

    So I had to adjust code of plugin on several places.

    Thank you, Takashi.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Load more button doesn’t work well’ is closed to new replies.