Support » Plugin: WP Telegram (Auto Post and Notifications) » Rank Math vs WP Telegram (Auto Post and Notifications)

  • Resolved Michael

    (@michaelukr)


    Rank Math dont save setting when WP Telegram (Auto Post and Notifications) is active.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Manzoor Wani

    (@manzoorwanijk)

    Hello, sorry for the delayed response. Strangely, I didn’t get any email for this topic.

    I’ll check it and get back to you.

    Plugin Author Manzoor Wani

    (@manzoorwanijk)

    I checked the settings page of that plugin, it works fine for me. If you can give more details of the issue, that would be great. Also, you may contact the plugin author as it’s the problem with their plugin as they use the same dependent library used by WP Telegram.

    Rank Math

    (@rankmath)

    Hello @manzoorwanijk

    Just wanted to show one of the ways your plugin is affecting the pages oF Rank Math which needs to be fixed on your end. The plugin should load its files only on the pages where it is required.

    Before installing your plugin:
    https://i.rankmath.com/01Wq4U (the styling of the buttons as we are using CMB2)

    After installing your plugin:
    https://i.rankmath.com/qK1IcP

    It this could be sorted on your end, I’m sure there will remain no conflicts between two plugins and we can announce the same on our website:
    https://rankmath.com/compatibility/

    Looking forward to your cooperation. Thank you.

    Plugin Author Manzoor Wani

    (@manzoorwanijk)

    The plugin should load its files only on the pages where it is required.

    CMB2 does not work that way. It always loads the latest version whichever plugin has bundled it.
    The problem is actually the Switch field type that is not a part of the core CMB2. I guess you have used a custom field type of CMB2 and named it “switch”.
    I use this library
    https://github.com/themevan/CMB2-Switch-Button

    Anyways, we are moving away from CMB2 towards React. So, it will be removed from the plugin soon.

    Rank Math

    (@rankmath)

    Hello @manzoorwanijk

    We are using cmb2_render_switch hook to change the switch UI and running this hook only where the CMB2 switch field from Rank Math is used.

    To fix the issue, you will have to initialize the CMB2_Switch_Button class on the WP Telegram related pages only.

    After checking the code of your plugin, you can add a condition before initializing this class in wptelegram/admin/class-wptelegram-admin.php on line 148
    Replace
    new CMB2_Switch_Button();
    with

    if ( WPTG()->helpers->is_settings_page() ) {
        new CMB2_Switch_Button();
    }

    That should fix the issue.

    If you happen to add it, please submit your plugin on our website so we can add it to our recommended plugins list:
    https://rankmath.com/contact/
    https://rankmath.com/compatibility/

    Thank you.

    Plugin Author Manzoor Wani

    (@manzoorwanijk)

    Hello @rankmath

    I have pushed a fix for the plugin by renaming the field because I need it on Post Edit page as well.

    @michaelukr you may update the plugin now 🙂

    Rank Math

    (@rankmath)

    Hello @manzoorwanijk

    Thank you for your swift response.

    Can you please submit your plugin here so we can add it on our website?
    https://rankmath.com/contact/

    Appreciate your cooperation.

    Plugin Author Manzoor Wani

    (@manzoorwanijk)

    You are welcome.

    Sure, I will submit.

    Thanks 🙂

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.