Feel free to have a look at the website to see what I am going on about: http://www.capturedlearning.com.
I am in the process of converting the static HTML/CSS website above to wordpress, so I can easily go on and change content.
All I want to do at the moment is make the text editable in each page.
First things first:
I would like to make each separate div on the index page editable. I have tried doing this by deleting the HTML text and replaced it with:
<?php if ( have_posts() ) : ?> <?php while ( have_posts() ) : the_post(); ?> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="entry clear"> <?php if ( function_exists( 'add_theme_support' ) ) the_post_thumbnail(); ?> <?php the_content('category_name=problemsolving&posts_per_page=1'); ?> <?php edit_post_link(); ?> <?php wp_link_pages(); ?> </div><!--end entry--> <div class="post-footer"> <div class="comments"><?php comments_popup_link( 'Leave a Comment', '1 Comment', '% Comments' ); ?></div> </div><!--end post footer--> </div><!--end post--> <?php endwhile; /* rewind or continue if all posts have been fetched */ ?> <div class="navigation index"> <div class="alignleft"><?php next_posts_link( 'Older Entries' ); ?></div> <div class="alignright"><?php previous_posts_link( 'Newer Entries' ); ?></div> </div><!--end navigation--> <?php else : ?> <?php endif; ?>
This has worked to an extent... Every div has the same post that is editable in WordPress (yay!, although this isn't exactly what I want).
I would like each one to be a separate post, so each one can be edited.
Is there a way of editing the PHP code so it calls on an individual post that has been created?
If not, what are my options?
Thanks in advance,