wordpress-plugin

Disqus comment form not displayed on self hosted Wordpress site

帅比萌擦擦* 提交于 2019-12-01 19:03:16
I have followed all instructions on installing Disqus commenting system on my website but the old comment form is still visible. My question is: is <?php comment_form(); ?> enough to display the comments or there needs to be something else on the single.php page. What else should I be taking care? I don't have any other commenting engine installed. Thank you OK I found it. Instead of using the <?php comment_form(); ?> I had to use <?php comments_template(); ?> . That did the trick install woody snippets on your site insert a new php snippet: comments_template(); ?> go in widget select custom

Nivo Slider custom height/width problems

99封情书 提交于 2019-12-01 17:49:46
问题 I have searched for a resolution to my problem, but have not yet been successful. I have images of different sizes in Nivo Slider , but I need to create a viewport that displays the image centered in a div . It's hard to explain, but I have included a diagram below. The image must be centered in a div , while the div must also be responsive. I don't want the div to change its size and would like the image to create an overflow that is hidden on the div . I have tried different methods of CSS

How to remove woocommerce tab?

℡╲_俬逩灬. 提交于 2019-12-01 17:05:16
问题 the products in our woocommerce shop don't need any of the default tabs so I have managed to disable them being that I only need to have the product description below the product however, while I want to keep the actual description, I believe the tab itself is redundant since there aren't any other tabs. Basically, I want to remove the tab's & title altogether but keep the content box below it without modifying the woocommerce core php template file. Is there a way to add a filter to my

How to add custom bulk actions in WordPress list tables?

给你一囗甜甜゛ 提交于 2019-12-01 14:41:52
I am developing a plugin for that I have to black list users, so I need to be display one more dropdown item called Black List inside the Bulk Actions dropdown in the Users page, after the Delete option. But I'm unable to see from where these two actions are coming from and also how to black list a particular user. My idea is to add one more field is_blacklisted in user table as Boolean with default value false and when apply Black List action it changes to true . Any other thoughts? brasofilo There's a filter , but it's only useful to remove bulk actions. From this WPSE question, answer and

How to add custom bulk actions in WordPress list tables?

纵然是瞬间 提交于 2019-12-01 13:21:47
问题 I am developing a plugin for that I have to black list users, so I need to be display one more dropdown item called Black List inside the Bulk Actions dropdown in the Users page, after the Delete option. But I'm unable to see from where these two actions are coming from and also how to black list a particular user. My idea is to add one more field is_blacklisted in user table as Boolean with default value false and when apply Black List action it changes to true . Any other thoughts? 回答1:

Embedding Google Apps Script WebApp in WordPress Page

岁酱吖の 提交于 2019-12-01 13:04:51
I've done a great deal of research on how to workaround Wordpress's iframe restrictions and I've been able to get it to work using various plugins with common services (google maps, youtube, etc.). However, all of these methods have not worked for embedding one of my published webApps. My most recent efforts have been using this plugin . Here is an extremely simple 'Hello World' webApp that I would like to embed: LINK . I was unable to simply use that URL as the 'src' for the iframe so I embedded the webApp in this google site then viewed the source of that iframe which I found to be: <iframe

Create a new page with wp_insert_post ()

痞子三分冷 提交于 2019-12-01 12:31:19
I have the following code in a PHP function that is activated when I install my plugin that lets you create a post or page. Works perfect and make the page if the $post_type is "post", but if the $post_type is "page", then it does not work, does not create the page.: $my_post = array( 'post_title' => 'My page Reql', 'post_type' => 'page', 'post_name' => 'my-page', 'post_content' => 'This is my page reql.', 'post_status' => 'publish', 'comment_status' => 'closed', 'ping_status' => 'closed', 'post_author' => 1, 'menu_order' => 0 ); wp_insert_post( $my_post ); What is the problem? I can not find

updating woocommerce order in checkout page instead to create a new one

淺唱寂寞╮ 提交于 2019-12-01 12:30:24
I am creating a Wordpress and WooCommerce plugin which does the following: An anonymous user customizes a product on the page In a php script in the process, it creates an order in the database The user goes to the checkout page where the customer data, delivery etc. is requested. By clicking on "Buy Now" WooCommerce creates a new order in the system and what I want is to update the order created earlier during the personalization process, adding customer details, payment, delivery etc. to the order. is it possible? Thanks! You can use the function wc_update_order() to fetch an existing order

updating woocommerce order in checkout page instead to create a new one

最后都变了- 提交于 2019-12-01 11:55:13
问题 I am creating a Wordpress and WooCommerce plugin which does the following: An anonymous user customizes a product on the page In a php script in the process, it creates an order in the database The user goes to the checkout page where the customer data, delivery etc. is requested. By clicking on "Buy Now" WooCommerce creates a new order in the system and what I want is to update the order created earlier during the personalization process, adding customer details, payment, delivery etc. to

Embedding Google Apps Script WebApp in WordPress Page

最后都变了- 提交于 2019-12-01 11:21:22
问题 I've done a great deal of research on how to workaround Wordpress's iframe restrictions and I've been able to get it to work using various plugins with common services (google maps, youtube, etc.). However, all of these methods have not worked for embedding one of my published webApps. My most recent efforts have been using this plugin. Here is an extremely simple 'Hello World' webApp that I would like to embed: LINK. I was unable to simply use that URL as the 'src' for the iframe so I