wordpress-plugin

My settings are not saving in wordpress theme options page

▼魔方 西西 提交于 2019-12-04 17:04:43
I am trying to create a theme options page based on WordPress's Settings API. When I go to check the options.php page in my browser (ex. http://mysite.com/wordpress/wp-admin/options.php ), I see an entry for coolorange_options but it is empty. This happened after I added a url, width and height to the text fields. So far, I have enough code written to get the information and store it to the database, but not to retrieve it for anything. I referenced a tutorial in the php comment at the top of the code. Considering that I don't know much php or programming, something must be wrong here, I just

redux framework wordpress calling variable

只愿长相守 提交于 2019-12-04 16:16:33
I have installed the redux plugin via wordpress and great and all. I have been using the demo content to get the used to the framework, but I can't figure out how to call the data in the template? I have been using option tree for a long time and figured that one out.. this is what I thought would be the proper call out but I guess not.. This is the code I thought would get the logo uploaded. <?php global $redux_demo; echo $redux_demo['media'];?> Have you tried this? <?php global $redux_demo; echo $redux_demo['media']['url'];?> maheshwaghmare Redux Framework create an array of MEDIA You can

Extending Contact Form 7 Wordpress plugin by using hooks

我怕爱的太早我们不能终老 提交于 2019-12-04 15:32:04
问题 I would like to create a plugin that uses the contact form 7 hook, wpcf7_admin_after_mail. I want to use the plugin to interface with a CRM system. What I have thus far is the following: //plugin header here function add_to_CRM( $cf7 ) { if (isset($cf7->posted_data["your-message"])) { full_contact($cf7); } else { quick_quote($cf7); } return $cf7; } add_action('wpcf7_admin_after_mail', 'add_to_CRM'); //other functions here I can't seem to get this working. I can't even get the hook to work and

Woocommerce - description in products page

怎甘沉沦 提交于 2019-12-04 14:34:40
问题 I need to add little excerpt from description on my "product" in Woocommerce plugin. I have page like this: http://exploreprague.cz/guides-buddies-2/ and I need to have some description text under the name of each person... is there any way to do it? 回答1: That category page with the products inside is: woocommerce >> templates >> content-product.php And you can find that only function to show the Title inside this page as: <h3><?php the_title(); ?></h3> After that line you can add your own

Wordpress multilanguage plugin [closed]

ε祈祈猫儿з 提交于 2019-12-04 11:44:09
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 9 months ago . I have a blog on Wordpress in which I need to serve contents in several different languages. I don't want to translate the articles, I just want to have some in each of the languages and just have a way of switching between them. I was looking for a wordpress plugin that allows such functionality but so far I found only xLanguage but it's not what I intend to use if for, although it's pretty close.

Send variable from one page to another in wordpress template

混江龙づ霸主 提交于 2019-12-04 11:01:40
I am trying to pass date from one wordpress template form to another. To make it simple, I have created two templates (and associated them with WP pages as a standard page) as follows: <?php /* Template Name: Form test */ get_header(); ?> <form action="/form-result/" method="post"> <input type="text" name="name" size="20" /> <input type="submit" value="Go" /> </form> <a href="/form-result/">Result page</a> <?php get_sidebar(); ?> <?php get_footer(); ?> and <?php /* Template Name: Form result */ get_header(); $name = $_REQUEST['name']; ?> And the name is <?=$name?> <?php get_sidebar(); ?> <?php

woocommerce get list of attribute values

为君一笑 提交于 2019-12-04 10:42:16
问题 I'm using woocommerce on wordpress to create a simple shop site and I've added a couple attributes to a product. These are namely, size and color . Under size I have a variety of values including Small, Medium and Large. Same with color ie. Red, Blue, Green. What I want to do is show these values in a dropdown. Basically just list them out so I can use the values as filters for the shop catalog page. Any help would be great. EDIT: I've delved into the woocommerce code and api docs and only

WordPress: Capabilities for custom post types

匆匆过客 提交于 2019-12-04 09:15:19
问题 I'm writing a plugin which creates a custom post_type. I'd also like the plugin to create a custom role which can only add/edit/delete the new post_type. I've tried several plugins (Role Scoper, Advanced Access manager) and they allow me to redefine or create new roles, but they don't allow me to assign capabilities specific to the new post_type. For example, I want to allow the ability to add/edit my new post_type but NOT normal posts/pages. From what I've read, I can add new roles with the

woocommerce check zip code before placing order

安稳与你 提交于 2019-12-04 08:45:00
问题 As local delivery is the only option (due to product delivery restrictions) I do not want a customer to get to the checkout page and have to fill out all their details and only then discover we do not deliver to their postcode. Therefore, I require the same functionality of the Local Delivery postcode check at the Checkout page, but to be added at an earlier stage in the checkout process, such as on the Cart page? Or any other page, for that matter. Best place can be in product page before

Timthumb can't show image after it's uploaded

隐身守侯 提交于 2019-12-04 07:07:24
I'm using Wordpress plugin called User Avatar, that uses Timthumb for image display. When I open page to show the image, it gives error 500 in the console, and when I use that image link in new tab, I get following error: A TimThumb error has occured The following error(s) occured: Could not create the index.html file - to fix this create an empty file named index.html file in the cache directory. Could not create cache clean timestamp file. Query String : src=http://my.domain.com/wp-content/uploads/avatars/1/1358504649-bpfull.jpg&w=150&id=1&random=1358504649 TimThumb version : 2.8.10 I