• Resolved brickley

    (@brickley)


    Hello Darren,

    I’ve installed and use Ajax Load More Version 2.13.1 and Custom Repeaters v2 Version 2.4.1

    Right now, I’m only using it on one page until I get to know it better.

    https://cannabisgourmet.buzz/edible-recipes/

    Problem – The template is calling every variation of the thumbnail image which makes each post load slowly. This is an example of the list of images.

    <img width="200" height="200" src="https://cannabisgourmet.buzz/wp-content/uploads/2016/09/DoubleDarkChocolateCookie_400x400-300x300.jpg" class="attachment-200x200 size-200x200 wp-post-image" alt="Double Chocolate Chip Canna-Cookies" srcset="https://cannabisgourmet.buzz/wp-content/uploads/2016/09/DoubleDarkChocolateCookie_400x400-300x300.jpg 300w, https://cannabisgourmet.buzz/wp-content/uploads/2016/09/DoubleDarkChocolateCookie_400x400-150x150.jpg 150w, https://cannabisgourmet.buzz/wp-content/uploads/2016/09/DoubleDarkChocolateCookie_400x400-100x100.jpg 100w, https://cannabisgourmet.buzz/wp-content/uploads/2016/09/DoubleDarkChocolateCookie_400x400-90x90.jpg 90w, https://cannabisgourmet.buzz/wp-content/uploads/2016/09/DoubleDarkChocolateCookie_400x400-45x45.jpg 45w, https://cannabisgourmet.buzz/wp-content/uploads/2016/09/DoubleDarkChocolateCookie_400x400.jpg 400w" sizes="(max-width: 200px) 100vw, 200px">

    Then – the template is not displaying the post excerpt. The code is below.
    ==================================================================================================

    <li<?php if (! has_post_thumbnail() ) { echo ' class="no-img"'; } ?>>
    
    <?php if ( has_post_thumbnail() ) { ?> 
    
       <a href='<?php the_permalink(); ?>'> <?php the_post_thumbnail(array(200,200));}?></a>
    
       <a href='<?php the_permalink(); ?>' title='<?php the_title(); ?>'><?php the_title(); ?></a>
    
       <?php echo(the_excerpt()); ?>
    
    </li>

    [ajax_load_more repeater="template_2" post_type="recipe" posts_per_page="1" max_pages="0" scroll_distance="20" transition="fade" transition_speed="20" button_label="More Recipes" button_loading_label="Loading More Recipes" container_type="div" css_classes="Recipe_LoadMore"]

    ===================================================================================================

    Thanks for spending a minute looking at these issues.

    Happy New Year!

    David

    • This topic was modified 7 years, 11 months ago by brickley. Reason: enclosed code
    • This topic was modified 7 years, 11 months ago by brickley.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    Hi @brickley,
    That is not loading all images. That is the default WordPress responsive images behavior.

    To render an excerpt you would simply use the_excerpt() not an echo.

    Cheers,

    Thread Starter brickley

    (@brickley)

    Hello Darren,
    I super appreciate you answering my support message on a holiday weekend. Very considerate of you.

    I’ll take your word for the “default” responsive images behavior. I’ve not ever seen that many references loaded before.

    Still, the real issue is that the template is producing results very slowly. I thought it was due to the images so that’s what I pointed out.

    As for the_excerpt(), I tried it both ways and nothing. I do have text in the manual Post Excerpt field on all the posts, so there is a string available for the function to grab.

    Those are the issues: producing a slow result and no excerpt showing.

    When you have time, please take a look – https://cannabisgourmet.buzz/edible-recipes/

    Many Thanks!

    David

    Plugin Author Darren Cooney

    (@dcooney)

    Hi David,
    If it’s very slow then it may be your host/server causing the delays.

    I had a look at your site. Is there a reason you are loading 1 post at a time? It would be easier on the server to load 4-6 at a time.

    Thread Starter brickley

    (@brickley)

    Hi Darren

    I have a well-respected service provider – Bluehost. They specialize in wordpress sites and Cloudflare in front of that. How can I determine if “they” are causing the delay?

    I’ll try loading more than one at a time.

    Any sense why the excerpt is not loading?

    Thanks!

    David

    Plugin Author Darren Cooney

    (@dcooney)

    Any sense why the excerpt is not loading?

    Te only reason it would not be is that you actually have no content for that page. Are you using a page builder?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Very slow because it loads every image size – also does not display the excerpt’ is closed to new replies.