- Поисковые системы
- Практика оптимизации
- Трафик для сайтов
- Монетизация сайтов
- Сайтостроение
- Социальный Маркетинг
- Общение профессионалов
- Биржа и продажа
- Финансовые объявления
- Работа на постоянной основе
- Сайты - покупка, продажа
- Соцсети: страницы, группы, приложения
- Сайты без доменов
- Трафик, тизерная и баннерная реклама
- Продажа, оценка, регистрация доменов
- Ссылки - обмен, покупка, продажа
- Программы и скрипты
- Размещение статей
- Инфопродукты
- Прочие цифровые товары
- Работа и услуги для вебмастера
- Оптимизация, продвижение и аудит
- Ведение рекламных кампаний
- Услуги в области SMM
- Программирование
- Администрирование серверов и сайтов
- Прокси, ВПН, анонимайзеры, IP
- Платное обучение, вебинары
- Регистрация в каталогах
- Копирайтинг, переводы
- Дизайн
- Usability: консультации и аудит
- Изготовление сайтов
- Наполнение сайтов
- Прочие услуги
- Не про работу
На сайте больше 1000 записей, как я могу быстро получить список 1000 урл адресов, столбиком?
schulz, гуглите mod_rewrite
Anonyk, можно, например, через какой-либо sitemap-плагин. Или написать простой скрипт, который выберет из БД id опубликованных постов и по ним постороит url'ы
На сайте больше 1000 записей, как я могу быстро получить список 1000 урл адресов, столбиком?
select post_slug from wp_posts
кажется)
На сайте больше 1000 записей, как я могу быстро получить список 1000 урл адресов, столбиком?
Anonyk, можно, например, через какой-либо sitemap-плагин. Или написать простой скрипт, который выберет из БД id опубликованных постов и по ним постороит url'ы
Просто наверно легче зайти в файл sitemap.xml - там ведь есть все урлы - копируйте куда угодно.
Вот если нет файла sitemap, то плагин для него в помощь, а потом и него же возьмете свои урлы
schulz, гуглите mod_rewrite
Спасибо, вам огромнейшее, но не помогло, почему-то не происходит редиректа через htaccess, причем позже нашел в админке хостинга - можно у них настроить такой редирект, но все равно не работает, видимо, потому что страницы физически нет?! Не понимаю почему.
Думал, что решится отключением плагина 404 to start, но не помогло тоже, заходит на эту - старую страницу - там 404 - никаких редиректов не происходит.
Есть может еще какие-либо мысли на этот счет или копать нужно именно в этом направлении и оно единственно верное?
На сайте больше 1000 записей, как я могу быстро получить список 1000 урл адресов, столбиком?
можно через файл шаблона вывести
подскажите пожалуйста, что за ерунда с плагином WP-NoExternalLinks
после подключения, вообще нет перехода по ссылке, href="" пропал из ссылки
в настойках не ставил галочку на против -
"Полностью удалить ссылки из постов."
"Превратить все ссылки в текст. "
Это так у всех, или только я чем-то отличился? Проверял только в хроме.
См https://ru.forums.wordpress.org/topic/%d0%b1%d0%b0%d0%b3-%d0%b2%d1%91%d1%80%d1%81%d1%82%d0%ba%d0%b8%d1%81%d0%ba%d1%80%d0%b8%d0%bf%d1%82%d0%be%d0%b2-%d0%b0%d0%b4%d0%bc%d0%b8%d0%bd%d0%ba%d0%b8?replies=3#post-199057:
Это баг в текущей версии Chrome.
В WordPress он тоже отслеживается, будет исправлен либо в 4.3.1 на следующей неделе, либо в одном из следующих обновлений Chrome.
В качестве временного решения можно открыть chrome://flags/#disable-slimming-paint в адресной строке и включить опцию «Disable slimming paint».
Подскажите пожалуйста как можно организовать на WP такое как пример http://возьми-кредит-онлайн.рф/ Когда чел переходит из поиска и попадает на одну страницу, и больше ничего не видит.
С помощью каких плагинов можно это организовать?
Помогите пожалуйста, ВСЁ обыскал нету ПРОСТО НЕТУ ни где:
Мне нужно удалить дату комментариев, дата и время комментариев:
Как я могу удалить тогда через PHPMyAdmin
comment_date
comment_date_gmt
Как их оба надо удалять? И как это сделать?
Вот код comments.php
/**
* The template for displaying Comments.
*
* The area of the page that contains both current comments
* and the comment form.
*
* @package A Piece Of Cake
* @since available since Release 1.0
*/
/*
* If the current post is protected by a password and
* the visitor has not yet entered the password we will
* return early without loading the comments.
*/
if ( post_password_required() ) {
return;
}
?>
<div id="comments" class="comments-area">
<?php // You can start editing here -- including this comment! ?>
<?php if ( have_comments() ) : ?>
<h2 class="comments-title">
<?php
printf( _nx( '', 'Комментарии:', get_comments_number(), 'comments title', 'apoc' ),
number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
?>
</h2>
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
<nav id="comment-nav-above" class="comment-navigation" role="navigation">
<h1 class="screen-reader-text"><?php _e( 'Comment navigation', 'apoc' ); ?></h1>
<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'apoc' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'apoc' ) ); ?></div>
</nav><!-- #comment-nav-above -->
<?php endif; // check for comment navigation ?>
<ol class="comment-list">
<?php
wp_list_comments( array(
'style' => 'ol',
'short_ping' => true,
) );
?>
</ol><!-- .comment-list -->
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
<nav id="comment-nav-below" class="comment-navigation" role="navigation">
<h1 class="screen-reader-text"><?php _e( 'Comment navigation', 'apoc' ); ?></h1>
<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'apoc' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'apoc' ) ); ?></div>
</nav><!-- #comment-nav-below -->
<?php endif; // check for comment navigation ?>
<?php endif; // have_comments() ?>
<?php
// If comments are closed and there are comments, let's leave a little note, shall we?
if ( ! comments_open() && '0' != get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
?>
<p class="no-comments"><?php _e( 'Comments are closed.', 'apoc' ); ?></p>
<?php endif; ?>
<?php comment_form(); ?>
</div><!-- #comments -->
А вот код functions.php
/**
* A Piece Of Cake functions and definitions
*
* @package A Piece Of Cake
* @since available since Release 1.0
*/
if ( ! function_exists( 'apoc_setup' ) ) :
/**
* Sets up theme defaults and registers support for various WordPress features.
*
* Note that this function is hooked into the after_setup_theme hook, which
* runs before the init hook. The init hook is too late for some features, such
* as indicating support for post thumbnails.
*/
function apoc_setup() {
/*
* Make theme available for translation.
* Translations can be filed in the /languages/ directory.
* If you're building a theme based on A Piece Of Cake, use a find and replace
* to change 'apoc' to the name of your theme in all the template files
*/
load_theme_textdomain( 'apoc', get_template_directory() . '/languages' );
// Add default posts and comments RSS feed links to head.
add_theme_support( 'automatic-feed-links' );
/*
* Enable support for Post Thumbnails on posts and pages.
*
* @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails
*/
//add_theme_support( 'post-thumbnails' );
// This theme uses wp_nav_menu() in one location.
register_nav_menus( array(
'primary' => __( 'Primary Menu', 'apoc' ),
) );
// Enable support for Post Formats.
add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link' ) );
// Setup the WordPress core custom background feature.
add_theme_support( 'custom-background', apply_filters( 'apoc_custom_background_args', array(
'default-color' => 'ffffff',
'default-image' => '',
) ) );
// Enable support for HTML5 markup.
add_theme_support( 'html5', array(
'comment-list',
'search-form',
'comment-form',
) );
add_theme_support( 'post-thumbnails' );
// * Add Custom Featured Image size
if ( function_exists( 'add_image_size' ) ) {
add_image_size( 'apoc-thumbnail', 940, 400, true );
}
/**
* Set the content width based on the theme's design and stylesheet.
*/
if ( ! isset( $content_width ) ) {
global $content_width;
$content_width = 640; /* pixels */
}
}
endif; // apoc_setup
add_action( 'after_setup_theme', 'apoc_setup' );
/**
* Register widgetized area and update sidebar with default widgets.
*/
function apoc_widgets_init() {
register_sidebar( array(
'name' => __( 'Sidebar', 'apoc' ),
'id' => 'apoc-main-sidebar',
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<h1 class="widget-title">',
'after_title' => '</h1>',
) );
/**
* Social Widget
*/
require get_template_directory() . '/inc/apoc-social-widget.php';
register_widget( 'Apoc_Social_Widget' );
}
add_action( 'widgets_init', 'apoc_widgets_init' );
/**
* Enqueue scripts and styles.
*/
function apoc_scripts() {
// Use minified libraries if SCRIPT_DEBUG is turned off
$suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
wp_enqueue_style( 'apoc-style', get_template_directory_uri( __FILE__ ) . '/css/style.css' );
wp_enqueue_style( 'apoc-font-awesome', get_template_directory_uri( __FILE__ ) . '/css/font-awesome' . $suffix . '.css' );
wp_enqueue_script( 'apoc-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true );
wp_enqueue_script( 'apoc-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true );
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
}
add_action( 'wp_enqueue_scripts', 'apoc_scripts' );
/**
* Enqueue Google Fonts
*/
function apoc_google_fonts() {
if ( ! is_admin() ) {
$protocol = is_ssl() ? 'https' : 'http';
wp_register_style( 'apoc-comfortaa', $protocol .'://fonts.googleapis.com/css?family=Comfortaa&subset=latin,cyrillic-ext', array(), false, 'all' );
wp_enqueue_style( 'apoc-comfortaa' );
}
}
add_action( 'wp_enqueue_scripts', 'apoc_google_fonts' );
/**
* Add Editor Styles
*/
function apoc_add_editor_styles() {
add_editor_style( 'custom-editor-style.css' );
}
add_action( 'init', 'apoc_add_editor_styles' );
/**
* Add Responsive Menu scripts
*/
function apoc_responsive_menu() {
wp_enqueue_script(
'apoc_responsive_menu',
get_stylesheet_directory_uri() . '/js/responsive-menu.js',
array( 'jquery' )
);
}
add_action( 'wp_enqueue_scripts', 'apoc_responsive_menu' );
/**
* Implement the Custom Header feature.
*/
require get_template_directory() . '/inc/custom-header.php';
/**
* Custom template tags for this theme.
*/
require get_template_directory() . '/inc/template-tags.php';
/**
* Custom functions that act independently of the theme templates.
*/
require get_template_directory() . '/inc/extras.php';
/**
* Customizer additions.
*/
require get_template_directory() . '/inc/customizer.php';
/**
* Load Jetpack compatibility file.
*/
require get_template_directory() . '/inc/jetpack.php';
schulz, гуглите mod_rewrite
Спасибо еще раз, в итоге, я не совсем понял, что именно помогло - просто сработал код в htaccess или же подтолкнуло то, что я на фтп создал папку конкретно ведущую на ту страницу, которой больше нет.
Т.е. физически залил просто в корень папку /2010/ -> в нее /02/ - в нее старое имя поста.
Редирект срабатывает по правилу, которое прописано в htaccess.
Подскажите пожалуйста как можно организовать на WP такое как пример http://возьми-кредит-онлайн.рф/ Когда чел переходит из поиска и попадает на одну страницу, и больше ничего не видит.
С помощью каких плагинов можно это организовать?
А зачем это делать на WP, когда это статическая страница с iframe.
Загляните в код страницы, наверно, станет понятнее откуда ноги растут.