tungpress
Forum Replies Created
-
3.1.6-beta.4 is not soloved my problem,
but I installed 3.1.6 released today then problem was fixed.
The category selection format has changed from checkboxes to text selection boxes, but it is working without any problems.
Honestly, it would have been nice to be able to choose between checkboxes style and textboxes style.
Thank you for your support.I suppose it is the same issue discussed at
Product Category Selection Broken | ww.wp.xz.cn
This is the custom code of funcitons.php
After that I manually added 3 categories wordpress webpage.register_taxonomy( 'news-cat' ,'news' ,array ( 'hierarchical' => true ,'update_count_callback' => '_update_post_term_count' ,'label' => 'Folder' ,'singular_label' => 'Folder' ,'public' => true ,'show_ui' => true ,'show_in_nav_menus' => true ,'show_admin_column' => true ) );There was no change in beta3. It changed after applying beta4 which was discussed in another thread, but it is incomplete.
https://imgur.com/BFrj6IDAfter I upgrade to 3.1.5, I cannot select terms. It is a big problem.
https://imgur.com/G6g03xU
Next, this is optional.
When I use 3.1.3, by default, no terms are selected and no checkboxes are checked, so I embeded the code in fuctions.php(postexpirator_meta_box function).
This is quite simple, if it’s a new post, change the default checked term value. DatabaseIndex is the index value of wordpress database.
if (($post->post_type == ‘CustomPost’) and ($categories == get_option(‘expirationdateCategoryDefaults’))) {
$categories = array(‘DatabaseIndex’);
}I’m using Classic Editor.
How do I share the screenshot? I do not have Imager uploadable site.
The message is displayed between PublishPress Future Action select box and Time.
In 3.1.3 version, I modify postexpirator_meta_box funtion to change default checked category, so I specify $categories index in source code(functions.php).Yes, I’m using Classic editor.