• Resolved Revived

    (@revived)


    1) My site used a custom post type of “books” so I found the following which I added to my child functions.php file (is the correct implementation?)

    function jeherve_add_cpt_sitemaps( $post_types ) {
        $post_types[] = 'books';
        return $post_types;
    }
    add_filter( 'jetpack_sitemap_post_types', 'jeherve_add_cpt_sitemaps' );

    2) When I navigate to sitemap.xml, it’s not directed to the https version (I’m using Really Simple SSL and my assumption was, during setup, that everything should now redirect to the https version).

    3) Do the sitemap file(s) automatically update periodically?

Viewing 1 replies (of 1 total)
  • @revived

    1) My site used a custom post type of “books” so I found the following which I added to my child functions.php file (is the correct implementation?)

    By default, Jetpack Sitemaps supports Posts and Pages, but you can add support for Jetpack Custom Content Types. There is an example you can check out here:

    https://developer.jetpack.com/2016/01/28/sitemaps-add-custom-post-type-support/

    Your example seems to be OK.

    2) When I navigate to sitemap.xml, it’s not directed to the https version (I’m using Really Simple SSL and my assumption was, during setup, that everything should now redirect to the https version).

    If you’re having trouble implementing HTTPS in a satisfactory way, please try reaching out to your host or the developers of the Really Simple SSL plugin:

    https://wordpress.org/support/plugin/really-simple-ssl

    They should be able to assist you with this.

    3) Do the sitemap file(s) automatically update periodically?

    Yes, the sitemap should be periodically updated to reflect the new content on your site.

    We hope that helps, and let us know if you have any more questions!

Viewing 1 replies (of 1 total)

The topic ‘Just switched site to https (questions)’ is closed to new replies.