kit-kater
Ответы в темах
-
Форум: Проблемы и решения
Тема: https вход в админкуочень долго грузит
а потом ошибка, хром пишет: ERR_TOO_MANY_REDIRECTS
ну вот ссылка https://effect-m.com/wp-admin/Форум: Проблемы и решения
Тема: https вход в админкуконечно
siteurl и home с httpsФорум: Проблемы и решения
Тема: https вход в админкуспасибо, но не получилось
Форум: Проблемы и решения
Тема: Админка работает не корректноДело не в переносе.
Попробовала заново, чистый дистрибутив WP поставить и таблицы с бд удалила — с админкой тоже самое.Форум: Проблемы и решения
Тема: Админка работает не корректноПереносила как всегда. Загрузила файлы, импортировала базу данных, в конфигурационном файле все что нужно поменяла + SQL запрос на смену домена.
Форум: Плагины
Тема: Goods catalog хлебные крошкиВот код файла хлебных крошек.
Плиз, хелп.<?php /** * Breadcrumbs */ /** * Generate chains of categories */ function categories_chain() { $output = ''; $category = 'goods_category'; /** * If the current page is product page, use get_the_terms() to get ID */ if (is_single()) { global $post; $product_terms = get_the_terms($post->ID, $category); if ($product_terms) { // fix invalid argument supplied for foreach() if there is no category for the product foreach ($product_terms as $p) { $category_id = $p->term_id; } } } else { /** * If current page is category page, use get_queried_object() to get ID */ $category_id = get_queried_object()->term_id; } $ancestors_reverse = get_ancestors( $category_id, $category ); $ancestors = array_reverse( $ancestors_reverse ); //var_dump($ancestors); foreach ( $ancestors as $a ) { $ancestor = get_term( $a, $category ); $ancestor_name = $ancestor->name; $ancestor_link = '<a href="' . get_term_link( $ancestor->slug, $category ) . '">' . $ancestor_name . '</a> > '; $output .= $ancestor_link; } return $output; } /** * Generate and return full breadcrumbs path * * @since 0.9.0 * * @param int $id * */ function gc_breadcrumbs($id = null) { $output = ''; $output .= '<a href=" ' . home_url() . ' ">' . __('Home', 'gcat') . '</a> > '; /** * if current page is not the Catalog main page, show link and separator */ if (is_post_type_archive('goods')) { $output .= __('Catalog', 'gcat'); } else { $output .= '<a href="' . get_post_type_archive_link('goods') . '">' . __('Catalog', 'gcat') . '</a> > '; } /** * Links on Product page */ if (is_single()) { global $post; $output .= categories_chain(); $output .= get_the_term_list ($post->ID, 'goods_category', '', ', ', ' > '); $output .= get_the_title(); } /** * Links on Category page */ if (is_tax('goods_category')) { $output .= categories_chain(); /** * Return term title * * @param string $prefix Text to output before the title * @param boolean $display Display the title (TRUE), or return the title to be used in PHP (FALSE) * * @link https://codex.wordpress.org/Function_Reference/single_tag_title */ $output .= single_tag_title('', false); } /** * Links on Tag page */ if (is_tax('goods_tag')) { $output .= single_tag_title('', false); // return the tag title without the link } return $output; } /** * Show breadcrumbs * * @since 0.9.0 * * @param string $before Text to output before chain * @param string $after Text to output after chain * */ function show_gc_breadcrumbs ( $before = '<div class="breadcrumbs">', $after = '</div>' ) { $output = ''; if (!is_search() || !is_404()) { global $post; if ($post != null) { $output .= $before . gc_breadcrumbs($post->post_parent) . $after; } else { $output .= $before . gc_breadcrumbs() . $after; } } else { $output .= ' '; } print $output; }
Форум: Проблемы и решения
Тема: Убрать мета тегиНа других страницах запрета нет?
В админке зайдите в Настройки > Чтение
там есть настройка «Видимость для поисковых систем» если есть галочка — уберите и сохраните.
Если нет — то возможно в файле robots.txt в корневой папке сайта эти страницы запрещены для индексации.
Какой-нибудь СЕО-плагин установлен на сайте?Форум: Проблемы и решения
Тема: Помогите отредактировать текстЕсли через визуальный редактор — энтер должен переносить на новою строку.
Если нет — отключите визуальные редактор и после каждой строки вставте тег
<br />
Форум: Проблемы и решения
Тема: Скорость загрузки сайтаможете посоветовать плагин?
Форум: Проблемы и решения
Тема: Скорость загрузки сайтаДобавила, стало 77, но нужно 80. Помогите еще увеличить скорости, плиииз.
Форум: Проблемы и решения
Тема: Индексация сайта на WordPresshumansee, да, в гугле все норм) а от в яндексе…
пока оставила все как естьФорум: Проблемы и решения
Тема: Контактная форма Contact form 7никакая из них не работает
Форум: Проблемы и решения
Тема: Отображение записей по меткамСпасибо)
Форум: Проблемы и решения
Тема: Отображение записей по меткамСделала)
Но почему то не отображаются коментарии.
Вот код мого файла tag.php, все вроде норм должно быть..<?php /* Template Name: tag */ ?> <?php get_header(); ?> <div class="page"><h4 class="page-title">Вы находитесь на:<span class="title56"><?php the_title(); ?></span> </h4> <div id="left-sidebar"><?php dynamic_sidebar( 'Left' ); ?></div> <div class="content-page-right"> <?php if (have_posts()): while (have_posts()): the_post(); ?> <?php the_content(''); ?> <div id="entry"> <div class="comments-template"> <?php comments_template(); ?> </div></div> <?php endwhile; endif; ?> </div> <div class="clear"></div> <?php get_footer(); ?>
Форум: Проблемы и решения
Тема: Коментарии на сайтеСама тему пишу) поэтому и «детские» проблемы)