• I am trying to load 4 small pages with Ajax Load More. My template is probably wrong. All I am getting is a menu link on a white page that shows the html for that page. It does not load the actual page. Any examples of a repeater for loading pages?

    • This topic was modified 1 year, 3 months ago by Jan Dembowski. Reason: Link moved to link field

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

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

    (@dcooney)

    Hi @wesch3
    The only example I would have is the Single Posts add-on, which loads individual articles/pages.
    https://connekthq.com/plugins/ajax-load-more/add-ons/single-posts/

    It sounds like you just have an error in your template.

    Did you want to share what the template is and I can see if I can point you in the right direction?

    Thread Starter wesch3

    (@wesch3)

    Darren,

    Thanks for getting back.
    I am using a template I got off the forum.

    <li class="three-column<?php if (!has_post_thumbnail()) { ?> no-img<?php } ?>">

    <a href="<?php the_permalink(); ?>">

    <div class="img-content img-fallback">

    <?php if ( has_post_thumbnail() ) { the_post_thumbnail('large'); }?>

    </div>

    <div class="text-content">

    <span class="date"><?php echo get_the_date(); ?></span>

    <h2><?php the_title(); ?></h2>

    <?php the_excerpt(); ?>

    <span class="btn">

    <?php esc_html_e( 'Read more', 'text-domain' ); ?><i class="icon-right-large"></i>

    </span>

    </div>

        </a>

    </li>


    And here is the url to my page that has the short code.
    [ redundant link deleted ]
    I have little experience with html but I get by.
    My site is very simple and I thought infinite scroll would beef it up.
    Any help would be appreciated.

    Thread Starter wesch3

    (@wesch3)

    Darren,

    It might be best to start with the default template.

    Plugin Author Darren Cooney

    (@dcooney)

    Hi @wesch3,

    I was going to recommend that, reverting to the default template then trying to adapt your page template from there.

    Are you able to get data returned?

    Thread Starter wesch3

    (@wesch3)

    Darren,

    The default template returns a link which is the title and the first 4 or 5 lines of page html. I do not know how to edit the default template in order to pull in my pages. I have a very simple site with only a background image with text. Can you tell me how to pull in these items in the repeater. I do not need a link, I want the new page to infinite scroll my other 3 pages with no load more button, just scrolling. If you had a sample template of a repeater pulling in pages, not post or links, it would be helpful. Like I said, I have no idea how to adapt my pages to the template. My repeater seems like it should be a very simple one. Just a few lines to pull in a simple page.

    Plugin Author Darren Cooney

    (@dcooney)

    Hi @wesch3

    What you’re asking for sounds simple, but there are literally hundreds of different ways to do this.
    I’m happy to help you out, but we will need to take this off the WP Support forums as I will need to see your site.

    If you’d like, please open a ticket here -> https://connekthq.com/support/?product=Ajax%20Load%20More

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

The topic ‘Repeater Template’ is closed to new replies.