WordPress.org

Ready to get started?Download WordPress

Forums

I cannot open single page (14 posts)

  1. benek71
    Member
    Posted 1 year ago #

    I wanted to remove name of author in single page, so I removed it form the code. After that I have no access (blank page) to single page on my blog. I entered again 'Autor wpisu' into code, but it doesn't work.
    I put down the whole code of the single page in my WP. Where ist the mistake?

    <?php get_header(); ?>
    
    <div id="content">
    
    	<div id="contentleft">
    
    		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    		<h1><?php the_title(); ?></h1>
    
    		<div class="date">
    			<?php the_time('F j, Y'); ?> · Autor wpisu:  <?php the_author_posts_link();?> · <?php the_author_posts_link(); ?>Tematyka: <?php the_category(', ') ?> <?php edit_post_link('(Edit)', '', ''); ?>
    		</div>
    
    		<?php the_content(__('Read more'));?><div style="clear:both;"></div>
    
    		<!--
    		<?php trackback_rdf(); ?>
    		-->
    
    		<div class="postmeta">
    			<p><?php the_tags('') ?> </p>
    		</div>
    
    		<?php endwhile; else: ?>
    
    		<p><?php _e('Sorry, no posts matched your criteria.'); </p><?php endif; ?>
    
    		<h3>Komentarze</h3>
    		<?php comments_template(); // Get wp-comments.php template ?>
    
    	</div>
    
    <?php include(TEMPLATEPATH."/l_sidebar.php");?>
    
    <?php include(TEMPLATEPATH."/r_sidebar.php");?>
    
    </div>
    
    <!-- The main column ends  -->
    
    <?php get_footer(); ?>

    THANKS IN ADVANCE FOR YOUR HELP

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. Or better still - use the pastebin. As it stands, your code may now have been permanently damaged/corrupted by the forum's parser.]

  2. theresacambria
    Member
    Posted 1 year ago #

    Should "Autor wpisu" be "Author wpisu"?

  3. benek71
    Member
    Posted 1 year ago #

    Thanks for your interest. I checked it. It didn't change anything
    Below is link to my blog
    http://www.tlumaczeniaprawnicze.com.pl/

    Thanks in advance for these who will try to help me

  4. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Try removing:
    Autor wpisu: <?php the_author_posts_link();?> · <?php the_author_posts_link(); ?>

  5. benek71
    Member
    Posted 1 year ago #

    I removed, but itd didnt help

  6. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Are your sure that you are editing the right theme/template file?

  7. benek71
    Member
    Posted 1 year ago #

    Yes, I am
    Listen to my screencast...

  8. benek71
    Member
    Posted 1 year ago #

    I have access too my blog, but I have no acces to single page, as you see
    http://www.tlumaczeniaprawnicze.com.pl/2012/08/30/dlaczego-warto-obejrzec-prace-egzaminacyjne-po-sprawdzeniu/

  9. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    I'm sorry but, with all due respect, these forums are too busy to stop and run screencasts. Added to which, not everyone is able to access them fully.

  10. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Can we see your site using the Twenty Eleven theme with all plugins deactivated?

  11. benek71
    Member
    Posted 1 year ago #

    Yes, its done

  12. benek71
    Member
    Posted 1 year ago #

    Question to moderator
    I want to remove my code form first post for security reasons, but I have no EDIT OPTION below avatar. How to edit it?

  13. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    I'm sorry but we do not edit posts except in extreme circumstances. The code you posted above does not constitute any kind of security issue

  14. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    I notice that your single page is now accessible. Try just switching the theme back (but leave all plugins deactivated) to see if this was a theme issue.

Topic Closed

This topic has been closed to new replies.

About this Topic