• Resolved poweric

    (@poweric)


    The plugin is still functional and useful. However, I received this deprecated warning on PHP 8.3.

    Deprecated: Creation of dynamic property Denra\Plugins\Framework::$dir_classes is deprecated in wp-content/plugins/do-shortcodes-for-rank-math-seo/denra-plugins/classes/BasicExtra.php?on line?42

    Deprecated: Creation of dynamic property Denra\Plugins\DoShortcodesRankMathSEO::$dir_classes is deprecated in?wp-content/plugins/do-shortcodes-for-rank-math-seo/denra-plugins/classes/BasicExtra.php?on line?42

    Deprecated: Calling static trait method RankMath\Helpers\Choices::choices_rich_snippet_types is deprecated, it should only be called on a class using the trait in?wp-content/plugins/do-shortcodes-for-rank-math-seo/plugin/classes/DoShortcodesRankMathSEO.php?on line?62


    I hope you can update the plugin soon. Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Denra.com

    (@denra)

    Hi @poweric,

    There is a new version released 1.2.1. Please test if everything works correctly now.

    Thank you for using our plugin!

    Thread Starter poweric

    (@poweric)

    Hey @denra, thanks for the speedy update. Everything’s working perfectly now, no warnings at all. Thanks again!

    Thread Starter poweric

    (@poweric)

    Hello again @denra, I’m not sure if this is included in the plugin or not. The plugin does convert [shortcode] in the title and description successfully. However, when using [shortcode] as the meta title on RankMath and selecting the option to use the SEO Title in the HTML sitemap, it should convert the [shortcode] to the title. Unfortunately, in this case, the shortcode is not being converted and appears as plain [shortcode] on HTML sitemap.

    Steps to reproduce the behavior:
    Use a shortcode on a single post title in RankMath, enable the HTML sitemap in the Sitemap Settings. Choose “SEO Title” as the item titles.

    Maybe it can be added or resolved in the next release. Thank you.

    Plugin Author Denra.com

    (@denra)

    Hi @poweric,

    The HTML sitemap is not automatically supported by our plugin but you can support it yourself until we have a new version.

    WordPress applies the shortcodes in post’s and page’s content by default. If your theme does not apply shortcodes in other places automatically you may need to add additional code to your child theme’s functions.php to hook into those functions where you need to see the shortcodes applied.
    For example:
    // For the titles.
    add_filter('wp_title', 'do_shortcode', 10);
    add_filter('the_title', 'do_shortcode', 10);
    // For the menu.
    add_filter('walker_nav_menu_start_el', 'do_shortcode', 10);
    etc.
    In your case you should find the hook which is used to display the titles on the HTML sitemap is displayed and add some source code as listed above related to it. Please try adding the code below to your child theme’s functions.php and let me know if it works:
    apply_filters('esc_html', 'do_shortcode', 10);
    If yes, it will be added in the next update for everyone soon, if possible.

    Regards,
    Denra.com

    Plugin Author Denra.com

    (@denra)

    Hi again,

    I’ve tested it and it works. Please make sure that you have checked Post/Page Content.

    Please let me know if it works.

    Thread Starter poweric

    (@poweric)

    Works like a charm. Thank you again @denra ????

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Warning: Deprecated in PHP 8.3.’ is closed to new replies.