• Resolved dezaprobator

    (@dezaprobator)


    Hi,
    I have this plugin and i have own plugin to generate actual Year by shortcode in post/page title. PLugin works fine but only in title not in ALL In ONE SEO TITLE.
    This is what i have:
    https://prntscr.com/j39fj3
    https://prntscr.com/j39g99
    My plugin code:

    <?php
    /*
    Plugin Name: 360px: Year
    Version: 1
    Author: 360px.pl
    Author URI: https://360px.pl/
    */

    function fn_360px_year() {
    return date(“Y”);
    }
    add_shortcode( ‘360px_year’, ‘fn_360px_year’ );
    add_filter(‘the_title’, ‘do_shortcode’);
    add_filter(‘aioseop_title’, ‘do_shortcode’);
    add_filter(‘wp_title’, ‘do_shortcode’);
    add_filter( ‘aioseop_title_single’, ‘do_shortcode’, 10, 1 );
    add_filter( ‘aioseop_title_page’, ‘do_shortcode’, 10, 1 );
    ?>

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

  • The topic ‘Add Filter do_shortcode in title’ is closed to new replies.