Triptikon
Forum Replies Created
-
Well, I don’t understand anything then. I already have both super-processing and original compression turned on, but images do not change their weight when uploading. And it didn’t happen before. I have always seen images get smaller after uploading
@wpmudev-support8 Why did the plugin work without additional settings until recently? How much does the quality of compressed images deteriorate?
@wpmudev-support8 well, here’s an example of the page with uncompressed image. I use 3.11.1 version. Could the reason be that I need to enable “Compress original images” in the bulk processing options?
@wpmudev-support8 I noticed, that the second site stopped comressing images too. Previously, before uploading, the picture could be, for example, 300 kb and after uploading – 57 kb. Now this feature doesn’t work at all
@wpmudevsupport13 The sites exist on the same server. Permissions are the same. It’s not about one exact image, it’s about several
Forum: Plugins
In reply to: [WP Job Manager] How to highlight an ad?@hastibe I already wrote that this plugin (WP Job Manager Field Editor) is too expensive, and its support does not respond to requests
Forum: Plugins
In reply to: [WP Job Manager] How to highlight an ad?I still want to edit or delete these fields, but not only in frontend, but in the backend too
Forum: Plugins
In reply to: [WP Job Manager] How to highlight an ad?@lastsplash (a11n), but in the admin panel in the job submission form there is no Application URL field, and there are twitter and other fields prohibited in the functions.php
Forum: Plugins
In reply to: [NextScripts: Social Networks Auto-Poster] Your website is downThe same thing. In general, they behave somehow strangely: either they can don’t release updates for a whole year, then they stop responding to tickets there, then they are silent here too
Forum: Plugins
In reply to: [WP Job Manager] How to highlight an ad?Code snippets plugin doesn’t help to solve this problem too
Forum: Plugins
In reply to: [WP Job Manager] How to highlight an ad?Mike said, that I can put the code here and we can test on a test site regarding it to make sure it works
Forum: Plugins
In reply to: [WP Job Manager] How to highlight an ad?<?php add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'penci-style-child', get_stylesheet_directory_uri() . '/style.css', array( 'parent-style' ), wp_get_theme()->get( 'Version' ) ); } // кастомный сайдбар add_action( 'widgets_init', 'register_my_widgets' ); function register_my_widgets(){ register_sidebar( array( 'name' => 'Средняя панель', 'id' => "middle-sidebar", 'description' => 'Выводиться как панель баннера в конце поста.', 'class' => '', 'before_widget' => '<div id="%1$s" class=" middle-sidebar style-title-1 style-title-center widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<div class="penci-block-heading"><h4 class="widget-title penci-block__title"><span>', 'after_title' => '</span></h4></div>' ) ); } add_filter( 'manage_posts_columns', function($columns){ unset($columns['date']); $columns['real_date'] = __('Date'); return $columns; }); add_action( 'manage_posts_custom_column' , function( $column, $post_id ){ if ( 'real_date' === $column ) { global $post; $date = new DateTime( $post->post_date ); echo $date->format('d.m.Y, H:i:s'); } }, 10, 2 ); // ПРОСМОТРЫ function getPostViews($postID){ $count_key = 'post_views_count'; $count = get_post_meta($postID, $count_key, true); if($count==''){ delete_post_meta($postID, $count_key); add_post_meta($postID, $count_key, '0'); return "0"; } return $count; } function setPostViews($postID) { $count_key = 'post_views_count'; $count = get_post_meta($postID, $count_key, true); if($count==''){ $count = 0; delete_post_meta($postID, $count_key); add_post_meta($postID, $count_key, '0'); }else{ $count++; update_post_meta($postID, $count_key, $count); } } add_filter('manage_posts_columns', 'posts_column_views'); add_action('manage_posts_custom_column', 'posts_custom_column_views',5,2); function posts_column_views($defaults){ $defaults['post_views'] = __('Просмотры'); return $defaults; } function posts_custom_column_views($column_name, $id){ if($column_name === 'post_views'){ echo getPostViews(get_the_ID()); } } function image_to_rss($content) { global $post; if (has_post_thumbnail( $post->ID )){ $content = '' . get_the_post_thumbnail( $post->ID, 'full', array('style' => 'float:left; margin:0 15px 15px 0;' )) . '' . $content; } return $content; } add_filter('the_excerpt_rss', 'image_to_rss'); add_filter('the_content_feed', 'image_to_rss'); add_post_type_support( 'page', 'post-formats' ); function my_login_url() { return home_url(); //или любой другой адрес } add_filter( 'login_headerurl', 'my_login_url' ); add_filter( 'submit_job_form_fields', 'frontend_add_salary_field' ); function frontend_add_salary_field( $fields ) { $fields['job']['job_salary'] = array( 'label' => __( 'Уровень заплаты (₽)', 'job_manager' ), 'type' => 'text', 'required' => true, 'placeholder' => 'e.g. 20000', 'priority' => 7 ); return $fields; } add_filter( 'job_manager_job_listing_data_fields', 'admin_add_salary_field' ); function admin_add_salary_field( $fields ) { $fields['_job_salary'] = array( 'label' => __( 'Уровень зарплаты (₽)', 'job_manager' ), 'type' => 'text', 'placeholder' => 'Например, 20000 рублей', 'description' => '' ); return $fields; } // Поле номер телефона add_filter( 'submit_job_form_fields', 'frontend_add_phone_field' ); function frontend_add_phone_field( $fields ) { $fields['job']['job_phone'] = array( 'label' => __( 'Номер телефона', 'job_manager' ), 'type' => 'text', 'required' => false, 'placeholder' => '+79999999999', 'priority' => 7 ); return $fields; } add_filter( 'job_manager_job_listing_data_fields', 'admin_add_phone_field' ); function admin_add_phone_field( $fields ) { $fields['_job_phone'] = array( 'label' => __( 'Номер телефона', 'job_manager' ), 'type' => 'text', 'placeholder' => '+79999999999', 'description' => '' ); return $fields; } add_action( 'single_job_listing_meta_end', 'display_job_salary_data' ); function display_job_salary_data() { global $post; $salary = get_post_meta( $post->ID, '_job_salary', true ); if ( $salary ) { echo '<li>' . __( 'Уровень зарплаты:' ) . ' $' . esc_html( $salary ) . '</li>'; } } add_filter( 'job_manager_geolocation_endpoint', 'change_geocode_lang' ); function change_geocode_lang( $endpoint ) { // Use language from https://developers.google.com/maps/faq#using-google-maps-apis return add_query_arg( 'language', 'en-GB', $endpoint ); } function dm_display_wpjm_categories () { $terms = get_terms( array( 'taxonomy' => 'job_listing_category', 'hide_empty' => false, ) ); if ( ! empty( $terms ) && ! is_wp_error( $terms ) ){ echo '<ul>'; foreach ( $terms as $term ) { echo '<li>' . '<a href="' . esc_url( get_term_link( $term ) ) . '">' . $term->name . '</a></li>'; } echo '</ul>'; } add_shortcode('list_categories', 'dm_display_wpjm_categories'); function dm_display_wpjm_single_categories () { $terms = wp_get_post_terms( get_the_ID(), 'job_listing_category' ); if ( ! empty( $terms ) && ! is_wp_error( $terms ) ){ echo '<ul>'; foreach ( $terms as $term ) { echo '<li>' . '<a href="' . esc_url( get_term_link( $term ) ) . '">' . $term->name . '</a></li>'; } echo '</ul>'; } } add_shortcode('list_categories_single', 'dm_display_wpjm_single_categories'); add_theme_support( 'job-manager-templates' ); function my_wpjm_meta_key_dm() { global $wpdb, $job_manager_keyword; $searchable_meta_keys[] = '_my_meta_field'; return $searchable_meta_keys; } add_filter('job_listing_searchable_meta_keys', 'my_wpjm_meta_key_dm'); } add_filter( 'submit_job_form_fields', 'gma_custom_submit_job_form_fields' ); function gma_custom_submit_job_form_fields( $fields ) { unset($fields['company']['company_website']); unset($fields['company']['company_video']); unset($fields['company']['company_twitter']); return $fields; } /** Remove all possible fields **/ function wc_remove_checkout_fields( $fields ) { // Billing fields unset( $fields['billing']['billing_state'] ); unset( $fields['billing']['billing_address_1'] ); unset( $fields['billing']['billing_address_2'] ); unset( $fields['billing']['billing_city'] ); unset( $fields['billing']['billing_postcode'] ); // Shipping fields unset( $fields['shipping']['shipping_state'] ); unset( $fields['shipping']['shipping_address_1'] ); unset( $fields['shipping']['shipping_address_2'] ); unset( $fields['shipping']['shipping_city'] ); unset( $fields['shipping']['shipping_postcode'] ); return $fields; } add_filter( 'woocommerce_checkout_fields', 'wc_remove_checkout_fields' ); /* This snippet removes the “Listing Expires” column from Job Dashboard */ add_filter( 'job_manager_job_dashboard_columns', 'remove_expires_column' ); function remove_expires_column( $columns ) { unset( $columns['company']['company_website'] ); return $columns; } /* This snippet removes the “Listing Expires” column from All Jobs in wp-admin */ add_filter( 'manage_edit-job_listing_columns', 'remove_expires_column_admin' ); function remove_expires_column_admin( $columns ) { unset( $columns['company']['company_website'] ); return $columns; } add_filter( 'um_account_tab_general_fields', 'um_011921_add_profile_photo_uploader', 10, 2 ); function um_011921_add_profile_photo_uploader( $args, $shortcode_args ) { $args = 'register_profile_photo,' . $args; return $args; } add_filter( 'login_url', 'my_login_page', 10, 2 ); function my_login_page( $login_url, $redirect ) { return home_url( '/vojti-zaregistrirovatsya/?redirect_to=' . $redirect ); }Forum: Plugins
In reply to: [WP Job Manager] How to add preset words to a vacancy?@michaelnutt does it mean, that on this page employers will see the vacancies they have published, and applicants will see their responses and subscriptions?
Forum: Plugins
In reply to: [WP Job Manager] How to add preset words to a vacancy?@michaelnutt okay, I’ll try, thanks. Can you tell me please one more thing? Does the job dashboard is seen only by employers, or including job seekers, but just with a different menu?