wordpress

Wordpress adding google map? [closed]

亡梦爱人 提交于 2021-02-08 12:11:34
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 6 years ago . Improve this question I am working on creating a webpage with WordPress. I just want to use Google map in my site. Like below. I don't think that we need a plugin for this function. How can i make this occur in my WordPress page 回答1: Read this article. I will give you complete reference you your

Change default sorting order in woocommerce dashboard screen

ぐ巨炮叔叔 提交于 2021-02-08 12:01:31
问题 I am trying to change the default sorting order in woocommerce admin screen. I am trying the following code to sort the product page by product name by default. /* Sort posts in wp_list_table by column in ascending or descending order. */ function custom_post_order($query){ /* Set post types. _builtin => true returns WordPress default post types. _builtin => false returns custom registered post types. */ $post_types = get_post_types(array('_builtin' => false), 'names'); /* The current post

Woocommerce - Add username to new order email subject line

人走茶凉 提交于 2021-02-08 11:55:25
问题 Is it possible (and if so any help would be much appreciated) to.... Add the logged in username to the 'new order' emails within woocommerce I can add items such as blogname, date, order number etc but need to somehow get the username on the subject line. So it would be if joe blogs is ordering Subject: New order from Joe blogs - Order number #444 I have found some different suggestions but I have no php experience so if someone can point me to a how to guide or help further that would be

Querying by meta keys in wordpress URL string

99封情书 提交于 2021-02-08 11:52:11
问题 I feel like I've been all around the web and back again looking for an answer to this and it's really starting to grind my gears. Not sure if this is the correct way to do it, but I want to add a query_posts array to a URL in the form of a query_arg. This is our query: query_posts( array( 'meta_key' => 'rank', 'orderby' => 'meta_value_num', 'order' => 'DESC' , 'paged' => $paged, How do I use add_query_arg to pass that to the URL so as to re-order the posts with that meta_key/query_posts array

Hide auto added gift product from WooCommerce catalog

萝らか妹 提交于 2021-02-08 11:49:24
问题 I have the following scenario that I can not solve, could you guide me, either with a plugin or from code? I have the product A and the product B, which should not appear in the store nor can it be added individually as it is a gift. If someone adds product A to the cart, then the system should add product B. It is like a BOGO, but the problem that I cannot solve is that of the free product that must be invisible and not allow to be purchased individually. 回答1: Based on Auto add to cart a

Are there any key value system in post message in iframe communication

◇◆丶佛笑我妖孽 提交于 2021-02-08 11:46:15
问题 My iframe Code Link is http://example.org?pd=123 var currentHeight = $('.comments_holder').outerHeight(); var parent = window.parent; var targetOrigin = "my parent site link"; if (parent && parent.postMessage) { parent.postMessage(currentHeight, targetOrigin); } From this i need to pass the height of the div to the main site And now i also want to pass another parameter to main site var count = 123; var parent = window.parent; var targetOrigin = "my parent site link"; if (parent && parent

How to get the previous URL in Form message

心不动则不痛 提交于 2021-02-08 11:40:09
问题 I am working on a WordPress site, where I have created a Contact Form . So whenever someone clicks to apply for a job advert it takes them to a Contact Form Example site - https://www.inext.se/job/solution-architect/ Application Contact Form - https://www.inext.se/job-apply-form/?id=6770 Now I am trying to get is the previous URL subject/title or the previous URL . In JavaScript, I know it is possible to get it by - <script type="text/javascript"> document.write(document.referrer); </script>

How to get the previous URL in Form message

可紊 提交于 2021-02-08 11:40:09
问题 I am working on a WordPress site, where I have created a Contact Form . So whenever someone clicks to apply for a job advert it takes them to a Contact Form Example site - https://www.inext.se/job/solution-architect/ Application Contact Form - https://www.inext.se/job-apply-form/?id=6770 Now I am trying to get is the previous URL subject/title or the previous URL . In JavaScript, I know it is possible to get it by - <script type="text/javascript"> document.write(document.referrer); </script>

Cloudfront + Woocommerce - cart not updating

大兔子大兔子 提交于 2021-02-08 11:38:45
问题 I have recently added cloudfront to my wordpress site hosted on AWS. At first my cart would not register any products being added to it - so I made a behaviour in cloudfront to not cache the cart, my account and checkout pages. Now my users can only add a single product at a time - after adding a second it overwrites what was added in intially. I believe it must be a problem with the caching behaviour of cloudfront. can anyone help me with what settings I need to get woocommerce to play nice

Displaying custom Select field in Dokan Vendor Dashboard

不羁的心 提交于 2021-02-08 11:37:52
问题 This is question have already been asked here How Add Custom Meta Fields to Dokan in New Product But no one answered that question. What I am trying to achieve is following: Need to display custom field in Dokan Vendor Dashboard, plugin author have answer with this "You have to customize Dokan plugin to add an extra field on the product upload form. Please open dokan-lite/templates/products/new-product.php and in this file, you have to add an extra field. As we do not provide support to