• Resolved jalal alizadeh

    (@dashjalal)


    Hello.
    How can i use of All in one seo pack without wp_head() function ?
    A few years ago i used of this code for a theme :

    <?php
          $aiosp = new All_in_One_SEO_Pack();
          $aiosp->wp_head();
    ?>

    But now i get an Fatal error. I think that code not working.
    What code can I use instead of the old code?
    Thanks a lot.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author arnaudbroes

    (@arnaudbroes)

    Hey @dashjalal,

    That no longer works in the 4.x version of All in One SEO, which is a complete rewrite compared to the old 3.x version.

    I think you can still manage to do this using the code snippet below. I didn’t test this out myself so definitely let me know if this doesn’t work for you –

    if ( function_exists( 'aioseo' ) ) {
    	aioseo()->head->output();
    }
    Thread Starter jalal alizadeh

    (@dashjalal)

    Hello.
    Thanks a lot.
    Yes it worked.
    Many thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Use All in one seo pack without wordpress wp_head() function’ is closed to new replies.