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:…
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…
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…
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…
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(
…
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.
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"…
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 =…
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…
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…
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…
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…
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…
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…