Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #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

    #904167

    Hey 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,
    Basilis

    #905701

    Hi 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

    #906460

    Hi,

    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,
    Basilis

    #906472

    Hi 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

    #907295

    Hi,

    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,
    Basilis

    #907300

    Hi 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

    #907678

    Hi,

    Great! Please update us once the premium version is set. :)

    Best regards,
    Ismael

    #912882

    Hi 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

    #913404

    Hi,

    Thank you very much for the quick update, we much appreciate it!

    Best regards,
    Basilis

    #915675

    Hi 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

    #915711

    Hi,

    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,
    Basilis

    #915761

    Thank 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

    #926962

    Hi 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

    #927702

    Hi,

    Can you show me a screenshot pplease?

    Best regards,
    Basilis

    #939319

    Hi 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

    #940160

    Hi,

    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

Viewing 17 posts - 1 through 17 (of 17 total)
  • You must be logged in to reply to this topic.