There is the following code that works correctly, that is, the title of the post is displayed and after the comma its category name on the page in the header:
<?php foreach (HTML_SOBI::getMyCategories($mySobi) as $category) { echo $category['name'];}?></h1>
How can I display a post with the same title, category ['name'] format in OpenGraph?
The following working code but no category name:
<meta property="og:title" content="'.$mySobi->title.'" />
How can I correctly add the category name after the title, separated by commas? This part of code: <?php foreach (HTML_SOBI::getMyCategories($mySobi) as $category) { echo $category['name'];}?>