• I am using this shortcode:
    [ajax_load_more cache=”true” cache_id=”9493725251″ cta=”true” cta_position=”after:2 cta_repeater=”template_1″ preloaded=”true” seo=”true” repeater=”template_2″ post_type=”post” category=”art,consciousness-2,controversy,diy,environment,featured,health,neuroscience,popular,quiz,relationship-tips,scienceandtech,self-development,society” posts_per_page=”3″ max_pages=”10″ transition=”fade” transition_speed=”500″]
    And ALM loads 5 posts per page. I want to make it load an ad every 3 posts.
    Thank you

    • This topic was modified 8 years, 1 month ago by mraychev.
Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    Hi @mraychev,
    I think the error is in the ahortcode after cta_position. You need the closing “.
    cta_position=”after:2”
    This is a bug that will be fixed in the next release of the Ajax load more.

    Can you fix that and let me know?

    Cheers,

    Thread Starter mraychev

    (@mraychev)

    Ahh Thank you very much now the positioning is working…
    But why there are 5 posts per page when I have posts_per_page=”3″

    Plugin Author Darren Cooney

    (@dcooney)

    Likely because of your global site settings.
    Check out the Post Per Page section here.
    https://connekthq.com/plugins/ajax-load-more/add-ons/search-engine-optimization/

    Thread Starter mraychev

    (@mraychev)

    Thank you very much for the help.
    I have one more question when a post loads I now from the console that without scrolling down the first 2 pages from ajax load more are loaded. https://iheartintelligence.com/2016/10/13/say-kids/
    Sorry for the stupid questions (I am a beginner but I love the opportunities that ALM gives)

    Plugin Author Darren Cooney

    (@dcooney)

    You’re welcome!

    Add pause="true" pause_override="true" to your shortcode.

    This will hold loading on page load, then trigger loading as users scroll.

    Thread Starter mraychev

    (@mraychev)

    Thank you. This helps but now loads the first page of ALM with the particle

    Plugin Author Darren Cooney

    (@dcooney)

    Not sure what you mean by the particle.

    Thread Starter mraychev

    (@mraychev)

    Sorry I mean article. For example if you go to -> https://iheartintelligence.com/2016/10/14/3d-thinking-abundance/
    and open console, you will see “Hello!” which means the ALM scroll has triggered the first page. ALM has to load when the reader hits the almost the end of the page. The shortcode is embed just after the post

    Plugin Author Darren Cooney

    (@dcooney)

    Your ‘Helo’ log is just in a regular script tag as well as the the almComplete.

    <script>
    console.log("Helo!");
    </script>
    Thread Starter mraychev

    (@mraychev)

    I know that is why I put it there. But when the page loads it is shown which means the alm has loaded the first page with the call to action and the reader might not even go to there. So if the reader doesn’t go there we don’t need alm showing anything. Isn’t that the idea of the scroller to trigger when the reader hits the shortcode and to load the scroller.

    Thread Starter mraychev

    (@mraychev)

    This is my shortcode:
    [ajax_load_more cache=”true” cache_id=”9493725251″ cta=”true” cta_position=”after:1″ cta_repeater=”template_1″ preloaded=”true” seo=”true” repeater=”template_2″ post_type=”post” preloaded=”true” preloaded_amount=”10″ category=”popular” posts_per_page=”2″ max_pages=”10″ scroll_distance=”100″ transition=”fade” transition_speed=”500″ pause=”true” pause_override=”true”]

    Plugin Author Darren Cooney

    (@dcooney)

    If you don’t want any posts loaded on initial render to set preloaded=”false” in your shortcode. Don’t forget to clear your ALM cache.
    Let me know if thats the issue.

    Cheers,

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘ALM loads 5 posts per page (posts_per_page=”3″)’ is closed to new replies.