Run do_shortcode() inside variable, not working…
-
So I’m trying to make a variable contain the output of a shortcode and output it to a text file like so:
$login_logo_url = do_shortcode( $jf_options['loginlogolk'] ); file_put_contents( $file, $login_logo_url);But when I look at the text file it’s just the shortcode itself. I tested the shortcode in a page and it’s working. What am I doing wrong?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Run do_shortcode() inside variable, not working…’ is closed to new replies.