Как удалить из кода link rel=’prev’?

Здравствуйте.
Подскажите что и где нужно удалить чтобы в исходном коде полной новости пропали строки:
«<link rel=’prev’ title=’Ривина. Ривина уход. Размножение Ривина. Ривина фото. Ривина пересадка. Вредители Ривина’ href=’http://site.ru/photo/326-rovnina.html’ />
<link rel=’next’ title=’Рео. Рео уход. Размножение Рео. Рео фото. Рео пересадка. Вредители Рео’ href=’http://site.ru/photo /328-breon.html’ />
<link rel=’shortlink’ href=’http://site.ru/?p=327′ />»

Удалял в single.php строки:

                    /* Display navigation to next/previous posts when applicable */
                    if (theme_get_option('theme_top_single_navigation')) {
                        theme_page_navigation(
                            array(
                                'next_link' => theme_get_previous_post_link('&laquo; %link'),
                                'prev_link' => theme_get_next_post_link('%link &raquo;')
                            )
                        );
                    }
/* Display navigation to next/previous posts when applicable */
                    if (theme_get_option('theme_bottom_single_navigation')) {
                        theme_page_navigation(
                            array(
                                'next_link' => theme_get_previous_post_link('&laquo; %link'),
                                'prev_link' => theme_get_next_post_link('%link &raquo;')
                            )
                        );
                    }

Но не помогло, все равно в коде остались строки….

Я так понимаю этот код в шапке, значит удаление из single.php не поможет. Необходимо использовать remove_action(‘wp_head’, ”) почитайте тут http://wordpress.org/support/topic/remove-post-relational-links-from-wp_head

Anonymous
Отправить
Ответ на: