Помогите дураку.
Создал новый тип записи. Ничего кроме названия нельзя ввести. Как его редактировать и показывать на сайте?
И как запилить шаблон для произвольного типа записи?
Заранее спасибо!
Помогите дураку.
Создал новый тип записи. Ничего кроме названия нельзя ввести. Как его редактировать и показывать на сайте?
И как запилить шаблон для произвольного типа записи?
Заранее спасибо!
1. https://codex.wordpress.org/Function_Reference/register_post_type
supports
(array/boolean) (optional) An alias for calling add_post_type_support() directly. As of 3.5, boolean false can be passed as value instead of an array to prevent default (title and editor) behavior.
Default: title and editor
‘title’
‘editor’ (content)
‘author’
‘thumbnail’ (featured image, current theme must also support post-thumbnails)
‘excerpt’
‘trackbacks’
‘custom-fields’
‘comments’ (also will see comment count balloon on edit screen)
‘revisions’ (will store revisions)
‘page-attributes’ (menu order, hierarchical must be true to show Parent option)
‘post-formats’ add post formats, see Post Formats
2. https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
The single post template file is used to render a single post. WordPress uses the following path:
single-{post-type}.php – If the post type is product, WordPress would look for single-product.php.
Спасибо за ответ. Это все пробовал. Но все равно когда делаю новую запись произвольного типа кроме названия ничего добавить нельзя.