Custom Fields are fields that can holds arbitrary extra information known as meta-data.

learn more… | top users | synonyms (2)

2
votes
0answers
41 views

Automatically populate a hierarchical taxonomy from a custom field

I've got a vexing how-to that I've not found any help on. I have a custom post type that has a custom field with a date in it (format: yyyy-mm-dd-t). When a post is published or edited, I would like ...
2
votes
0answers
39 views

Query meta field using between

I'm trying to Query some lattitude and logitude and then I get some long numbers and apperently the Query dont like that. Let says I have these in the database Meta-key: lat Meta-value: 54.3415000 ...
2
votes
0answers
94 views

Custom Fields vs Separate Table

I have a client who wants to be able to upload Posts using information stored in a CSV file. I've already got this portion working. Just recently, I changed the CSV File Uploader from pure PHP to an ...
2
votes
0answers
142 views

Change post format using custom field

I'm creating a theme using the CF Post Formats plugin. But I've run into some trouble I don't know how to solve. Here's what I want to be able to do: Create a new standard-format post Enter a url ...
2
votes
0answers
143 views

How to put enctype=“multipart/form-data” in categories form?

I had success putting the code below to include enctype (for images) in custom post type forms, but I'm not able to use it in categories form... is this possible? Thanks. add_action( ...
1
vote
0answers
18 views

Admin Area Custom Type Search By Meta Fields Without Title & Content

I have a custom post type that uses several meta fields. In the admin area I would like to be able to search by those meta fields. I have implemented this currently in my functions.php with this code: ...
1
vote
0answers
26 views

Copying Custom Meta Values from existing post to a duplicate post

I'm trying to revise an existing WP plugin BU Versions to accept different custom meta field values from items I've set-up using the Advanced Custom Fields (ACF) plugin. BU Versions will copy over ...
1
vote
0answers
57 views

Unique key for each row in a repeater field

Is it possible to have a unique key for each sub fields in a repeater field? I don't want to use the array index, because the array index can be changed, when adding new rows between existing rows. I ...
1
vote
0answers
26 views

Meta Query And/Or

My question is very similar to Meta Query with AND & OR? . This question was answered in 2011 by @Otto. With the exception that my logic is different. I want to query, for example, posts with ...
1
vote
0answers
75 views

$form_fields from attachment_fields_to_edit returning empty array

I'm trying to remove the caption field from non-images attachments' edit page, which should be a simple matter of unset($post['post_excerpt']), but I can't unset a non-existent value... Looking at ...
1
vote
0answers
18 views

How to link keywords in custom fields?

I have come across different WordPress plugins that will automatically link/hyperlink keywords--to external links--every time they appear throughout posts. Here's an explanation of what I mean: Site ...
1
vote
0answers
52 views

Updating Other User's Metadata

I have created a custom user meta field, and that value is being used to get data from an external API and display it on the user profile page. On admin pages I have used the following code to make ...
1
vote
0answers
29 views

Displaying and searching Custom Posts

I'm trying to convert my existing web site from old-school HTML to WordPress, and have created a series of Custom Posts for my whisky tasting notes. However, I'm stuck trying to set up a page that ...
1
vote
0answers
24 views

URL Rewrite fires when retrieving a custom value?

I'm working on an old WP Multisite instalation (3.0.1) and something weird is happening. The guy who built the site made a decision to store direct URLs instead of Post IDs to a Custom Field. And ...
1
vote
0answers
220 views

Uploading PDF using Media Uploader

I have been using a custom code to upload images to Wordpress using custom metaboxes. Here is the code: <script type="text/javascript"> jQuery(document).ready(function( $ ) { var ...
1
vote
0answers
62 views

Add first url to custom field on publish_post

I post a lot using Press This and I allow other users to post. Lately I noticed some duplicates and I m trying to find a way to stop this. I am trying to get the first link from the post, add it to a ...
1
vote
0answers
216 views

Meta query with multiple custom fields for archives page ordering problem

I'm modifying the query for archives pages so that the posts showing up on year, month or day pages are queried by there custom field (start-date and end-date) and are sorted by custom star-date ...
1
vote
0answers
58 views

Why orderbyb meta_value_num won't affect the generated SQL Query order?

I've exhausted myself with this and I couldn't figure out why when I do this $myposts = new WP_Query( array('numberposts' => 5, 'offset' => '0', 'post_type' => 'noticias', 'orderby' => ...
1
vote
0answers
34 views

Making Author a type in field

I'm working on a site where the posts will be mostly by one off contributing authors (submited writing to our editors). What would the best way to be able to write a value into the author field of a ...
1
vote
0answers
116 views

Multi-select field for Taxonomy can't save the value

I'm trying to create a multi select field for Taxonomy pages, and the problem is in saving all the selected values, for example if I choose couple of elements in the select field and save it, it will ...
1
vote
0answers
144 views

Trying to perform complex custom field query with order by set to field value

I've got two custom fields for event posts: event-start and event-end. When I'm querying for current events, I'd like to show any post where the event-start OR the event-end is greater than or equal ...
1
vote
0answers
45 views

Show fields based on taxonomy selection in editor

I use GD CPT plugin for custom taxonomies and post types. I wonder if it is possible at all to change the fields user sees in the editor, based on something else (lets say a taxonomy). Example: I ...
1
vote
0answers
187 views

filter custom field values $min $max

The user needs to query posts by entering a $minPrice, $maxPrice and a category value. Here is my query which returns no results: function result() { $result = array( 'cat' => ...
1
vote
0answers
49 views

Custom field query without duplicates results

I have categories as cities like london or new york I also have a custom field called Location where I usually put the name of a restaurant. I am trying to show on a separate post/page all the ...
1
vote
0answers
130 views

Display “Join Group” Button outside Buddypress Group by ID

This is pretty much a very similar question to my previous one: Buddypress:bp_get_options_nav outside the Group? I have the Group ID in my Post Meta, I also have the same slug. Each post has a ...
1
vote
0answers
88 views

Automatic Shortcode Creation with Custom Fields

This is basically a php issue as I'm fairly new to it and can't figure out how to code things the way I want. I am basically trying to pull information from custom fields (grid reference) and post ...
1
vote
0answers
271 views

filter search custom field query

I'm looking for way to filter search results. This is what I have so far a custom post type of "doctors" in each "doctor" post, there are numerous custom fields (male or female, location, ...
0
votes
0answers
22 views

Custom field for default gallery

How I can add custom field in default WordPress gallery? in visual editor and in shortcode.
0
votes
0answers
16 views

Form fields based on custom fields

I need to create a contest forms where the fields are based on values in several custom fields. The form layout is to be somewhat static, except from the contest questions (labels) and the type of ...
0
votes
0answers
23 views

Problem with custom fields for custom meta data

I'm trying to fix an problem in custom fields for meta data information. I already added the code to add some code: add_action("admin_init", "admin_init"); function admin_init(){ ...
0
votes
0answers
10 views

set categories based on custom field

i have a xml feed coming into my wordpress site and what i need to do is create a function that automatically assigns categories based on the valus of 2 custom fields so i have salaryband (name of ...
0
votes
0answers
32 views

List number of posts with a specific meta_key for each meta_value

I would like to list my posts by a specific custom field. At the same time, for each custom field, I would like to count the number of posts with a specific custom field value. I have a custom field ...
0
votes
0answers
20 views

Complex WP_Query Using Post Date And Post Meta

I am using Wordpress as a CMS on a website which has standard posts, a custom advert post type and a custom event post type. The event post type has some custom meta which stores the event start date. ...
0
votes
0answers
28 views

Search with meta_query and tax_query

I'm working on a little database for series based on wordpress. I've implemented a custom post type called "anime", some taxonomies (Genre, a_types..) and a lof of customfields. (based on acf). Now ...
0
votes
0answers
27 views

Custom WP_Query for WordPress Search Results with meta_query

I am using a custom query to generate my search results. The code I am using works perfectly without the meta_query variables in my arguments array. I am trying to compare multiple custom fields with ...
0
votes
0answers
38 views

How to allow user to add to, but not edit, a post?

I saw something very nifty on peerwise (basically a med students social network for making exam questions) that allows people to make additions to something but not edit the original post. I ...
0
votes
0answers
14 views

Show custom image size when all I have is the image URL

I'm using the Types plugin for a client's project and they want to output some gallery images as thumbnails which link to the larger versions. The problem is the full size versions are MASSIVE (I ...
0
votes
0answers
22 views

How to display all values of a multicheck array if they are checked?

I'm really a rookie to PHP, i'm using the customfield fields&meta boxes plugin for wordpress. Normaly when i register a customfield, i display them by using: <?php if ( ...
0
votes
0answers
20 views

Post thumbnail size for custom field only

I'm using advanced custom fields (the plugin), and I have some image upload fields. The images that I'm uploading via this custom field need to have a specific size, but I don't want to create images ...
0
votes
0answers
64 views

Create multiple checkboxes in a metabox

I am trying to figure our how to modify this code so that it creates a checkbox for each entry in the meta_key. It is a meta box that will be used on the menu page. The meta_key has multiple ...
0
votes
0answers
47 views

Query recent posts by author

I'm fairly new to wordpress but trying to get recent posts by a specific author. The following code displays only most recent bog posts. I am using a custom field to get the author ID. EDIT by ...
0
votes
0answers
23 views

Problem in custom user registration form

Some one ask this question here but answers just refer to use different plugins. My problem is same but I do some thing different. I create user custom registration page with name of register.php and ...
0
votes
0answers
31 views

Wordpress custom field being lost on wp_update_post, with a twist

I'm using wp_update_post to programmatically add a title and tags to posts from the front end. I'm running into a hair-tearing issue with custom fields in the process: one of the two custom fields ...
0
votes
0answers
12 views

How to add a new custom field by AJAX?

Just like AJAX_in_Plugins and previous question update-custom-field-meta-value: jQuery.post(ajaxurl, data, function(response) { // update the custom field value without reload ?? }); I make ...
0
votes
0answers
25 views

How to make affiliate links show up in profile area

I have created a memberships site that is offering four different programs in it which people are able to put their own id for each program in. What I want to achieve is to create a custom field to be ...
0
votes
0answers
15 views

Create a generic post type and define its metadata via another one used for categorization

Ok, I would like to share with you an idea I had and ask you what do you think about it and possible drawbacks I'm not able to forsee. I'm building a database for an association with many kind of ...
0
votes
0answers
17 views

Hide Widgets depending on Custom Field Value

I have Wp-Types Toolset as my WP building blocks and with it I created a Custom Field Group called Featured Listings. Within the group I have a field called Featured Ads and that has Radio Button ...
0
votes
0answers
24 views

field of metabox is not visisible outside the function

I have a metabox with two static fields and one more field I add in ingredients_show_box function. All three fields are visible by $_POST when I save data. But the two static fields are visible by ...
0
votes
0answers
23 views

Custom Field data only shows after manual post update

I have a custom field [address] that converts a street address and displays it on a google map on the front end post. Upon manual post update, the latitude and longitude address co-ordinates ...
0
votes
0answers
32 views

Markup Validation Service problem with alt images

Hy,i have try over a week to validate 4 images that are retrived by a code with GD Star Rating plugin This is the code i have: <?php wp_gdsr_render_rating_results(array('template_id' => 49, ...

1 2 3 4 5