• Resolved Hefdut

    (@hefdut)


    I’m using virtue version 2.3.7 with WP 4.1.1
    The site is working fine but the Google webmaster tools indicate a not found error (404) for all the following URL’s :
    site name/portfolio/portfolio name/feed

    Seems not to be a problem for the site performances but I would like to solve it.
    Thanks in advance.

Viewing 15 replies - 1 through 15 (of 17 total)
  • Where are you seeing this link? There shouldn’t be a feed for that?

    Are you using a feed plugin?

    Any reason your not using the latest theme?

    Kadence Themes

    Thread Starter Hefdut

    (@hefdut)

    I have just installed the latest version.
    The plugins that I am using are : Askimet / Google analytics / Google XML sitemap / SEO ultimate.
    Also I am using Google webmaster tools wich return 404 error for each portfolio item with /feed at the end of the URL.
    the site is https://savour.eu
    see as an example the portfolio item https://savour.eu/portfolio/etre-une-bonne-pomme/
    it works properly but in the source code, there is the following line <link rel=”alternate” type=”application/rss+xml” title=”SAVOUR.EUsement » Etre une bonne pomme Flux des commentaires” href=”https://savour.eu/portfolio/etre-une-bonne-pomme/feed/
    This is the wrong URL that the webmaster tools show.

    That is strange, The demo doesn’t add this: https://themes.kadencethemes.com/virtue/portfolio/sailing/

    I would try deactivating your plugins and see it they are the cause.

    Kadence Themes

    Thread Starter Hefdut

    (@hefdut)

    I deactivated each plugin one by one and created a test portfolio item each time,
    and then I deactivated all the plugins in the same time and created a test portfolio item ….
    but the wrong URL is generated in all cases, we can see it in the source code.

    Thread Starter Hefdut

    (@hefdut)

    As a complement, I found that other wordpress users got the same problem. It seems that the solution would be to add a remove action in the functions.php file. What do you think about it ?

    I found that other wordpress users got the same problem.

    who?

    It seems that the solution would be to add a remove action in the functions.php file

    What action?

    Have you tried re-saving your permalinks.

    Kadence Themes

    Thread Starter Hefdut

    (@hefdut)

    I re-saved the permalinks but it does not solve the problem.

    I searched in WP forums and found many posts about this /feed issue. One suggested a solution which consists in adding a line in the functions.php file:
    remove_action( ‘wp_head’, ‘feed_links’, 2 )

    in the virtue theme support forum, I have searched for URLs of websites built with virtue and I noted that there is the same issue when you access the source code of pages of these websites and you try to access the URL of portfolio items with /feed at the end of the url

    Again we find this 404 error only when we use the google webmaster tools. Otherwise there is no chance to meet it.
    It looks like an issue due to WP in general but not virtue.

    So if you save your permalinks as default does it work?

    I’m guessing this is a feed for your portfolio post comments that only shows if you have comments enabled for the post.

    Kadence Themes

    ok you can add this function to your child themes functions.php file to remove the comments feed for portfolio posts:

    function disablePortfolioCommentsFeedLink($for_comments) {
    	if(is_singular('portfolio')) {
    		return;
    	}
    	return $for_comments;
    }
    add_filter('post_comments_feed_link','disablePortfolioCommentsFeedLink');

    Kadence Themes

    Thread Starter Hefdut

    (@hefdut)

    I saved the permalink as default and created a new portfolio item …. but still the same problem.

    Other tests that I did :
    – create a new portfolio item with “allow comment” OFF and allow tracback” ON … same issue
    – create a new portfolio item with “allow comment” ON and allow tracback” OFF … same issue
    – create a new portfolio item with “allow comment” OFF and allow tracback” OFF …. in that case the wrong url is no longer generated …. OK it prevents from generating a wrong url but in that case comments are not allowed for portfolio items, it’s not really a solution.

    Also I noted that the fact of adding comments to a portfolio post does not change anything, the error is still here.

    If I added the function that you suggest, does it disable comments to portfolio posts ?

    No, It just removes the feed link for portfolio posts.

    I think there might be something wrong with your feed generation. See even the regular blog posts have a strange feed format: https://savour.eu/la-bataille-des-10-mots/feed/

    See the demo for comparison: https://themes.kadencethemes.com/virtue/image-slider-post/feed/

    Kadence Themes

    Thread Starter Hefdut

    (@hefdut)

    Is the feed generation a standard WP function or is there a specific one with virtue ?
    I have noticed that I am not the only one with this type of issue. For instance I have examples of sites built with virtue which generate the same 404 error for portfolio items feed links. I don’t know if I can give you a link as an example here or if you would prefer through a mailbox.

    Is the feed generation a standard WP function or is there a specific one with virtue

    Standard wordpress.

    I did some more digging, seems like this is a common issue with custom post types and wordpress. I’ve worked out a redirect that will make this work when using post name permalinks. Testing now, see it on the demo here: https://themes.kadencethemes.com/virtue/portfolio/landscape-slider/
    and the feed: https://themes.kadencethemes.com/virtue/portfolio/landscape-slider/feed/

    Kadence Themes

    Thread Starter Hefdut

    (@hefdut)

    Great ! what should I do to get the same result ?

    I’ll have an update out this week for the virtue/pinnacle toolkit.

    Kadence Themes

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Portfolio URL feed’ is closed to new replies.