WordPress.org

Ready to get started?Download WordPress

Forums

Front-end Editor
Confusion over editable region. (1 post)

  1. LukeKendall
    Member
    Posted 2 years ago #

    Hi,

    Firstly, I love this plugin - it's so easy to implement and makes editing the site easy for my client.

    I have an issue however with a news page I am setting up using index.php. It is formatted as follows:

    Header
    Introduction Text (Pulled from 'News' Page)
    List of Blog Posts
    Footer

    When I want to edit the Intro text using the plugin, once I click edit, it replaces the text with the content from the first displayed post and won't save changes. The following screenshot should demonstrate what I wish to do: http://i.imgur.com/9BBdz.png

    I'm hoping it's something simple to sort out, however this is my first ever wordpress site so I don't fully understand the workings of PHP. I'd be grateful for any help.

    My code is as follows:

    <?php get_header(); ?> 
    
    	<div class="darksection">
    	<div class="container">
    	<div class="threecol">
    
    		<?php
    		if ( 'page' == get_option('show_on_front') && get_option('page_for_posts') && is_home() ) : the_post();
    			$page_for_posts_id = get_option('page_for_posts');
    			setup_postdata(get_page($page_for_posts_id));
    		?>
    
    							<?php the_content(); ?>
    
    		<?php
    			rewind_posts();
    		endif;
    		?>
    
    		<?php
    		if (have_posts()) : ?>
    		<?php while (have_posts()) : the_post(); ?>
    
    		<div class="postexcerpt">
    			<img class="posticon" src="<?php bloginfo('template_url'); ?>/images/post.png" alt="Post Icon"/>
    
    			<div class="posttext">
    			<h1><a>"><?php the_title(); ?></a></h1>
    
    			<p><?php the_content(); ?></p>
    
    			<h6><span style="color: grey">Posted on <?php the_time('F j Y'); ?> at <?php the_time('g:i a'); ?>, by <?php the_author() ?>.</span> <span style="color: #23bfe2">Read More.</span></h6>
    			</div>
    		</div>
    
    		<?php endwhile; endif; ?>
    
    		</div>
    
    					<div class="sidebar">
    					<?php if ( !function_exists('dynamic_sidebar')
    					|| !dynamic_sidebar('Sidebar News') ) : ?>
    					<?php endif; ?>
    					</div>
    
    				</div>
    				<div style="clear:both"></div>
    			</div>	
    
    	<?php get_footer(); ?>

    http://wordpress.org/extend/plugins/front-end-editor/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic