Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter duckian

    (@duckian)

    With your (modified) snippet in functions.php…

    There is one such noindex line in the export:
    noindex-author-noposts-wpseo = 1

    (and just for the sake of it, without the snippet: same single result)

    (from OP)
    This is an archive page
    https://thamesvalleybrick.com/product-category/face-brick/

    and so are these pages:
    /product-category/abc
    /product-colour/xyz
    /gallery-category/pqr

    Search & Filter uses the same archive page (php) to output the (filtered) results.

    Is Yoast thinking these pages are search result pages?

    Thanks.

    Thread Starter duckian

    (@duckian)

    I added your snippet to functions.php, but no luck ??

    BUT… if I modify it to:
    if ( is_search() || is_404() || is_archive() ) {

    Then the robots noindex line does not show up.
    (Check source code)

    Would you like to comment on that?
    I know it’s a hack, but would like to see a proper implementation.

    Thread Starter duckian

    (@duckian)

    Yes this is the correct plugin. Actually I bought the Pro version.

    In the archive php file(s), I have this line to output the filter dropdowns:
    echo do_shortcode (‘[searchandfilter id=”xxxx”]’);
    (id is the only argument, the filter is set up from the backend and assigned an id.)

    If I comment out the above line, logically there is no filter function on the archive page(s), but the noindex line remains visible.

    OTOH, if I deactivate Yoast but keep S&F activated, the following do not show up in source:
    <meta name=”description” … />
    <meta name=”robots” content=”noindex,follow”/>
    <meta property=”og:___” … />
    <meta name=”twitter:___” … />

    Also I want to add that if I switch to another SEO plugin such as All in One SEO Pack, the “noindex” line does NOT show up.

    We want to keep Yoast as the SEO solution as we spent too many hours on SEO.

    • This reply was modified 6 years ago by duckian.
    Thread Starter duckian

    (@duckian)

    So I identified the plugin (Search & Filter) causing the following line, after following the conflict check:
    <meta name=”robots” content=”noindex,follow”/> (*)

    I contacted the S&F plugin author. He said after more testing, (*) comes out when Yoast and his plugin are BOTH activated.
    So if one of two plugins is activated, there is no (*) line.

    Could that mean Yoast may be part of the issue?

    Thread Starter duckian

    (@duckian)

    I go into Products>Categories, edit a catogory, Yoast SEO> Settings > Allow search engines to show this Category in search results?
    The dropdown value is set to:
    Yes (current default for Product categories)
    Other options are: Yes, No.

    The same applies to Portfolio>Categories, i.e. set to Yes.

    Please advise.

    Thread Starter duckian

    (@duckian)

    Tried your suggestions,
    no javascript errors;
    hosting doesn’t offer error log.

    Also tried things at https://docs.wordfence.com/en/My_scans_aren’t_starting._What_would_cause_that%3F
    but no luck.

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)