Студент - Репутация: 4
- Webmoney BL:
? | есть кусок кода:
PHP код: 262 строка $slug = $post_type_obj->rewrite;
263 строка $breadcrumbs_html .= sprintf($link, get_post_type_archive_link( $post_type ), $post_type_obj->labels->singular_name);
265 строка if ($showCurrent == 1) {
266 строка $breadcrumbs_html .= $delimiter . $before . get_the_title() . $after;
помогите дополнить как суппорт ответил, делал так и эдак, не получается.
Вы можете редактировать wp-content/themes/dt-the7/inc/helpers/post-navigation.php строка 263 $breadcrumbs_html .= sprintf($link, get_post_type_archive_link( $post_type ), $post_type_obj->labels->singular_name); И добавить проверку: если это пост team if( get_post_type() == ‘dt_team’) то “get_post_type_archive_link( $post_type )” нужно заменить на необходимую страницу. Нет, у вас из условия if( get_post_type() == ‘dt_team’) Как правильно ссылку прописать? |