• Resolved ManuelGarciaPH

    (@manuelgarciaph)


    I am planning to buy the whole package but fortunately, I have decided to try first the free version of the plugin. I tried to incorporate my contents from the loop of my website and tried to add it in the default template and it says “Something went wrong and the data could not be saved.” Now, I tried to remove some text to the sample code just to see if it will work and it still says the same. What should I do?

    Thank you!

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

    (@dcooney)

    Hi @manuelgarciaph,
    Did you try removing everything from the default template and saving?

    If you did and it’s still not working you have permission issues on your server.

    Let me know if it will not save at all.

    Cheers,

    Thread Starter ManuelGarciaPH

    (@manuelgarciaph)

    I tried to delete all the contents and I was able to save it. I tried to add my code again and it didn’t work. I removed all the PHP codes and leave the HTML part only and I was able to save it. What seems to be the problem?

    Plugin Author Darren Cooney

    (@dcooney)

    I haven’t been able to figure it out yet.

    Sometimes if you have multi line php like the following it will fail:

    <?php
    $var = 'test';
    the_content();
    ?>

    Can you post your template?

    Thread Starter ManuelGarciaPH

    (@manuelgarciaph)

    Here it is:

    <article id="post-<?php the_ID(); ?>" class="news-home">
         <div class="news-home-thumb clr">
              <figure class="loop-entry-thumbnail">
                   <a href="<?php the_permalink(); ?>" title="<?php wpex_esc_title(); ?>">
                   <?php $img = wpex_image( 'array' ); ?>
                   <div class="post-thumbnail">
                        <img src="<?php echo esc_url( $img['url'] ); ?>" alt="<?php wpex_esc_title(); ?>" width="<?php esc_attr_e( $img['width'] ); ?>" height="<?php esc_attr_e( $img['height'] ); ?>"/>
                   </div><!-- .post-thumbnail -->
              </a>
         </figure>
    </div>
    <div class="clr">
         <header>
              <h2 class="loop-entry-title">
                   <a href="<?php the_permalink(); ?>" title="<?php wpex_esc_title(); ?>"><?php the_title(); ?></a>
              </h2>
              <?php get_template_part( 'entry', 'meta' ); ?>
         </header>
    </div>
    <div class="loop-entry-excerpt entry clr">
         <?php if ( 'content' == get_theme_mod( 'wpex_entry_content_excerpt', 'excerpt' ) ) { the_content();
         } else {
              wpex_excerpt();
         } ?>
    </div><!-- .loop-entry-excerpt -->
    <div class="loop-entry-meta clr">
              <div class="post-meta-author">
                   <span class="fa fa-user"></span><?php the_author_posts_link(); ?>
              </div>
    </div>
    </article>
    Thread Starter ManuelGarciaPH

    (@manuelgarciaph)

    I tried to simplify the above code and used one line of html and php. Still, it won’t work. Is there any workaround? Like maybe editing the template directly via cPanel?

    Plugin Author Darren Cooney

    (@dcooney)

    I am able to save that repeater on my test environments.

    Anyways you could always use the Theme template method.
    See here – https://connekthq.com/plugins/ajax-load-more/docs/repeater-templates/#theme

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Can’t Edit Repeater Template’ is closed to new replies.