wordpress-plugin

WordPress plugin translation issue

六眼飞鱼酱① 提交于 2020-01-04 04:25:09
问题 I translated my plugin with poedit, and it works fine on localhost, on new fresh wordpress instalation, but when i uploaded my plugin on server, on exsisting site, some russian charachters missing. I get latin istead, i encoded poedite files with utf8, same in header i have utf8. Where colud be problem, other poedit translation for romanian works well? In fact russian words are translate, but some letters, still in latin. Is there some adjustments in config file, or something else? Also i

Get all post IDs in Wordpress

允我心安 提交于 2020-01-03 14:15:16
问题 Is it possible to get an array of all post IDs currently present in the wordpress DB (irrespective of post_types)? Also, is it possible to get an array of all post IDs of a specific post_type? If we can, how to achieve that? 回答1: You can try this way $post_ids = get_posts(array( $args, //Your arguments 'posts_per_page'=> -1, 'fields' => 'ids', // Only get post IDs )); 回答2: probably best to run a custom query using the DB object of wordpress. (from functions.php or a theme file etc): // pseudo

gravity forms fire js event on successfull form submission

六眼飞鱼酱① 提交于 2020-01-03 11:32:32
问题 Is it in gravity forms anyhow possible to fire an javascript event on an successful ajax form transmittion? Adding html javascript into the displayed response does not seem to work eg: <script>console.log("successful-form-transmition");</script> 回答1: There's an event fired upon successful Gravity Forms submission: gform_confirmation_loaded . You can use it with jQuery like so: $(document).on("gform_confirmation_loaded", function (e, form_id) { // code to run upon successful form submission })

Making the coupon field mandatory on WooCommerce

微笑、不失礼 提交于 2020-01-03 03:45:30
问题 I was wondering if it was possible to make the coupon field mandatory on Woocommerce. I know that this is possible using functions, however this is slightly above my current skill level so I was wondering if you could give me a dumbed-down/step-by-step version of how to accomplish this. Any answer would be much appreciated. or is there perhaps a plugin that can help me accomplish this? 回答1: I don't know about the function but you can modify the plugin to achieve this in following manner :

Can I Define my own form markup and map with to the form generated using Gravity Form (wordpress plugin)?

霸气de小男生 提交于 2020-01-03 03:27:08
问题 I am using Gravity Forms in my wordpress site. I want a way in which I can define my own form markup and map it to the form generated using Gravity Forms so when someone submits the form it mails to the email id defined in gravity form and also adds to the gravity form section in wordpress backend. 回答1: This will allow for placeholder text in text inputs for Gravity Forms. Gravity Forms Placeholder Text You may have to delete the very first <?php from this block of code. You'll then have an

How to display the featured image of a page in the page itself automatically in WordPress? [closed]

雨燕双飞 提交于 2020-01-02 05:22:04
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Please i need your help with the following. The features images that i am setting for my pages are not getting displayed in the pages themselves. Is there any plugin or something i can do in order to let those featured images that i am setting for posts and pages to get displayed inside the corresponding entry?

How to display the featured image of a page in the page itself automatically in WordPress? [closed]

倖福魔咒の 提交于 2020-01-02 05:22:01
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Please i need your help with the following. The features images that i am setting for my pages are not getting displayed in the pages themselves. Is there any plugin or something i can do in order to let those featured images that i am setting for posts and pages to get displayed inside the corresponding entry?

Wordpress - Contact Form 7 Not Sending to Certain Email

六眼飞鱼酱① 提交于 2020-01-02 05:15:14
问题 I am using Contact Form 7 with Wordpress, but I am experiencing an email compatibility issue. I have the form setup to email to email@domain.ca, domain.ca being the domain of the website hosting the site. The email address exists and works great, however the Contact Form keeps failing on send. If I change the email address to any of my Gmail or other accounts, it works fine. I am looking for ideas or suggestions as to how I might debug this. Is it because the site is hosted on a shared

Wordpress Plugin, get HTML post content

妖精的绣舞 提交于 2020-01-01 12:05:11
问题 I am building a wordpress plugin, that acts when the admin saves a new post. I need to get the content of that post and i am retrieving $_POST['content'] and $_POST['post_content'] . The problem here is that i only get the text inside that content, i need the html. This way, if i was expecting something like <p>Lorem</p><p>ipsum</p><p>dolor</p> , I get Lorem ipsum dolor . Can someone help me please? Thanks 回答1: Well, as @ChrisCarson points out, Wordpress doesn't store paragraph tags in the

How do I fix a wordpress custom theme to work with plugins?

你离开我真会死。 提交于 2020-01-01 05:21:05
问题 This is my first attempt at coding a custom wordpress theme and I'm almost there. There are a few bugs as there are with anything, but I've tried a few different options at fixing them but with no success. The link is www.studiosimplicit.com/wp. My first issue is with nivo slider on the events page (Www.studiosimplicit.com/wp/events). Initially I was having an issue with the plugin itself, where the images were being stacked on top of each other. To correct this I manually put in code to call