wordpress-plugin

Visual editor not working in wordpress 3.8.1?

隐身守侯 提交于 2019-12-11 14:06:04
问题 I have just updated wordpress to 3.8.1 and visual editor not working in page and post. I have tried with following solutions but none of them works for me. -Activate and deactivate all plugin. -installed Use Google Libraries plugin. -Changed theme. -unchecked in user profile for "Disable the visual editor when writing". -cleared browser cache. -Reinstalled wordpress. -added this line to wp-config.php define('CONCATENATE_SCRIPTS', false ); 回答1: disable and re-enable the Yoast SEO plugin, 回答2:

Alter the Main WP_Comment_Query (comments at the bottom of posts)?

别等时光非礼了梦想. 提交于 2019-12-11 13:28:32
问题 My plugin retrieves a few comments at the beginning of the post through my own WP_Comment_Query. I save these IDs so I can then alter the WP_Comment_Query request and not fetch these IDs. When I use the pre_get_comments hook to hide these already-fetched IDs, they are also hidden from my first query at the beginning of each post. It defies the point. $this->loader->add_action( 'pre_get_comments', $plugin_public, 'hide_the_comments' ); public function hide_the_comments( $comment_query ) {

Woocommerce change order total on drop down change with jQuery and ajax

白昼怎懂夜的黑 提交于 2019-12-11 13:14:25
问题 I use a plugin in woocommerce that adds a credit card payment method. I have customized the plugin and I added a dropdown as a payment field in which the customer can choose istallments. The installments have an interest rate so I want everytime that the customer chooses the number of installments he wants it will update the orders total accordingly. I have used a piece of code with jquery and ajax that posts the value of the dropdown... While the checkout field later updates normaly the

Woocommerce create order with hebrew text using the api retuns an error

北城以北 提交于 2019-12-11 12:22:48
问题 I am using woocommerce Version 2.3.10 (i cant upgrade to the new version) I am using API V2 I am creating an order using the API successfully The entire order text is in english once there is Hebrew in one of the fields (billing addres first name for example), I am getting an error when trying to create the order. The error i am getting is: woocommerce_api_missing_callback_param Any ideas how to fix it? i tried to encode the text to unicode string but the string is not being decoded back to

Wordpress - Qtranslate to show only available languages

♀尐吖头ヾ 提交于 2019-12-11 12:20:49
问题 I want to display in which other languages current page is translated to. For example if current page is in english, and translation is available in french or on some other language, then script should output link to translated page in french. If there isn't translation available, then it should not output anything. How this can be done. Right now i use function <?php if (function_exists('qts_language_menu')) qts_language_menu('both'); ?> which return all languages, no matter if page have

wordpress contact form 7 plugin returns js error on console

旧街凉风 提交于 2019-12-11 12:18:18
问题 wordpress contact form 7 plugin returns js error on console. this is the contact form . the error is on auto genarated code by the plugin itself <div class="row"> <div class="col-xs-12 col-sm-4"> [text* your-name class:wpcf7-form-control wpcf7-text placeholder "Your Name"] [email* your-email class:wpcf7-form-control wpcf7-text wpcf7-email placeholder "E-mail address" ] [text your-subject class:wpcf7-form-control wpcf7-text placeholder "Subject"] </div> <div class="col-xs-12 col-sm-8">

wordpress google app engine compatibility

[亡魂溺海] 提交于 2019-12-11 12:02:23
问题 I have been trying to host a wordpress site in gae. Have been facing issue, even established plugin seem to break. I created this ticket seeking experts input and advice. I am java developer and have no idea about wordpress, php and google cloud. so your input's are appreciated. With google cloud's, gae env. The plugin are deployed to the local wordpress env running in google cloud container. Then using google cloud command line tool to google app engine and activated. A plugin can not

Multiple Select with wp_dropdown_categories wordpress

别来无恙 提交于 2019-12-11 11:40:25
问题 I want to add a widget that shows a category list with the latest post shown. However i have found the plugin http://wordpress.org/extend/plugins/category-posts/ But this plugin shows only one category at a time. When i open the widget file cat-posts.php I saw the code wp_dropdown_list . So can you tell me how can make this to select multiple categories to show all categories with latest post. Is it possible or there is another way to do the same task. Please suggest. Any help will be greatly

Wordpress creating plugin for most viewed posts problem?

此生再无相见时 提交于 2019-12-11 10:36:03
问题 I just want to create plugin that will when visitor(user,visitor,...) visit some post,remember what post,and to increment counter of that post,I wrote this code,but sometimes,counter is incremented,even post isn't viewed,or post with other Id is added to a table.Can someone help me with this,please.I know that there are plugins for this that I'm trying to do,but still want to write this plugin. function IncrementPostCount($the_content) { global $post; global $wpdb; if(($post->post_status ==

Remove title from custom post type edit screen

孤街浪徒 提交于 2019-12-11 10:19:55
问题 How can I apply the remove_post_type_support('email_template', 'title'); only for post edit screen? The title should be available on create and not for edit. 回答1: In WordPress, there is one global variable to check on which screen we are and it is global $current_screen but problem is it can not be used with admin_init action. So alternatively we can use load-(page) action to achieve it. add_action( 'load-post.php', 'remove_post_type_edit_screen', 10 ); function remove_post_type_edit_screen()