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,
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?
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?
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>
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?
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