Title: Ответы пользователя index0h | WordPress.org Русский

---

# index0h

  [  ](https://ru.wordpress.org/support/users/index0h/)

 *   [Профиль](https://ru.wordpress.org/support/users/index0h/)
 *   [Начатые темы](https://ru.wordpress.org/support/users/index0h/topics/)
 *   [Ответы](https://ru.wordpress.org/support/users/index0h/replies/)
 *   [Темы с ответами](https://ru.wordpress.org/support/users/index0h/replied-to/)
 *   [Взаимодействия](https://ru.wordpress.org/support/users/index0h/engagements/)
 *   [Избранное](https://ru.wordpress.org/support/users/index0h/favorites/)

 Поиск ответов:

## Ответы в темах

Просмотр 2 ответов — с 1 по 2 (всего 2)

 *   Форум: [Проблемы и решения](https://ru.wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   Тема: [Категории изображений](https://ru.wordpress.org/support/topic/%d0%9a%d0%b0%d1%82%d0%b5%d0%b3%d0%be%d1%80%d0%b8%d0%b8-%d0%b8%d0%b7%d0%be%d0%b1%d1%80%d0%b0%d0%b6%d0%b5%d0%bd%d0%b8%d0%b9/)
 *  Автор [index0h](https://ru.wordpress.org/support/users/index0h/)
 * (@index0h)
 * [16 лет, 3 месяца назад](https://ru.wordpress.org/support/topic/%d0%9a%d0%b0%d1%82%d0%b5%d0%b3%d0%be%d1%80%d0%b8%d0%b8-%d0%b8%d0%b7%d0%be%d0%b1%d1%80%d0%b0%d0%b6%d0%b5%d0%bd%d0%b8%d0%b9/#post-22205)
 * В общем проблема решена добавлением действия после вывода advanced полей поста.
   
   add_action(‘edit_form_advanced’, ‘test_function’);
 *     ```
       function test_function(){
       $url = wp_get_attachment_url(71);
       $size = getimagesize($url);
       $width = 916;
       $height = $size[1]*$width/$size[0];
   
       echo '<img src="'.$url.'" height="'.$height.'" width="'.$width.'">';
       }
       ```
   
 *   Форум: [Проблемы и решения](https://ru.wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   Тема: [Категории изображений](https://ru.wordpress.org/support/topic/%d0%9a%d0%b0%d1%82%d0%b5%d0%b3%d0%be%d1%80%d0%b8%d0%b8-%d0%b8%d0%b7%d0%be%d0%b1%d1%80%d0%b0%d0%b6%d0%b5%d0%bd%d0%b8%d0%b9/)
 *  Автор [index0h](https://ru.wordpress.org/support/users/index0h/)
 * (@index0h)
 * [16 лет, 3 месяца назад](https://ru.wordpress.org/support/topic/%d0%9a%d0%b0%d1%82%d0%b5%d0%b3%d0%be%d1%80%d0%b8%d0%b8-%d0%b8%d0%b7%d0%be%d0%b1%d1%80%d0%b0%d0%b6%d0%b5%d0%bd%d0%b8%d0%b9/#post-22190)
 * Проблема сводится к вопросу: как вывести свой html-код после названия пользовательского
   типа поста?

Просмотр 2 ответов — с 1 по 2 (всего 2)