category noindex

#27808
  • Resolved trkrtrn
    Rank Math free

    Hi, i am coming from FB group.
    I create a category with index option but on the page source it shows noindex.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    It is very strange that this option does not seem to work on your site. Could you please add the following code snippet on your theme’s functions.php file via FTP and let me know if this fixes the issue?

    /**
     * Allows filtering of the robots meta data.
     *
     * @param array $robots The meta robots directives.
     */
    add_filter( 'rank_math/frontend/robots', function( $robots ) {
    	if(is_category('1170')){
    		$robots['index'] = 'index';
    		$robots['follow'] = 'follow';
    	}
    	return $robots;
    });

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Hello Michael,
    With the code you recommend to add, still same “<meta name=”robots” content=”follow,noindex”/>”

    Hello,

    Thanks for getting back to us.

    I have raised this problem with our dev team and we will be getting back to you in a short while.

    We appreciate your patience. Thank you.

    Todd
    Rank Math free

    Hi Turker,

    I am so sorry but the username/password combination you gave us doesn’t seem to work.

    Can you please add that again?

    Also, have you gone through the conflict check already to ensure there isn’t something else on your website causing this?

    To determine that, can you please follow this troubleshooting guide?
    https://rankmath.com/kb/check-plugin-conflicts/

    Only the site admin would know and your users won’t be affected by this troubleshooting.

    Hello Todd,
    Thanks for your reply. Now you can try again with the same login details.

    Todd
    Rank Math free

    Hello Turker,

    It is showing a noindex tag because there are no posts or listings inside that category.

    And, in your Global settings, you have chosen the option to noindex empty archives.

    You can either add at least one listing to that category or disable this option :
    null

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Support is amazing! Thank you Todd

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/?rate=5#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

The ticket ‘category noindex’ is closed to new replies.