——————–
Original Post
——————–
Здравствуйте! Спасибо за интересную тему WP )
При работе с темой NewsPaper помимо использования основного функционала, мне понадобилась возможность работы с произвольными типами записей, таксономий и полей WP. Для этой цели я решил использовать плагин CustomPress https://premium.wpmudev.org/project/custompress/
1. Какие шаблоны темы будет правильно использовать для создания шаблонов пользовательских типов записей и таксономий?
2. Как правильно настроить пользовательский тип записи (post), чтобы для него был доступен весь функционал темы: Post Options, Post Format, Blocks в Visual Composer и др.?
3. Как правильно изменить шаблон форума BBpress для его отображения во всю ширину без боковой панели? В данном случае боковая панель нужна только на главной странице форума.
Заранее спасибо за ответы!
——————–
Translated message
——————–
Hello! Thank you for an interesting Theme for WP)
When working with the theme NewsPaper addition to using the basic functionality, it took me the opportunity to work with arbitrary types of records and fields taxonomies WP. To this end, I decided to use a plugin CustomPress https://premium.wpmudev.org/project/custompress/
1. What is the correct theme templates used to create custom patterns of record types and taxonomies?
2. How to configure a custom post type (post), for it to be available the entire functionality Topics: Post Options, Post Format, Blocks in Visual Composer, etc.?
3. How to change the template offline BBpress to display it across the entire width without sidebar? In this case, the side panel is needed only on the main forum page.
Thank you in advance for your answers!
-
This topic was modified 11 years by
extpress.
Hi,
Unfortunately we did not tested the plugin, so I cannot make any suggestions regarding this. You have to check how the single and loop-single templates are built and start from there. An alternative would be to look for a professional developer to help you with this, if you don’t know any you could look for one on places like – http://studio.envato.com/ Anyway we plan to improve and add better support for the custom post type in a future update.
The theme supports bbpress without any custom modifications and the can be accessed using siteurl/forums please check our demo – http://demo.tagdiv.com/newspaper/forums/ if you want to add content to your forum page, please create the forum page change the template to default and use shortcodes – http://screencast.com/t/l3qDftKrgH Also you can set here your sidebar – http://screencast.com/t/aNMnC4CZ Here you can find the plugin’s documentation – https://codex.bbpress.org/
Thanks!
Спасибо за ответ. Про BBpress я понял, поработаю с его шаблонами для внесения нужных изменений.
Про CPT.
Для работы сайта мне необходимо создать собственный Custom Post Type (post) и Custom Taxonomy. Плагин CustomPress я взял для примера, так как он удобен. Также я могу создать CPT вручную, используя WordPress Codex.
На самом деле способ создания CPT не имеет значения, вопрос в другом, как функционал темы правильно подключить к CPT “post”, чтобы использовать все возможности темы по аналогии с Блогом?
После создания CPT, в админке для него нет следующих блоков:
http://prntscr.com/7qrqmk
http://prntscr.com/7qrqxm
http://prntscr.com/7qrr9c
При работе с Visual Composer я не вижу в фильтрах Custom Post Type и Custom Taxonomy, соответственно не могу работать с ними.
Как их правильно подключить?
—————
Thanks for the answer. About BBpress I understood his work with templates to make the necessary changes.
About CPT.
For the operation of the site I need to create Custom Post Type (post) and Custom Taxonomy. Plugin CustomPress I took as an example, as it is convenient. I can also create CPT manually using the WordPress Codex.
In fact, a way to create CPT does not matter, is another question, the functional threads are properly connected to CPT “post”, to use all the threads similar to the blog?
After creating the CPT, in the admin for him there the following units:
http://prntscr.com/7qrqmk
http://prntscr.com/7qrqxm
http://prntscr.com/7qrr9c
When working with Visual Composer I do not see filters Custom Post Type and Custom Taxonomy, respectively, I can not work with them.
How to connect them correctly?
Если простыми словами, то я хочу клонировать Блог, чтобы у меня на сайте было 2 Блога, один по умолчанию, второй – мой собственный.
Проблема в том, что при создании собственного Блога отваливается функционал темы, остается лишь стандартный функционал WP.
Это не мультисайт 🙂
—————–
If simple words, I want to clone a blog to my site had 2 Blogs, the default one, the second – my own.
The problem is that when you create your own blog falls off the functional threads can only standard functionality WP.
This is not a multisite.
Hi,
The theme wasn’t designed with custom post types in mind, we are working to improve the theme functionality in this area. On blocks there’s an option to set a custom post type but there’s no taxonomy option, we will include it in a future update. – http://screencast.com/t/d79f7Ua4yfqy
If you’re in a hurry and you don’t want to wait for our updates i suggest that you hire a professional developer to add such functionality, it’s a complicated area and unfortunately i cannot provide a quick solution, sorry for this.
Thank you!
Ок. Спасибо за понятный ответ. Заметил, что во многих темах не поддерживается функционал CPT, только если он не был разработан под ключ специально для темы, например, Portfolio, FAQ и др.
Будет просто отлично, если у Вас получится совместить функционал темы и CPT! 🙂 Это позволит значительно расширять и усложнять разрабатываемые сайты на WP для воплощения самых разных идей. Попробую подождать обновлений, а пока пожертвую блогом, чтобы реализовать задуманное.
У Вас получилась действительно классная тема! Я был сильно удивлён, когда наглядно увидел, как на самом деле быстро может работать сайт на WP. Вдобавок к этой скорости я дополнительно удалил Customizer WP с помощью нового плагина https://wordpress.org/plugins/customizer-remove-all-parts/ и тема стала летать, как реактивный самолёт 🙂 http://imgdisk.ru/images/2015/07/11/Screenshot_1.png
Кстати, на одном из своих сайтов в качестве конструктора страниц я давно и успешно использую Page Builder by SiteOrigin https://wordpress.org/plugins/siteorigin-panels/ который является достойной альтернативой Visual Composer. VC, хотя он и классный, я не люблю из-за его медленной работы, которая плохо сказывается на всей скорости работы сайта. Но вам удалось каким-то образом его правильно оптимизировать и это действительно круто! 🙂
Желаю удачи!
————
Ok. Thank you for your clear answer. I noticed that in many themes is not supported functionality CPT, only if it was not designed specifically for the turnkey theme, such as, Portfolio, FAQ, and others.
It will be just fine,if you get to combine the functionality of theme and CPT! 🙂 This will greatly expand and complicate the developed sites in WP to implement a variety of ideas. I’ll try to wait for updates, and sacrifice is a blog to implement its plans.
You get a really cool theme! I was very surprised when I saw clearly, in fact it can work quickly on site WP. In addition to this speed, I removed the extra Customizer WP with a new plugin https://wordpress.org/plugins/customizer-remove-all-parts/ and theme was to fly like a jet plane 🙂 http://imgdisk.ru/images/2015/07/11/Screenshot_1.png
Incidentally, at one of its sites as a constructor of pages I have long and successfully been using Page Builder by SiteOrigin https://wordpress.org/plugins/siteorigin-panels/ which is a viable alternative to Visual Composer. VC, although it is cool, I do not like because of its slow work, which is bad for the whole speed of the site. But you managed to somehow it properly optimized and it’s really cool! 🙂
Good luck!
Hi,
Thanks!
We try to keep the Visual Composer plugin fully compatible with the theme and recently that was hard because some issues that caused the VC plugin to use lots resources. We also work on developing a plugin that can be used as an alternative for the VC plugin, if interested you can find more detailed info and the latest beta version here: https://forum.tagdiv.com/topic/newsmag-1-7-1-killed-our-server-again/page/3/#post-52148
Thanks for your feedback and sharing your implementation we’ll consider it if needed in the future.
Lucian C.
OK. Я постепенно изучаю этот форум и регулярно нахожу на нём много новой и полезной информации для практической работы. Буду следить за вашей разработкой конструктора страниц. )
Сегодня обновил тему NewsPaper до версии 6.3 и очень обрадовался, так как был добавлен очень нужный функционал для работы с Custom Post Type и Custom Taxonomy. Довольно тщательно его протестировал, пока работает чётко, без ошибок и это круто! )
Правда, не хватило нескольких возможностей, о которых напишу ниже в порядке их важности по убыванию.
1. Для одного Custom Post Type я использую несколько Custom Taxonomies и столкнулся с такой проблемой, что в настройках “CATEGORY SPOT TAXONOMY” и “TAG SPOT TAXONOMY” http://prntscr.com/7thcat можно выбирать только одну Custom Taxonomy. Эти настройки отлично работают, но хотелось бы иметь возможность выбирать несколько Custom Taxonomies для вывода их на сайте в нужных блоках “CATEGORY SPOT TAXONOMY” или “TAG SPOT TAXONOMY”.
2. При настройке блоков и других элементов в VC не нашёл настроек фильтрации по Custom Taxonomy. Наверное, данный функционал пока ещё находится в разработке ) В нужных модулях VC у меня без проблем получается выводить записи из Custom Post Type, но очень не хватает точной фильтрации по Custom Taxonomy.
3. При настройке Post Template для Custom Taxonomy я сначала немного запутался, экспериментируя с шаблонами single.php, но потом понял, что данная настройка http://prntscr.com/7thgr1 применяется одинаково для всех записей типа post. В принципе это не очень мешает, но было бы логичнее разделить настройки Post Template для Default Post Type (Blog) и для Custom Post Type.
4. Ну и последнее, в разделе “CPT & Taxonomy” в настройках “Custom post types” можно очень удобно настроить категории и теги для Custom Post Type, но почему-то нет возможности сделать это для Default Post Type (Blog), думаю, многим бы она пригодилась )
Возможно я чего-то ещё недосмотрел или не так понял, буду рад, если дадите хороший совет!
С уважением, Евгений.
————
OK. I’m slowly learning this forum and regularly find on it a lot of new and useful information for practical work. I will follow the development of your page builder. )
Today, the theme NewsPaper updated to version 6.3 and was very happy, as was added much needed functionality to work with Custom Post Type and Custom Taxonomy. Rather it carefully tested while working accurately, without mistakes and that’s cool! )
However, not enough several possibilities, of which I will write below in order of descending importance.
1. For a Custom Post Type I use multiple Custom Taxonomies and faced with such a problem, in settings “CATEGORY SPOT TAXONOMY” and “TAG SPOT TAXONOMY” http://prntscr.com/7thcat you can choose only one Custom Taxonomy. These settings work fine, but I would like to be able to select multiple Custom Taxonomies to display them on the site in the required blocks “CATEGORY SPOT TAXONOMY” or “TAG SPOT TAXONOMY”.
2. When setting blocks and other elements in the VC did not find the settings for filtering Custom Taxonomy. Probably, this functionality is still in development. ) The relevant modules VC I have no problem turns out to display records from the Custom Post Type, but are lacking in precision filtering Custom Taxonomy.
3. When configuring the Post Template for Custom Taxonomy I first bit confused, experimenting with patterns single.php, but then I realized that this setting http://prntscr.com/7thgr1 applies equally to all types of records post. In principle, it is not a botherbut it would be more logical to divide the Post Template settings for the Default Post Type (Blog) for Custom Post Type.
4. And finally, in the section “CPT & Taxonomy” settings “Custom post types” can be very convenient to adjust the categories and tags for Custom Post Type, but for some reason it is not possible to do so for the Default Post Type (Blog), thinkmany would have it handy. )
Maybe I’m something else overlooked or misunderstood, I will be glad if you give good advice!
Sincerely, Evgeny.
-
This reply was modified 11 years by
extpress.
Hi,
Sorry for the inconvenience however this is an improvement recent developed and it could lack some settings you consider necessary. I’ll note them though and review them for the next theme updates.
1. We’ll consider this. Thanks!
2. You’re right those options aren’t been developed yet.
3. We will consider this. Thanks!
4. I’ll add this on our request lists and as I stated already the CPT support is still under development so we will consider your suggestions on this.
Thanks for the message!
I wanted to reply to this question of showing multiple taxonomy for custom post type as ‘tag_spot_taxonomy’ and ‘category_spot_taxonomy.
you can do this by:
1/modifying this file (child theme does NOT work):
Newspaper/includes/wp_booster/wp-admin/panel/views/ajax_boxes/td_panel_cpt_taxonomy/td_get_cpt_settings_by_post_type.php
search for ‘tds_category_spot_taxonomy’ and for ‘tds_tag_spot_taxonomy’
at each location change ‘td_panel_generator::dropdown’ to ‘td_panel_generator::input’
This will allow you to list your taxonomy slug in the theme page/cpt&tax/ for your CPT
2/ modifying this file (you CAN copy it in your child theme):
/newspaper/includes/wp_booster/td_module_single_base.php
replace line 185
$category_spot_taxonomy = td_util::get_ctp_option($this->post->post_type, ‘tds_category_spot_taxonomy’);
by this
$category_spot_taxonomy = td_util::get_ctp_option($this->post->post_type, ‘tds_category_spot_taxonomy’);
$arr = explode(“,”, $category_spot_taxonomy);
foreach ($arr as $value) {
$category_spot_taxonomy = $value ;
also add one }, right before the ‘} else {‘
you also need to the same for the tag locaiton
reaplce line 602 by this
$tag_spot_taxonomy = td_util::get_ctp_option($this->post->post_type, ‘tds_tag_spot_taxonomy’);
$arr = explode(“,”, $tag_spot_taxonomy);
foreach ($arr as $value) {
$tag_spot_taxonomy = $value ;
also add one } right before the comment ‘// also update …’
Hopefully you get the idea 😉
Too bad Tagdiv td_panel_generator function doesn’t offer an option to create radio selection with multiple choices, that woudl have been really clean !!!
PLEASE TAGDIV implement this code, it is really usefull ! and easy for yuo to implement now 😉