Support » Plugin: Yoast SEO » Incompatibility wit core woocommerce functions

  • Resolved digestsua

    (@digestsua)


    Hello,
    I have found a very strange issue with your plugin
    I need to show some specific information based on category on a single product page created with Elementor.
    It info displays thru shortcodes – I can show any additional information for a product with small snippet of a code.
    BUT.
    When I put a piece of code into functions.php of a theme, e.g.:

    add_shortcode('test', 'test_func');
    function test_func () {
    global $product;
    $product = wc_get_product( get_the_id() );
    return $product->get_name();
    }

    Elementor editor returns a server error (500).
    Site is almost empty – only Astra theme, Elementor and Yoast.

    The code is too simple – I used it and similar snippets many times.

    When I disabled Yoast Seo Plugin code works like a charm.
    So – I see some incompatibilities of Yoast SEO plugin with core woocommerce functions.

    Any suggestions?

    • This topic was modified 3 years, 3 months ago by digestsua.
    • This topic was modified 3 years, 3 months ago by digestsua.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Suwash

    (@suascat_wp)

    @digestsua

    It looks like you’re reporting a possible bug for Yoast SEO, so we’d appreciate it if you can submit the information you’ve sent us as a bug report directly to our development team at our GitHub repository where we track issues.

    This will allow them to look into this further and respond to you directly with any further questions. You can also follow the progress of the report by enabling GitHub notifications.

    We have more details about the information we need for the bug report here: https://yoast.com/help/how-to-write-a-good-bug-report/.

    Please let us know if you have any other questions.

    Plugin Support devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Incompatibility wit core woocommerce functions’ is closed to new replies.