There are divs on the page. You need to know their classes or ID and put it into a variable. While trying so. What I need, does not display.

<?php $postclass = post_class(); echo $postclass; var_dump($postlass); ?> 

  • It is not clear why we need such functionality. Specify the task. What do you want to end up with? Why put them in a variable? - SlyDeath
  • I wanted to add a block to the page, but that it was not in a container that is above the footer. I decided this by creating a widget and that's it. - Dima

0