Skip to:
Content
Pages
Categories
Search
Top
Bottom

Is BBPress compatible with the Shortlinks jetpack?


  • delaitec
    Participant

    @delaitec

    Hello. I hope you are well!

    When using jetpack link shortener feature “wp.me”, this feature does not work with jetpack link sharer (whatsapp, facebook, etc)

    This was solved with the plugin: “Shortlinks for Jetpack sharing buttons” by Jeremy Herve.
    See here:
    https://br.wordpress.org/plugins/jetpack-shortlinks-for-sharing-buttons/

    However, the plugin only works natively on standard WordPress posts and pages, on custom post types like Woocommerce, it does not work.

    Here’s a way to fix this:
    https://jetpack.com/support/wp-me-shortlinks/
    As the post type for woocommerce products is “product”, the code looked like this:

    add_action( 'init', function () {
    add_post_type_support( 'product', 'shortlinks' );
    });

    It is now possible to share woocommerce products with shortened links using jetpack share buttons.

    I would like to know if BBPress is compatible with Jetpack’s sharing feature, and what type of post should I use so that shares can be made using the link shortener as I did above in Woocommerce.

    Grateful.

Viewing 1 replies (of 1 total)

  • Robin W
    Moderator

    @robin-w

    No idea of it is compatible, but bbpress has custom post types of reply, topic and forum, use these calls and see if they work

    add_post_type_support( bbp_get_reply_post_type(), 'shortlinks' );
    add_post_type_support( bbp_get_topic_post_type(), 'shortlinks' );
    add_post_type_support( bbp_get_forum_post_type(), 'shortlinks' );
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar