SmartCrawl Meta on Category

I’m using 7 theme and it has a Portfolio plugin, I need to mark some specific categories to not index and not follow, but SmartCrawl meta does not show for this portfolio category. Can you help me?

  • Nithin
    • Support Wizard

    Hi MatrixMedia,

    I tested SmartCrawl in my test system with custom post types, and it does work fine without any issue. On further troubleshooting the code in your child themes functions.php file is what's causing the issue:

    * Disabilito archivio pubblico categorie custom post type
    function mtx_modify_taxonomy_posttype() {
    // get the arguments of the already-registered taxonomy
    $category_args = get_taxonomy( 'dt_portfolio_category' ); // returns an object

    // make changes to the args
    // in this example there are three changes
    // again, note that it's an object
    $category_args->public = false;
    // $category_args->query_var = false;
    $category_args->rewrite['with_front'] = false;

    // re-register the taxonomy
    register_taxonomy( 'dt_portfolio_category', 'dt_portfolio', (array) $category_args );
    // hook it up to 11 so that it overrides the original register_taxonomy function
    add_action( 'init', 'mtx_modify_taxonomy_posttype', 11 );

    Once I commented the above code, SmartCrawl meta was listing out correctly:

    The above code is what's causing the conflict. I can confirm the plugin does work fine with any Custom Post Type categories without any issue.

    I have reverted the changes done as I wasn't sure for what the code is added. Please do check, and let us know if you have any further query.

    Kind Regards,


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.