Tagged: Enfold portfolio, Feed, indexing, rss
-
AuthorPosts
-
January 24, 2018 at 6:52 pm #902257
Hi guys,
I know that one of the main differences between portfolios and blog posts is that portfolios (like pages) are not included on the feed of the blog but for some reason, Google Search Console is picking them up and marketing them as errors.
Any solution (blocking them on robots.txt is not solving the problem – it is generating even more errors – new Gogle Search Console reporting and all)
Thank you!!
Havi
January 29, 2018 at 11:36 am #904167Hey havi,
Can you please show us the exact error it returns to you, so we can be able to see and maybe help you with the problem?
Thank you very much
Best regards,
BasilisJanuary 31, 2018 at 6:59 pm #905701Hi Basilis!!
How are you?
Here’s what happens. Search Console starts to show indexation and consequently 404s of the portfolio pages feeds. They shouldn’t be indexed in the first place.
So, if you add Disallow: */feed/ to the robots.txt file, you stop getting 404s and you start getting a huge increase of blocked resources reported on Search Console (not just for the portfolios but for every page that produced a feed)
Blocking resources produces a very adverse reaction from Google on the SERPs (they want to see everything)
Does this help?
My question is, how to I add a noindex tag to the portfolio feeds?
Meanwhile I am going to remove the disallow feed from my robots.txt as I don’t have too many portolios for now.
Thank you!!
Warmly,
Havi
February 1, 2018 at 9:08 pm #906460Hi,
If you install a plugin like Yoast, you can setup some pages to me as noindexed.
There are some other ways to create a child theme, add the header.php in there and then add a is_singular(‘portfolio’) and a meta for non-index.i think the easiest is the Yoast
Best regards,
BasilisFebruary 1, 2018 at 9:23 pm #906472Hi Basilis,
Thank you but that won’t work as I want the Portfolio Page (or custom post?) to be indexed.
Yoast has a way to stop the WordPress Blog Posts feed from being indexed but it doesn’t seem to recognize the custom post type portfolio’s feed to add a node to it too.
Is there a way to do this? Should we ask Yoast to include a way to no index Avia’s custom post types? Am I even making sense? :)
Warmly,
Havi
February 3, 2018 at 11:14 pm #907295Hi,
Yes, most probably Yoast has that option as I have seen it ( for custom post types ).
Is it maybe on the premium version?Best regards,
BasilisFebruary 3, 2018 at 11:20 pm #907300Hi Basilis,
I use their free version but I am about to get their premium version. I’ll check and let you know. Meanwhile, 404s are better than blocked ;)
Warmly,
Havi
February 5, 2018 at 4:50 am #907678Hi,
Great! Please update us once the premium version is set. :)
Best regards,
IsmaelFebruary 15, 2018 at 7:19 pm #912882Hi guys!
This is just an update.
I reached out to Yoast, they indicated this feed should not be getting indexed and to check for conflicts.
I decided to run several experiments with the portfolios setup in different ways:
1- Title inside of the page and remove social media buttons from the plugin
2- Title from theme (not Advanced Layout Editor) so Social Media buttons appear right after it
3- Portfolio page with standard editor (not Advanced Layout Editor)So far, no errors have been detected by Google Search Console on the above scenarios. So, I think there may be an issue somewhere in there.
I had to add a bit of CSS to the Title so it would show the proper color when it was displayed above the page body.
/*title portfolio*/
#top .alternate_color.title_container .main-title a {
color: #80b7b3 !important;
}I will keep an eye on it for a week or two and let you know if the error gets crawled again. It maybe too soon.
Personally I think it could be the ESSB Plugin blocking something (as it seems to happen when those buttons display above the Title.
I’ll keep you posted!!
Warmly,
Havi
February 16, 2018 at 10:13 pm #913404Hi,
Thank you very much for the quick update, we much appreciate it!
Best regards,
BasilisFebruary 21, 2018 at 8:40 pm #915675Hi guys!!
I think I am onto something here. This may be the solution.
We need to exclude the Portfolio Pages from the WordPress RSS feed via the Child’s functions.php file.
Here’s why:
1- these are pages, not posts and now they have started appearing on the New Search Console’s report as a Crawling Anomaly.
2- if they are treated as posts, then they cannot use the advanced layout editor, correct? It would be the same as using the Advanced Layout Editor on a Post. It turns it into a Page.Can you please help me exclude the Portfolio Pages from the WP Feed? (Or provide me with more feedback on my reasoning)
Thank you so much!!!
Warmly,
Havi
February 21, 2018 at 9:07 pm #915711Hi,
Please add the following code
do_action('wp','kill_feeds',-1); function kill_feeds(){ if ( is_feed( array('portfolio') ) ) { exit; } }
Let us know if it works out for you
Best regards,
BasilisFebruary 21, 2018 at 11:05 pm #915761Thank you, Basilis!!
I’ll install it and I should know in a few days!!! :) Crossing my fingers!!!
The new search console gives so much data it’s been giving a lot of extra work!! :)
Warmly,
Havi
March 15, 2018 at 1:59 am #926962Hi Basilis!
I let things cool off and posted a new portfolio and it created a /feed/:
It now shows up as a 404 on the Search Console:
photogallery/photo-gallery-creative-wedding-tent-decor-ideas/feed/Linked from https://bodasyweddings.com/photogallery/photo-gallery-creative-wedding-tent-decor-ideas/
Any other ideas?
Thank you!!!
Havi
March 15, 2018 at 9:08 pm #927702Hi,
Can you show me a screenshot pplease?
Best regards,
BasilisApril 9, 2018 at 5:19 pm #939319Hi Basilis!
Sorry for the delay. Here’s one of the screenshots where it shows the feed is still being created: https://imgur.com/a/WYZ5G
Thank you for your support!
Havi
April 11, 2018 at 3:51 am #940160Hi,
Please try this snippet instead.
/** * Disable the "portfolio" custom post type feed * * @since 1.0.0 * @param object $query */ function ava_disable_cpt_feed( $query ) { if ( $query->is_feed() && in_array( 'portfolio', (array) $query->get( 'post_type' ) ) ) { die( 'Feed disabled' ); } } add_action( 'pre_get_posts', 'ava_disable_cpt_feed' );
// http://www.jaredatchison.com/code/disable-custom-post-type-rss-feed/
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.