Jump to content

zxfactor

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Everything posted by zxfactor

  1. Ken, Thank for your help. I will def take a look at that thread and the editors you suggested. I have access to Dreamweaver. I was trying to write the code and learn. However, having an editor to point out errors. would be helpful. Thanks again
  2. Okay ... that is so strange.. not sure what was going on.. but once I copied and pasted your code .. as opposed to typing it myself... that seem to resolve the problem... Thanks you so much for taking the time to continue to look at my issue. I really do appreciated it. Do you have a suggestion for a better editor?
  3. I'm using notepad.. not sure why it continues to show up that way. It doesn't look that way when I make the corrections. I will copy and paste your example to see if that resolves the problem and advise.
  4. Sorry.. here is the corrected code.. the index php <?php get_header(); ?> <div id="container"> <?php if(have_posts()) : ?><?php while(have_posts()): the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> <div class="entry"> <?php the_content(); ?> <p class="postmetadata"> <?php _e('Filed under&#58;'); ?> <?php the_category(', ') ?> <?php _e('by'); ?> <?php the_author(); ?><br /> <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?> <?php edit_post_link('Edit', ' &#124; ', ''); ?> </p> </div> </div> <?php endwhile; ?> <div class="navigation"> <?php posts_nav_link(); ?> </div> <?php else : ?> <div class="post"> <h2><?php_e('Not Found'); ?></h2> </div> <?php endif; ?> </div> <?php get_sidebar(); ?> <?php get_footer(); ?> </body> </html> the single php.. that the error refers to <?php get_header(); ?> <div id="container"> <?php if(have_posts()) : ?><?php while(have_posts()): the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> <div class="entry"> <?php the_content(); ?> <?php link_pages('<p><strong>Pages:</strong>‘, '</p>’, ‘number’); ?> <p class="postmetadata"> <?php _e('Filed under&#58;'); ?> <?php the_category(', ') ?> <?php _e('by'); ?> <?php the_author(); ?> </p> </div> </div> <?php endwhile; ?> <div class="navigation"> <?php previous_post_link('&laquo,%link') ?><?php next_post_link('%link &raquo,') ?> <?php edit_post_link('Edit', ' &#124; ', ''); ?> </div> <?php else : ?> <div class="post"> <h2><?php_e('Not Found'); ?></h2> </div> <?php endif; ?> </div> <?php get_sidebar(); ?> <?php get_footer(); ?> the page php <?php get_header(); ?> <div id="container"> <?php if(have_posts()) : ?><?php while(have_posts()): the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> <div class="entry"> <?php the_content(); ?> <?php linl_pages('<p><strong>Pages:</strong>','</p>','number'); ?> <?php edit_post_link('Edit','<p>','</p>'); ?> </div> <?php endwhile; ?> <?php else : ?> <div class="post"> <h2><?php_e('Not Found'); ?></h2> </div> <?php endif; ?> </div> <?php get_sidebar(); ?> <?php get_footer(); ?> </body> </html>
  5. okay.. I just realized that correct page.php instead of single.phh..however even with the correction made to single.php, I still get the following error message: Parse error: syntax error, unexpected '/' in C:\xampp\htdocs\wordpress\wp-content\themes\tutorial\single.php on line 22 This happens when I click on the tile of post.. if that helps any...
  6. Thanks for responding... This is my index code (index.php) <?php get_header(); ?> <div id="container"> <?php if(have_posts()) : ?><?php while(have_posts()): the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> <div class="entry"> <?php the_content(); ?> <p class="postmetadata"> <?php _e('Filed under&#58;'); ?> <?php the_category(', ') ?> <?php _e('by'); ?> <?php the_author(); ?><br /> <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?> <?php edit_post_link('Edit', ' &#124; ', ''); ?> </p> </div> </div> <?php endwhile; ?> <div class="navigation"> <?php posts_nav_link(); ?> </div> <?php else : ?> <div class="post"> <h2><?php_e('Not Found'); ?></h2> </div> <?php endif; ?> </div> <?php get_sidebar(); ?> <?php get_footer(); ?> </body> </html> and this is the page the code refers to in line 22 (single.php) <?php get_header(); ?> <div id="container"> <?php if(have_posts()) : ?><?php while(have_posts()): the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> <div class="entry"> <?php the_content(); ?> <?php link_pages('<p><strong>Pages:</strong>‘, '</p>’, ‘number’); ?> <p class="postmetadata"> <?php _e('Filed under&#58;'); ?> <?php the_category(', ') ?> <?php _e('by'); ?> <?php the_author(); ?> </p> </div> </div> <?php endwhile; ?> <div class="navigation"> <?php previous_post_link('&laquo,%link') ?><?php next_post_link('%link &raquo,') ?> </div> <?php else : ?> <div class="post"> <h2><?php_e('Not Found'); ?></h2> </div> <?php endif; ?> </div> <?php get_sidebar(); ?> <?php get_footer(); ?>
  7. kenrbnsn - Thanks for the recommendation, after making the changes, I still get the same error message, referring to line 22?
  8. I removed the following code - ('No Comments »', '1 Comment »', '% Comments »'); ?> and left <?php edit_post_link('Edit', ' &#124; ', ''); ?> and I still get the error for line 22
  9. This is line 22 <?php link_pages('<p> '<strong>Pages:</strong>‘, </p>’, ‘number’); ?>
  10. Hi Everyone, Could anyone tell me what I'm doing wrong to have genereated the following error: Parse error: syntax error, unexpected '>' in C:\xampp\htdocs\wordpress\wp-content\themes\tutorial\single.php on line 22 Here is a copy of my code: <?php get_header(); ?> <div id="container"> <?php if(have_posts()) : ?><?php while(have_posts()): the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> <div class="entry"> <?php the_content(); ?> <?php link_pages('<p> '<strong>Pages:</strong>‘, </p>’, ‘number’); ?> <p class="postmetadata"> <?php _e('Filed under&#58;'); ?> <?php the_category(', ') ?> <?php _e('by'); ?> <?php the_author(); ?> </p> </div> </div> <?php endwhile; ?> <div class="navigation"> <?php previous_post_link('&laquo,%link') ?><?php next_post_link('%link &raquo,') ?> ('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?> <?php edit_post_link('Edit', ' &#124; ', ''); ?> </div> <?php else : ?> <div class="post"> <h2><?php_e('Not Found'); ?></h2> </div> <?php endif; ?> </div> <?php get_sidebar(); ?> <?php get_footer(); ?>
  11. Hi Everyone, My name is zxfactor. I'm very exciting about finding this forum. I am learning how to code wordpress themes which as you know contain a lot of php files. I look forward to learning from everyone as well as contributing to anyone that need help as well. Thanks in advance.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.