Questions tagged [custom-fields]

WordPress custom fields: author-entered post metadata

Related links

WordPress Documentation: Custom fields

1518 questions
84
votes
11 answers

migrating django-model field-name change without losing data

I have a django project with a database table that already contains data. I'd like to change the field name without losing any of the data in that column. My original plan was to simply change the model field name in a way that would not actually…
sfletche
  • 47,248
  • 30
  • 103
  • 119
25
votes
8 answers

How to add text input to dropzone upload

I'd like to allow users to submit a title for each file that is dragged into Dropzone that will be inputted into a text input. But i don't know how to add it. Everyone can help me? This is my html code code
Duc Manh Nguyen
  • 768
  • 2
  • 8
  • 13
24
votes
3 answers

Adding custom field to product category

How can I add custom fields to product category? I have added custom field to product but I can't find any extension which provide facility to add custom field to product category.
Vidhi
  • 2,026
  • 2
  • 20
  • 31
24
votes
8 answers

How to get Advanced Custom Fields field key from WordPress database?

I’m using Advanced Custom Fields with post-type. I have some select custom fields, and I want to show all the label choices from each field. I’ve tried this way. $field = get_field_object('hair_color'); $hair = $field["choices"]; foreach($hair…
user1432966
  • 523
  • 1
  • 9
  • 20
23
votes
3 answers

Woocommerce get Product id using product SKU

I'm working on a separate templates page, which page gets woocommece product sku using custom field of wordpress post. i need to get product id of that sku for create woocommece object and do further things, here is my code. global…
Suneth Kalhara
  • 1,116
  • 4
  • 16
  • 40
18
votes
1 answer

WooCommerce : Add custom Metabox to admin order page

I am currently successfully adding a field to my WooCommerce product pages which is showing the value: in the cart (front end), on checkout page (front end), on order page (front end), and in admin individual order page (back end). The problem:…
MV-123
  • 367
  • 2
  • 3
  • 14
15
votes
1 answer

Get product custom field values as variables in WooCommerce

I am using Woocommerce for registration for classes; each class/product has up to 20 custom fields, which I need to return as variables in order to highly customize the checkout and order details pages and customer email template. I don't just want…
GunStreetGirl
  • 183
  • 1
  • 1
  • 5
14
votes
3 answers

WooCommerce REST API Custom Fields

Is it possible to access custom fields for orders, products, customers via WooCommerce REST API? If not natively, then what plugins or workarounds or hacks are out there that work? Thanks!
Amjad
  • 1,627
  • 5
  • 21
  • 41
14
votes
1 answer

jira python customfield

How do you determine the name of a custom field in jira-python? When I retrieve an issue, my custom fields show up as customfield_xxx The names on my screen are 'project', 'name', 'due date', etc. Short of putting a value in each field, then seeing…
Paul Nelson
  • 1,291
  • 4
  • 13
  • 20
11
votes
1 answer

ACF repeater based on product quantity generating checkout fields in Woocommerce

I am using woocommerce-advanced-checkout-fields plugin and added a repeater field to the billing section as follows As you can see in the image above the repeater field "Name/Email" is applicable to the product "Belt" Now when I go to buy the…
Rinsad Ahmed
  • 1,877
  • 1
  • 10
  • 28
11
votes
1 answer

Add a custom field in Woocommerce Edit Account page

I have custom checkout fields favorite_color that users can fill in during checkout (not required),imilar to other default checkout fields... In My Account section in "Edit Account", I Would like to add favorite_color custom field to allow customer…
Josione
  • 145
  • 1
  • 3
  • 8
9
votes
2 answers

Add custom field data to WooCommerce order

I have a custom field on my WooCommerce single product. It sends to the cart fine, it displays on checkout fine, it shows in the order in the dashboard fine. What I am now trying to do is set the value as a custom field in the order page so I am…
MV-123
  • 367
  • 2
  • 3
  • 14
8
votes
4 answers

Get value of custom user field in Drupal 7 template?

I'm building my first site with drupal. And I made a custom user field: Full name. Now I want to get the value of this fild in my template to say “Hello, %username%”. How do I do that?
Konstantin Bodnia
  • 1,372
  • 3
  • 20
  • 43
8
votes
1 answer

Complex custom_field search with meta_query

Background I am using Advanced Custom Fields Pro to manage my custom fields and they have a "repeater" field which contains sub fields that are stored as repeatername_X_fieldname where X is the row number of the repeater. I have a custom post type…
trex005
  • 5,015
  • 4
  • 28
  • 41
7
votes
1 answer

How to make Wordpress custom field input text translatable with qTranslate X?

I have some wordpress custom fields (I'm not using ACF or any other plugin for this) and need to translate them using qTranslate X in wp-admin. The fields that I created with wp_editor are working, but I don't know how to make it work with default…
Thiago Elias
  • 939
  • 1
  • 6
  • 21
1
2 3
99 100