• Resolved eneco

    (@eneco)


    Hey there,

    I don’t want search engines to index the portfolios on my website and therefore set “Show Portfolio in search results?” under “SEO -> Search Appearance -> Content Types -> Portfolio” to “No”. As a result they are not part of my XML sitemap.

    Unfortunately these pages can still be found on search engines. So I checked the source code and there are no “noindex” robots meta tags!

    How can I stop search engines from showing these pages in searches?

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • mojrianweb

    (@mojrianweb)

    Hi dear friend your seo plugin is update?
    ???

    Thread Starter eneco

    (@eneco)

    Yes, I’m running the latest version 13.2

    Plugin Support devnihil

    (@devnihil)

    @eneco Can you please provide us with an exact URL to one of the portfolio pages that you are experiencing the issue on so that we can check to ensure that the correct ‘noindex’ metatag is being output by the plugin?

    Thread Starter eneco

    (@eneco)

    This is one of the pages that can be found on search engines:

    https://www.valentinspiegel.de/portfolio/game-audio-demo/

    Each portfolio has its own page and will be embedded on the main page through my theme. Therefore I don’t want search engines to find and list these individual portfolio pages.

    Thread Starter eneco

    (@eneco)

    @devnihil Any idea why this is happening?

    Pcosta88

    (@pcosta88)

    Hi,

    We are confused. We looked at https://www.valentinspiegel.de/portfolio/game-audio-demo/ but it appears it only html. See image: https://pasteboard.co/IYsqOem.png.

    It is lacking the WordPress and other items we normally find in the source code of the page.

    Can you elaborate more on how these portfolio pages were made? Are you using a plugin or did you assign them some kind of page template? Or are they generated from a theme?

    Thread Starter eneco

    (@eneco)

    @pcosta88 Thanks for tuning in.

    My theme generates a separate portfolio section where I can create these individual portfolio html pages (see screenshot):

    View post on imgur.com

    These pages are then automatically embedded by the theme on the main page (see screenshot):

    View post on imgur.com

    Yoast seems to detect this content and offers to hide these pages for search engines (see screenshot):

    View post on imgur.com

    But I guess Yoast needs a fully functional WordPress page to embed meta tags and not just a plane html page.

    Plugin Support amboutwe

    (@amboutwe)

    Search engines will not see those “pages” because they are not real pages. They are HTML snippets that are shown/hidden probably using JavaScript into another page (the homepage it seems). The /portfolio/NAME/ is only partial HTML as it doesn’t start with the opening <html> tag. Plus WordPress isn’t triggered at all on those “pages” so WordPress plugins cannot insert information into them.

    In short, the way the theme has setup the portfolio post type is not compatible with plugins that interact with core WordPress functions to add/update/remove content within the final output.

    Thread Starter eneco

    (@eneco)

    @amboutwe Thanks for the explanation, that makes things a lot clearer.

    Nevertheless these portfolio pages show up in search engine results depending on the search term. But I guess they are content related searches, meaning the search engines look for the exact term somewhere on the main page and find it within the portfolios and therefor list the connected html page as a search result (see screenshot):

    View post on imgur.com

    Sa?a

    (@stodorovic)

    I see that /portfolio is post type archive and it’s “regular page”. Particular portfolio posts should be hidden. It’s possible to add PHP code based on conditional is_singular( ‘portfolio’ ) and send 404 error instead of broken HTML. You can use the filter pre_handle_404 for something like this. Other solution is to remove rewrite rules for these posts.

    You should ask theme developers to fix it.

    Plugin Support devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Noindex not working’ is closed to new replies.