• I’m not sure what the best way to have things setup when you want ALM to load all your blog posts. I set the settings > reading > ‘blog pages to show at most’ to 1 post and then I have ALM load the next 5 with the offset being 1 and preload them. I can’t set blog posts to 0 otherwise I would.

    Now however when I go to a specific page with the SEO add-on, like 10 in this example, the first post disappears once everything loads and then the first post of page 10 goes all the way to the top of page 1.

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    Hi @keywerd,
    You might have an issue in your Repeater Template causing the paging to get out of sync.

    Also, is there a reason you just dont have ALM load all your posts instead of doing to offset?

    Thread Starter keywerd

    (@keywerd)

    I’m not sure how I can have ALM load all of them, as wordpress doesn’t allow an entry of 0 blog pages to show at most in that setting. I would be happy to have it load them all with the preload and no offset. It might fix this issue as I’m not sure there’s anything wrong with my repeater template.

    • This reply was modified 5 years, 7 months ago by keywerd.
    Plugin Author Darren Cooney

    (@dcooney)

    Not sure why you would be setting it to zero. I’m missing something in what you’re trying to do.

    Thread Starter keywerd

    (@keywerd)

    I thought your recommendation was to have wordpress to load 0 posts and have ALM load all of the first page, lets say 6 posts for example preloaded.

    I was able to manually set the wp_options (table) posts_per_page = 0 in the database, but it still appears to load the first post and with no offset, i get a duplicate first post.

    What were you recommending when you said “Also, is there a reason you just dont have ALM load all your posts instead of doing to offset?”.

    Perhaps I am not understanding what the offset is used for…

    Plugin Author Darren Cooney

    (@dcooney)

    I thought your recommendation was to have wordpress to load 0 posts and have ALM load all of the first page, lets say 6 posts for example preloaded.

    I should have been more instructive sorry about that.
    I meant to completely remove the existing loop and just use ALM because you are using Preloaded addon. This might mean editing a page template.

    Does that make sense?

    Thread Starter keywerd

    (@keywerd)

    Do you have an example or a guide for that? It seems a bit more complicated to make it work than just installing/configuring the ALM plugin…

    Plugin Author Darren Cooney

    (@dcooney)

    Sorry, Im not sure what you are trying to do I guess.
    Do you think the issue you are loading posts outside of Ajax Load More? I’m just asking because its difficult for me to tell when I look at the content as I dont know it.

    Thread Starter keywerd

    (@keywerd)

    I’m just trying different things to make the plugin work as desired, which I think is just a fairly basic implementation.

    I had wordpress loading the first post and then ALM loading the next 5 because that’s the minimum I could have wordpress load. It seemed to work fine but then had that issue where I go to a specific page and the first post disappears and is found all the way on the first page. I thought it might be related to the fact that i have wordpress load the one post and ALM load all the rest.

    You then suggested having ALM load all of them and wordpress loading none, but that seems like a complicated way to address the problem when I would otherwise expect the plugin to work. You also suggested a problem with the repeater template, but it seems to work fine for all but this one scenario where the first post disappears.

    I may go back to having wordpress load 5 and then ALM load five and see if i still have the specific page issue – i’m running out of ideas.

    Plugin Author Darren Cooney

    (@dcooney)

    Yea, I think we have some misunderstanding as to what you’re trying to do.

    Let me say this… If you are using the Preloaded add-on with SEO add-on you need to allow Ajax Load More to load all of your posts or the post count may end up out of sync.

    What I suggest is you edit your home/index/front-page template and remove the loop that is present and just leave Ajax Load More.
    https://klotzs.com/wtfff/

    Does that make sense?

    Thread Starter keywerd

    (@keywerd)

    Yes, that makes sense.

    I’ve gone ahead and done that but I still seem to have an issue. It seems the count/paging is still off when I go to a specific page vs. when i just scroll through pages. If i go to page/6 then the counting is like in half, because if i were to scroll that post shows up on page 3 and not 6. I have it set to pre-load 6 posts and the 18th post is showing up on page 3 if I scroll and page 6 if I manually type in page/6.

    Reference this post for the issue: In 14th century England, they baptized children with cider because it was cleaner than the water.

    I’ve tried clearing cache and not clearing cache, doesn’t seem to matter…

    Plugin Author Darren Cooney

    (@dcooney)

    Would you like to continue this on my official support channel?
    https://connekthq.com/support/

    Might be easiest if I had access to the site to help you.

    Let me know.

    Thread Starter keywerd

    (@keywerd)

    Done.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Blog entry stuck to the top when going directly to a page’ is closed to new replies.