On option is to use the get_item_tags
method in order to walk trough the array and search for the first isPermaLink
:
$guid = $item->get_item_tags('','guid');
$arrIt = new RecursiveIteratorIterator(new RecursiveArrayIterator($guid[0]));
foreach ($arrIt as $sub) {
$subArray = $arrIt->getSubIterator();
if (isset($subArray['isPermaLink']) && $subArray['isPermaLink'] == "false")
{$isPermalink = false ;break;}
}
This works, but it's not satisfying, bacause some RSS provider sets isPermaLink
to false
even the link works correctly for a long time.