• Resolved klewis

    (@blackawxs)


    I installed a clean version of WordPress 4.6.1. Imported 20 demo posts into it. Installed Ajax Load More. Added the following code to the sample page stocked with WordPress

    [ajax_load_more container_type="div" post_type="post, page" offset="2" pause="true" scroll="false" button_label="All Posts"]

    But it does not load an offset of 2. Everything else works fine (i.e. clicking on the red button to show more). But no offset.

    What more must I do to show the offset?

    Thanks!

    • This topic was modified 8 years, 4 months ago by klewis.
    • This topic was modified 8 years, 4 months ago by klewis.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    Hi @blackawxs,
    I just tested your shortcode (on two sites) running 4.6.1 and offset is working as expected.
    The first 2 posts are removed from the query.

    Not really sure what your issue would be other than something in the theme over riding the query.

    Thread Starter klewis

    (@blackawxs)

    Ok,
    Thanks for sharing that. Here’s some more info from my end…
    I’m on Windows 10, using the tweentysixteen stock theme. I have WordPress installed on an IIS server (still using MySQL + phpmyadmin for data handling). and still no love…

    Thread Starter klewis

    (@blackawxs)

    ahhh I understand offset now! It removes x posts from the query process. I fee like an idiot. I thought it would show the first x number of posts on window load…That is all I am trying to do, show x number of posts THEN click the red button to show more every time after that. Is there an easy set that up?

    Thanks!

    • This reply was modified 8 years, 4 months ago by klewis.
    • This reply was modified 8 years, 4 months ago by klewis.
    Plugin Author Darren Cooney

    (@dcooney)

    Oh, understandable!

    You’d need an addon for that ??
    https://connekthq.com/plugins/ajax-load-more/add-ons/preloaded/

    Thread Starter klewis

    (@blackawxs)

    Ok cool. Thanks for clearing up this whole situation. I will consider purchasing the add-on at some point. Thanks for all the help!

    Plugin Author Darren Cooney

    (@dcooney)

    No problem!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Offset does not work in WordPress 4.6.1’ is closed to new replies.