how to get the value into a variable?
-
When this code runs it prints a word called “MyCategory”
<?php the_taxonomies(array('before'=>'<span class="categories" style="font-size:16px;font-weight:bold;">','sep'=>'</span><span class="tags">','after'=>'</span>')); ?>
I want to get this word “MyCategory” in to a variable called $my_variable
How to do this?I tried this way. But its not successful.
<?php $my_variable = the_taxonomies(array(‘before’=>'<span class=”categories” style=”font-size:16px;font-weight:bold;”>’,’sep’=>'</span><span class=”tags”>’,’after’=>'</span>’)); ?>
<?php echo $my_variable ?> // NOT success
Need help!!!
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘how to get the value into a variable?’ is closed to new replies.