I am trying to use show post_class() within $output loop.Though i tried it different way i failed.

Here is my codes

$output .= '<div ';
$output .= '" id=' . get_the_ID() . '>';

Read more here: How can i show post_class() within output loop?


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: