Good day, dear coding gurus.
I tried to implement the task myself, but my knowledge is clearly not enough. not a programmer :-(
In a single.php Wordpress template, I wanted to implement the following:
if the specific page is set to "arbitrary field" customcategory = Некая категория and customlink = exsample.ru\nekayakegoriya\ , then pick them up and output, and if they are not, then output the code of standard bread crumbs.
<span class="archive-title"> <?php $customcat = get_post_meta($post->ID, "customcategory", true); if ($customcat) '<div class="block-crumbs" prefix:v="http://rdf.data-vocabulary.org/#"><span typeof="v:Breadcrumb"><a href="https://exsample.ru/" rel="v:url" property="v:title">Главная</a></span> » <span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" href="https://'.$customlink.'">'.$customcategory.'</a></span> » <span class="current-crumbs"><?php the_title(); ?></span></div>' else crumbs_breadcrumbs_new(); ?> </span> Tell me, please, how to register the command correctly.