Move some loop data outside the loop…possible ?
-
Hi,
in my homepage i have 2 loop, the first one retrives a random post and the secon retrive 5 random post from an other category. I want to move some informations from inside the first loop to outside and be able to reuse that in sidebar but i can’t….
Inside the loop i placed this line:
<php $title = ‘Title: ‘.the_title(); ?>
And outside:
<?php echo $title; ?>
The result is that:
inside the loop at runtime i get the output of “the_title()” function and in the other place where i placed the “echo $title” statement i get only “Title:”What is the way for do that ?
Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Move some loop data outside the loop…possible ?’ is closed to new replies.