public function excludeFromSearchCheckbox()
    {
        global $post;

        //Only show if not set to not index
        if (!$this->shouldIndexPost(true, $post, false)) {
            return false;
        }

        if (is_object($post) && isset($post->ID)) {
            $checked = checked(true, get_post_meta($post->ID, 'exclude_from_search', true), false);
            echo '
            <div class="misc-pub-section">
                <label><input type="checkbox" name="algolia-exclude-from-search" value="true" ' . $checked . '> ' . __('Exclude from search', 'municipio') . '</label>
            </div>
            ';
        }
    }