madcrach
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] The form is not working wpcf7_unit_tag_not_foundI can only check it on a clean theme and without plugins tomorrow, as the website is in production, and it’s not that simple to do. I have a question: could the problem be caused by the fact that I am displaying the same form using a shortcode in different places on the main page?
Forum: Plugins
In reply to: [Contact Form 7] The form is not working wpcf7_unit_tag_not_found@takayukister
I use these plugins (see screenshot). I tried turning them off, but the error still persists.Forum: Plugins
In reply to: [Contact Form 7] The form is not working wpcf7_unit_tag_not_foundHere is a link to the website, there are forms in buttons below, and it only submits the first time. If you try to submit a second or third time, it gives an error.
Screenshots for the form
https://i.imgur.com/2QS1PZQ.pnghttps://i.imgur.com/mtuIg5F.png
Try submitting the form several times; it submits fine the first time, but doesn’t want to on the second or third attempt.
Forum: Plugins
In reply to: [Multilingual Contact Form 7 with Polylang] Doesn’t submit the formAfter testing, I noticed that the problem occurs when the Query Monitor plugin is enabled
Forum: Plugins
In reply to: [Contact Form 7] Does not work Selectable recipient with pipesI have removed this option for now.
I can add and send you a link if you need itI solved the problem like this
add_filter('rank_math/frontend/breadcrumb/items', function ($crumbs, $class) { $queried_object = get_queried_object(); if (is_tax() && is_object($queried_object)) { $term = $queried_object; $taxonomy = $term->taxonomy; $post_type = get_taxonomy($taxonomy)->object_type[0]; $post_type_object = get_post_type_object($post_type); if ($post_type_object) { $post_type_name = $post_type_object->labels->name; $post_type_crumb = array( $post_type_name, get_post_type_archive_link($post_type), ); array_splice($crumbs, 1, 0, array($post_type_crumb)); } } return $crumbs; }, 10, 2);
- This reply was modified 11 months, 2 weeks ago by madcrach.
This is how I register my taxonomy and my data type
add_action('init','poster'); function poster() { register_post_type('poster',array( 'public'=>true, 'supports' => array('title', 'editor'), 'menu_position' => 11, 'menu_icon' => 'dashicons-calendar-alt', 'taxonomies' => ['poster_year'], 'has_archive' => true, 'show_in_rest' => true, 'labels' => array( 'name' => 'Анонс заход?в', 'all_items' => 'Ус? заход?в', 'add_new' => 'Додати зах?д', 'add_new_item' => 'Анонс заход?в' ) )); } // хук для регистрации add_action( 'init', 'create_taxonomy_poster_year' ); function create_taxonomy_poster_year(){ // список параметров: wp-kama.ru/function/get_taxonomy_labels register_taxonomy( 'poster_year', [ 'poster' ], [ 'label' => '', // определяется параметром $labels->name 'labels' => [ 'name' => 'Р?к', 'singular_name' => 'Р?к', 'search_items' => 'Пошук', 'all_items' => 'Ус? ', 'view_item ' => 'Переглянути', 'parent_item' => 'Батько', 'parent_item_colon' => 'Батько:', 'edit_item' => 'Редагувати', 'update_item' => 'Оновити', 'add_new_item' => 'Додати р?к', 'new_item_name' => 'Новий р?к', 'menu_name' => 'Р?к', 'back_to_items' => '← Назад', ], 'description' => '', // описание таксономии 'public' => true, // 'publicly_queryable' => null, // равен аргументу public // 'show_in_nav_menus' => true, // равен аргументу public // 'show_ui' => true, // равен аргументу public 'show_in_menu' => true, // равен аргументу show_ui // 'show_tagcloud' => true, // равен аргументу show_ui // 'show_in_quick_edit' => null, // равен аргументу show_ui 'hierarchical' => true, 'rewrite' => true, //'query_var' => $taxonomy, // название параметра запроса 'capabilities' => array(), 'meta_box_cb' => null, // html метабокса. callback:
post_categories_meta_box
илиpost_tags_meta_box
. false — метабокс отключен. 'show_admin_column' => false, // авто-создание колонки таксы в таблице ассоциированного типа записи. (с версии 3.5) 'show_in_rest' => true, // добавить в REST API 'rest_base' => null, // $taxonomy // '_builtin' => false, //'update_count_callback' => '_update_post_term_count', ] ); }here is a link to my post type,
Here’s the taxonomy, there are no post type breadcrumbs here
Here is the full record, here it is normal to display bread crumbs
That is, the problem is that the taxonomy does not display the type of posts
help me please
Help me
help me
Forum: Plugins
In reply to: [Polylang] PHP error in frontend-auto-translate.php