Questions tagged [custom-fields]

WordPress custom fields: author-entered post metadata

Related links

WordPress Documentation: Custom fields

1518 questions
0
votes
1 answer

Wordpress conditional value query issue

I'm having an issue with the conditional value query issue. I want to query 2 posts, if the value at Minimum Price, is less then 30 euro. Then query 2 posts. It's a affiliate website, with around 1200 posts with different content. My code is at:…
0
votes
1 answer

supersized jquery plugin extra field

Can anyone help show me how to add an extra field to images in supersized jquery plugin? Currently you have options for the below: {image : 'IMAGE_PATH', title : 'IMAGE_TITLE', thumb : 'IMAGE_THUMB', url : 'LINK_URL'}, I'd like to add two extra…
Shae
  • 319
  • 1
  • 4
  • 20
0
votes
1 answer

Where to enter custom fields meta_key for customized archives?

I have a post_type called books, which has custom fields for author name, publisher name, etc. I want to create pages where publisher or authors are grouped. For example, "Penguin" or "McGraw Hill". When a user clicks on "Penguin" out of the…
PKHunter
  • 682
  • 2
  • 13
  • 28
0
votes
1 answer

Virtuemart 2.0: How to exclude the base price from the total

I have products in different sizes. Each size has a different price. The different sizes and prices are setup via custom fields on the product. I filled the total price of the product in the custom field value (thus not the incremental value +10…
0
votes
1 answer

Is it possible to prevent a specific metafield from updating in wordpress?

I want to prevent wordpress from saving the year, month, and day arrays. I use JavaScript to combine the 3 in to one value in the hidden input, therefore I wouldn't need the 3 to store in the database. How would I do that? $meta_box = array( …
Craig
  • 133
  • 1
  • 13
0
votes
1 answer

Modify custom field after save_post

In my custom post type, once the user saves the post, is there a way to check the value of one of the fields and update it? The value I will insert will depend on the post's ID so save_post needs to be used in case it's a new post.
enchance
  • 29,075
  • 35
  • 87
  • 127
0
votes
2 answers

Not able to add fields to my content type in Drupal 6

In my localhost drupal site I have created a content type "Scholarship". Now I need to add few more fields (checkboxes, radio etc) to it. The problem is, I cannot see "Add new fields" option anywhere on the page. When I click the "Manage Fields"…
codeinprogress
  • 3,193
  • 7
  • 43
  • 69
0
votes
1 answer

update custom field if blank

need to update a custom field value if it is blank mis if it has any value not want to do anything I want to update only if it is empty code: $custom_fields = get_post_custom($post_ID);//Current post id $my_custom_field =…
0
votes
1 answer

Filtering a Query by custom field first letter - Wordpress

I'm working on a directory staff listing. I went to a custom solution because plugins for this purpose were too complex or too simple for what I was looking for. So I created this custom post type "staff" with custom taxonomies attached as well to…
Jaypee
  • 1,272
  • 5
  • 17
  • 37
0
votes
1 answer

Difference between Compress and Clean method in Django Form Fields

I'm writing a custom date field for Credit Card Expiration Fields. I've noticed that in custom field examples, there are two major part that we need to override, clean and compress methods. I know that we can validate and change return values of the…
iva123
  • 3,395
  • 10
  • 47
  • 68
0
votes
1 answer

Wordpress custom field - search-results sorted by value

I have a custom field called "rating" with value from 1 to 10. What I want is that you can choose (like click on a button or something like that) to sort the search-results depending on the rating. I've found this code. But the problem is that you…
Helena
  • 115
  • 1
  • 3
  • 12
-1
votes
2 answers

Display image if post's custom field has specific value

How can I display certain image in a post if that post contains a specific custom value. For example, I have two posts, one has a custom field named top_post and its value is true. The other one doesn't have that value at all. I want the one with…
rlab
  • 449
  • 1
  • 7
  • 24
-1
votes
0 answers

Show custom fields in the billing address section Woocommerce

I have added custom fields in the billing address in Woocommerce checkout page, this works fine. Now I would like to show the value of these fields custom fields inside the "billing address" box in the email and on the order summary page in "my…
-1
votes
2 answers

How can I add multiple form fields (at once) with an 'add new fields' button

See http://jsfiddle.net/jFzhC/ for the button I'm looking for. Although, this only allows for one input field to be added at a time. How can I display 3 fields, horizontally aligned, where the 'add new fields' button creates 3 additional new…
chasemb
  • 167
  • 6
  • 20
-1
votes
1 answer