Керування файлами cookie, які використовуються для реклами, таких як персоналізація реклами, ремаркетинг і аналіз ефективності реклами.
|
kachka
01.11.2012 22:59
0
|
поставил post-types-order и my-category-order ни рубрики ни записи на сайте свое место положения изменить не могу в чем причина?
www.interer3d.com.ua |
|
Евгений В.
01.11.2012 23:10
0
|
Как я понимаю, речь о левом меню.
Подскажите, оно у Вас в виде виджета или в тему зашито? |
|
kachka
01.11.2012 23:14
0
|
оно зашито в тему!
|
|
Евгений В.
01.11.2012 23:24
0
|
Тогда там и нужно менять, насколько мне известно.
Вот полезные статьи по теме: mywordpress.ru/plugins/my-category-order/www.wordpressplugins.ru/posts/post-types-order.html Если не получится самостоятельно - пишите, заборем эту наприятность. |
|
kachka
01.11.2012 23:35
0
|
спасибо за помощь буду смотреть еще раз все внимательно завтра и в итоге напишу результат
|
|
kachka
02.11.2012 19:34
0
|
ого как же все сложно)))
я новичок потому и не очень во всем разбираюсь помогите плиз где найти этот <?php wp_list_cats('sort_column=name'); ?> Необходимо добавить или заменить код orderby=order, пример: <?php wp_list_cats(orderby=order); ?> |
|
Евгений В.
02.11.2012 19:52
0
|
Скорее всего - второе попробуйте.
Но не забудьте на всякий пожарный сделать резервную копию. |
|
kachka
02.11.2012 19:57
0
|
Скорее всего - второе попробуйте.
второе что именно попробовать? извиняюсь за тупость) |
|
Евгений В.
02.11.2012 22:29
0
|
Попробуйте вот так:
<?php wp_list_cats(orderby=order); ?> Было бы замечательно для понимания картины увидетьКусочек кода из шаблона, который ответственен за вывод сайдбара. |
|
Евгений В.
02.11.2012 22:30
0
|
Кстати, сейчас Ваш сайт показывает просто белую страницу. В связи с этим вопрос - Вы редактировали файлы темы блокнотом или другим редактором?
|
|
kachka
02.11.2012 23:25
0
|
так вот хотел без знаний что-то изменить в php и просто все пропало была паника но мой хост провайдер все востановил за это я им очень благодарен!!!
менял код в самом вордпрессе в редакторе sidebars.php (library/sidebars.php) <?php global $theme_sidebars; $theme_sidebars = array( 'default' => array( 'name' => __('Primary Widget Area',THEME_NS), 'id' => 'primary-widget-area', 'description' => __("This is the default sidebar, visible on 2 or 3 column layouts. If no widgets are active, the default theme widgets will be displayed instead.", THEME_NS) ), 'secondary' => array( 'name' => __('Secondary Widget Area',THEME_NS), 'id' => 'secondary-widget-area', 'description' => __("This sidebar is active only on a 3 column setup.", THEME_NS) ), 'top' => array( 'name' => __('First Top Widget Area',THEME_NS), 'id' => 'first-top-widget-area', 'description' => __("This sidebar is displayed above the main content.", THEME_NS) ), 'top2' => array( 'name' => __('Second Top Widget Area',THEME_NS), 'id' => 'second-top-widget-area', 'description' => __("This sidebar is displayed above the main content.", THEME_NS) ), 'bottom' => array( 'name' => __('First Bottom Widget Area',THEME_NS), 'id' => 'first-bottom-widget-area', 'description' => __("This sidebar is displayed below the main content.", THEME_NS) ), 'bottom2' => array( 'name' => __('Second Bottom Widget Area',THEME_NS), 'id' => 'second-bottom-widget-area', 'description' => __("This sidebar is displayed below the main content.", THEME_NS) ), 'footer' => array( 'name' => __('First Footer Widget Area',THEME_NS), 'id' => 'first-footer-widget-area', 'description' => __("The first footer widget area. You can add a text widget for custom footer text.", THEME_NS) ), 'footer2' => array( 'name' => __('Second Footer Widget Area',THEME_NS), 'id' => 'second-footer-widget-area', 'description' => __("The second footer widget area.", THEME_NS) ), 'footer3' => array( 'name' => __('Third Footer Widget Area',THEME_NS), 'id' => 'third-footer-widget-area', 'description' => __("The third footer widget area.", THEME_NS) ), 'footer4' => array( 'name' => __('Fourth Footer Widget Area',THEME_NS), 'id' => 'fourth-footer-widget-area', 'description' => __("The fourth footer widget area.", THEME_NS) ), ); global $theme_widget_args; if (function_exists('register_sidebar')) { $theme_widget_args = array( 'before_widget' => '<widget id="%1$s" name="%1$s" class="widget %2$s">', 'before_title' => '<title>', 'after_title' => '</title>', 'after_widget' => '</widget>' ); foreach ($theme_sidebars as $sidebar) { register_sidebar( array_merge($sidebar, $theme_widget_args)); } } function theme_get_dynamic_sidebar_data($name) { global $theme_widget_args, $theme_sidebars; if (!function_exists('dynamic_sidebar')) return false; ob_start(); $success = dynamic_sidebar($theme_sidebars[$name]['id']); $content = ob_get_clean(); if (!$success) return false; extract($theme_widget_args); $data = explode($after_widget, $content); $widgets = array(); $heading = theme_get_option('theme_'.(is_single()?'single':'posts').'_widget_title_tag'); for($i = 0; $i < count($data); $i++) { $widget = $data[$i]; if(theme_is_empty_html($widget)) continue; $id = null; $name = null; $class = null; $title = null; if (preg_match('/<widget(.*?)>/', $widget, $matches)) { if(preg_match('/id="(.*?)"/', $matches[1], $ids)) { $id = $ids[1]; } if(preg_match('/name="(.*?)"/', $matches[1], $names)) { $name = $names[1]; } if(preg_match('/class="(.*?)"/', $matches[1], $classes)) { $class = $classes[1]; } $widget = preg_replace('/<widget[^>]+>/', '', $widget); if (preg_match('/<title>(.*)<\/title>/', $widget, $matches)) { $title = $matches[1]; $widget = preg_replace('/<title>.*?<\/title>/', '', $widget); } } $widgets[] = array( 'id' => $id, 'name' => $name, 'class' => $class, 'title' => $title, 'heading' => $heading, 'content' => $widget ); } return $widgets; } function theme_print_widgets($widgets, $style){ if (!is_array($widgets) || count($widgets) < 1) return false; for($i = 0; $i < count($widgets); $i++){ $widget = $widgets[$i]; if ($widget['name']) { $widget_style = theme_get_widget_style($widget['name'], $style); theme_wrapper($widget_style, $widget); } else { echo $widget['content']; } } return true; } function theme_dynamic_sidebar($name){ global $theme_sidebars; $style = theme_get_option('theme_sidebars_style_'.$name); if (in_array($name, array('default', 'secondary'))) { $widgets = theme_get_dynamic_sidebar_data($name); return theme_print_widgets($widgets, $style); } $places = array(); $sum_count = 0; foreach ($theme_sidebars as $key => $sidebar) { if (strpos($key, $name) !== false){ $widgets = theme_get_dynamic_sidebar_data($key); if (is_array($widgets)){ $count = count($widgets); if ($count > 0){ $sum_count += $count; $places[$key] = $widgets; } } } } if ($sum_count == 0) { return false; } ?> <div class="art-content-layout"> <div class="art-content-layout-row"> <?php $place_count = count($places); foreach ($places as $place) { ?> <div class="art-layout-cell art-layout-cell-size<?php echo $place_count; ?>"> <?php if($name == 'footer'): ?> <div class="art-center-wrapper"> <div class="art-center-inner"> <?php endif; ?> <?php theme_print_widgets($place, $style); ?> <?php if($name == 'footer'): ?> </div> </div> <?php endif; ?> <div class="cleared"> </div> </div> <?php } ?> </div> </div> <?php return true; } |
|
kachka
06.11.2012 10:50
0
|
так кто подскажет где и как мне найти и изменить этот код
<?php wp_list_cats(orderby=order); ?> |
|
kachka
04.12.2012 18:37
0
|
люди где вы))
|
|
rudenko
04.12.2012 19:23
0
|
Найти и изменить код можно при помощи любой программы, которая ищет текст в файлах.
Например Total Commander может производить поиск по локальным файлам. Для поиска нужно нажать Alt+F7 |
|
kachka
05.12.2012 20:39
0
|
<?php wp_list_cats('sort_column=name'); ?>
такого кода нигде нет на моем сайте какие еще есть варианты поменять содержимое бокового меню местами? |
|
Евгений В.
06.12.2012 01:17
0
|
Уточните пожалуйста, как у Вас в админке сайта называется используемая на данный момент тема оформления? (а то их у Вас лежит 4 штуки. А какой разбираться - неясно)
|
|
kachka
06.12.2012 23:59
0
|
тема стоит sayt
жду помощи спасибо) |
|
kachka
10.12.2012 18:31
0
|
люди где вы?))
|
|
Евгений В.
10.12.2012 19:19
0
|
Сейчас закинул тему вашего сайта на тестовый сайт.
Пока успехов не особо. |
|
kachka
10.12.2012 19:48
0
|
я эту тему создавал в программе Artisteer 4 может в этом и проблема что WordPress криво читает
|
|
kachka
10.12.2012 19:52
0
|
мне еще советовали так попробовать но так как я в коде полный ноль и у меня все на php мне так и не обьяснили как это сделать)
www.cyberforum.ru/html/thread711677.html |
Тема закрита.