Error Writing File: My code won't save even after changing permissions
-
I’m trying to save my repeater template but every time I try to save it, it doesn’t save and instead I get the dreaded “Error Writing File” issue. Changed my permissions to 777 in my wp-content, plugins, AjaxLoadMore, core and repeater folders, but still no luck. Did I forget to do something? I even tried code that worked on another ALM site and it wouldn’t save either. Regardless, and not taking any chances, here’s the current code:
<a href="<?php echo get_permalink( $ID ); ?>" title="<?php the_title( ); ?>"> <?php if (has_post_thumbnail( $post->ID ) ): ?> <?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?> <?php endif; ?> <div class="feature" style="background: url(<?php echo $image[0]; ?>) no-repeat top center!important; background-size: cover!important;"> <div class="feature-bottom"><?php $current_cat_id = the_category_ID(false); echo '<h3>' . get_cat_name($current_cat_id) . '</h3>'; ?><h2><?php echo get_the_title( $post->ID ); ?> </h2></div> </div> </a>
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Error Writing File: My code won't save even after changing permissions’ is closed to new replies.