Kroon10
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Redirect loop for post attachmentsAh ok, happens to the best of us! Guiding me through the process reguires intelligence and patience, and you demonstrated you have both! So I can only be very grateful!
Ill put these two files in a safe spot.
Thanks so much for taking the time to have a look at it, have a nice evening!
Forum: Fixing WordPress
In reply to: Redirect loop for post attachmentshaha ok. Do you think that the child theme might also be reason that the 301 redirection to the parent post was not working in the first place?
Forum: Fixing WordPress
In reply to: Redirect loop for post attachmentsI have provided the details in the email
Forum: Fixing WordPress
In reply to: Redirect loop for post attachmentsthere is no closing php tag! That is all I have in there. Im guessing that is a problem:)
Forum: Fixing WordPress
In reply to: Redirect loop for post attachmentsI have now disabled w3 total cache. No changes
Here is the functions.php
Forum: Fixing WordPress
In reply to: Redirect loop for post attachmentsCant believe i missed that. Sorry!
But I have fixed it, but nothing has changed
Forum: Fixing WordPress
In reply to: Redirect loop for post attachmentsForum: Fixing WordPress
In reply to: Redirect loop for post attachmentsOk. Here you go.
Forum: Fixing WordPress
In reply to: Redirect loop for post attachmentsok, ive all of that!
But when looking through the page source, I still cannot find the metatags!
Forum: Fixing WordPress
In reply to: Redirect loop for post attachmentsPerhaps a stupid question, but the head section. Is where you see <head> for the first time like this?
<head>
<meta charset=”<?php bloginfo( ‘charset’ ); ?>” />Forum: Fixing WordPress
In reply to: Redirect loop for post attachmentsOk option 1 was no sweet success I am afraid:)
Not sure If I will be able to do, alternative 2 though. It seems a bit difficult!
If I understand it correctly, I just copy the header.php, and name it header-attachments.php.
Then do i need to add:
function noindex_attachment_pages() {
if(is_attachment()) {
echo ‘<meta name=”robots” content=”noindex, nofollow” />’;
}
}
add_action(‘wp_head’, ‘noindex_attachment_pages’);This?
And then make an attachment.php, and then insert the same code again?
Forum: Fixing WordPress
In reply to: Redirect loop for post attachmentsNo apologies needed!
I have already recovered it by going to the FTP, so tahts all good.
But I had put it in at the end? How can I keep it outside the closing PHP Tags?
Forum: Fixing WordPress
In reply to: Redirect loop for post attachmentsAs a matter of fact, I cannot access anything now. I put it at the end like you told me.
Forum: Fixing WordPress
In reply to: Redirect loop for post attachmentsHmm, after that I actually keep getting the error as soon as I try to access my wp. Cannot even change it now. Any ideas?
Forum: Fixing WordPress
In reply to: Redirect loop for post attachmentsParse error: syntax error, unexpected ‘<‘ in /home/europea/domains/europeanmovies.org/public_html/wp-content/themes/twentyeleven/functions.php on line 595
It immediately gives me this message after inserting your code