I copied all my WP files from the server to my local WAMP as a dev-environment. Everything works smoothly except when viewing a blog post.
I get a good output of all the titles/categories/post-content/ect' - But with a strange output before the blogs content:
http://i.stack.imgur.com/JTKJ5.png
content.php Line 68 is this part in the code: __( ),
One line after "the_content" function:
<div class="post-bottom">
<div class="post-text-container">
<?php
/* translators: %s: Name of current post*/
$postURL = get_permalink();
$commentsURL = get_comments_link();
the_content( sprintf(
__( ),
the_title( '<span class="screen-reader-text">', '</span>', false )
) );
if ( !is_single() ) :
echo "<div class=\"read-more\"><a href=\"$postURL\">Continue reading...</a> | <a href=\"$commentsURL\">Full Comments</a></div>";
endif;
?>
</div>
</div>
What can be the cause of this?
Edit: the only things that I changed when coping stuff to my local server were:
1 - I copied my database to my local phpmyadmin and changed all http://www.example.com
to http://localhost/example
in the options table.
2 - I totally removed my .htaccess file (and wordpress generated a new one by it self)
This is how the one on the server looks:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
and this is what I have locally:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /example/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /example/index.php [L]
</IfModule>
# END WordPress
3- I enabled "rewrite_modle" on WAMP because it's disabled by default.