• mstoetzel

    (@martinstoetzel)


    Hello, and thanks for your great work!

    I have a small problem, which im am unable to fix – maybe with your help:

    I am trying to call the Shortcode [kkstarratings] from within another plugin.
    The reason is that I am using a Recipe schema plugin, and everything is displaying nicely including CSS / Styling.

    My problem: I can load a third-party Shortcode [printfriendly] from within the recipe Schema plugin, but it fails to load the [kkstarratings] Shortcode. I already tried to change the loading order of plugins, but no effect.

    The following code (inside the Schema.php file) gives me “kkstarrating shortcode does not exist”, but it correctly loads the Printfriendly button/shortcode:

    
    if ( shortcode_exists( 'kkstarratings' ) ) {
        $sc_build .= do_shortcode('[kkstarratings]'); 
    }
    else { 				
        $sc_build .= 'kkstarrating shortcode does not exist';
    }
    
    if ( shortcode_exists( 'printfriendly' ) ) {
        $sc_build .= do_shortcode('[printfriendly]'); 
    }
    else {
        $sc_build .= 'printfriendly shortcode does not exist';
    }
    

    Thanks for your help, very much appreciated!

    • This topic was modified 5 years, 9 months ago by mstoetzel.
    • This topic was modified 5 years, 9 months ago by mstoetzel.

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

  • The topic ‘Shortcode not registered?’ is closed to new replies.