• Resolved norawaters

    (@norawaters)


    first of all thank you for the great plugin. I used it for many sites and it always worked perfectly!

    Which makes this case all the more strange. I have installed the plugin to this page https://drei.cologne/ and added the shortcode into the homepages php-file. With the aim to load new posts at the far right of the News column section.
    This sections is not a custom post type — simply renamed posts.
    I get content via two ACF fields (I installed and activated the corresponding compatibility plugin) which are also displayed in the repeater template. Nevertheless, nothing is loading.
    I tired the old the_title() trick to see if it’s maybe ACF, but still no reaction.

    The error im getting is:

    [Log] Error: (ajax-load-more.min.js, line 6)
    TypeError: undefined is not an object (evaluating ‘m.debug’)
    (anonyme Funktion) — ajax-load-more.min.js:6:39178
    (anonyme Funktion) — ajax-load-more.min.js:6:36830
    promiseReactionJob
    [Log] Error Msg: – “undefined is not an object (evaluating ‘m.debug’)” (ajax-load-more.min.js, line 6)
    [Log] ALM Error started in adminajax (ajax-load-more.min.js, line 6)

    This is part of the homepages php with the shortcode

    <div class="row">
     <div class="titelschrift">News:</div>
    
      <div class="item">
        <?php $yell_2 = new WP_Query(array('post_type' => 'post',)); while ($yell_2->have_posts()) : $yell_2->the_post(); ?>
        
    <div class="paragraph">
          <?php $link = get_field('link_to_artist_page');
          if( $link ): ?>
              <a class="button" href="<?php echo esc_url( $link ); ?>"><?php the_field('artist_name'); ?></a>
          <?php else: ?>
              <?php the_field('artist_name'); ?>
          <?php endif; ?><br>                    
              <?php the_field('info_news'); ?><br>
                    </div>
          <?php endwhile; wp_reset_query(); ?>
    </div>
    
    
        <?php echo do_shortcode('[ajax_load_more container_type="div"  post_type="post" acf="true" posts_per_page="3" pause="true" images_loaded="true" scroll="false" transition_container_classes="#paragraph" button_label="More News…" button_loading_label="…loading" offset="15"]'); ?>  
    
    </div>  <!-- .row -->

    And the repeater template

    <div class="paragraph">
    <?php $link = get_field('link_to_artist_page');
    if( $link ): ?>
    <a class="button" href="<?php echo esc_url( $link ); ?>"><?php the_field('artist_name'); ?></a>
    <?php else: ?>
    <?php the_field('artist_name'); ?>
    <?php endif; ?><br>                    
    <?php the_field('info_news'); ?><br>
    </div>

    I’m not sure what to do next. Hope you can help me.

    • This topic was modified 2 years ago by norawaters.

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

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Posts won’t load’ is closed to new replies.