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

learn more… | top users | synonyms (2)

0
votes
1answer
20 views

How to calculate custom field value (average)

I want to calculate the average value (or other calculation if possible) of several custom field values in a post. For example, I have 4 custom fields in a post, custom1 to custom4, value from 1 to 4 ...
0
votes
1answer
16 views

ACF Plugin How to make the customer add more fields in the post?

Example: I created a field with the name, "my-field", there can add it on the post, with a button "add another item" is that I want to create a list with several items, we only need to create multiple ...
0
votes
1answer
21 views

How to add a prefix to existing custom fields over MYSQL query?

I've got the problem that after a plugin update I can make the custom fields on our directory site searchable, but only custom fields which get the prefix booking_ to them. Now there are some pages ...
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
1answer
13 views

how to add product subscription field in woocommerce plugin

i've a site in which a product is available for subscription and plans are 1 month, 3 month, 6 month, 12 month and price is vary according to plan. notify the user before 2 day of expiring of ...
0
votes
2answers
19 views

Display custom field if it exists and has a specific value [closed]

I am trying to display the post title if the custom field exists and has a value of apple... <?php if ( isset ( get_post_meta($post->ID, 'mycustomvalue', true ) ) ) && if ( ...
0
votes
1answer
31 views

filtering custom post types via meta data drop down

I'm trying to add drop down filters (that are populated by terms that are in use) to a custom search page for "opportunities" or listings page. Currently I am doing this with taxonomies but doing this ...
0
votes
1answer
34 views

How can I change the publish date based on a custom field?

How can I change the publish date based on a custom field? Author uses a date picker to choose the date for journal entry. The date is used to make a list of all the users journal entries. I can ...
0
votes
2answers
77 views

Up/Down voting system for Wordpress

Looking in all posts with keywords "voting system, upvote, downvote", I can't find a satisfying solution for this issue, except accepting one of the available plugins, spend a lot of time undersanding ...
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
2answers
30 views

How to Display Custom Meta Box only on Specific Page IDs

I am using Magic Fields 2 for custom meta boxes and custom fields, but this situation pertains to any meta box. I have a custom meta box that I want to display on only 3 specific page IDs. function ...
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
1answer
17 views

Search that will look in custom field, post title and post content

I am looking for a way to perform a search, and while performing the search, it checks a custom field named keywords, the post title and the post content. If any of those fields have results like what ...
0
votes
1answer
19 views

Problem On Retrieving Post Meta Data on Custom Column [closed]

I am trying to add Custom post Metadata to a Custom Column. The meta-box has two text fields as Price and Company but When I publish a new post it just shows values from company in Price column and ...
0
votes
1answer
25 views

Modify custom field from front end

If I need to manage a custom field under wordpress, but not from the admin area. In other words, I need that users modify the content of post custom fields from front end. What is the way to do so? ...
0
votes
1answer
32 views

the_meta - no get_the_meta query?

I want to use the_meta as though it were get_the_meta. I want to do this because when i use the_meta in my functions.php file (I'm using a shortcode to enter data to pages), it posts the meta ...
0
votes
2answers
45 views

How to get all custom fields with some prefix in key?

I have near 100 custom fields for each post with prefix "wps_" (examle, wps_imagine, wps_video, etc) and near 20 custom fields without prefix. Problem that I don't know names of custom fields with ...
0
votes
1answer
16 views

Import data from arbitrary CSV to WPAlchemy meta fields

I've created a custom post type with several custom fields with the help of WPAlchemy, and now I need to import a bunch of stuff from some CSV files. I'm using WPALCHEMY_MODE_EXTRACT. By toying with ...
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
1answer
37 views

Delete old post with new post

Hope you can point me in the right direction, with a plugin or function. With "Contact Form 7" logged in users post their info with "Form to Post" plugin. Everything is front end. It is a big form ...
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
2answers
114 views
+50

Rewrite custom post type url's adding meta box values

I've got these custom post types (CPT) and meta boxes: Movies (CPT) Genre (Meta box) Genres (CPT) If one movie is called Die hard then I want the permalink to be: /genres/action/die-hard This ...
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
1answer
29 views

Display movies that apear this day next

This code retrive me the movies that are comming in cinema, i want to be able to list movies that apear this day, next day ... 7 day week Ex: Today is 13.05.2013, i want to list the movies that ...
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
1answer
38 views

Custom wysiwyg editor doesn't execute shortcodes?

I encounter this weird problem.. I'm trying to create a simple & easy website for a client. He wants to embed video's into the page. I use different customfields assigned to specific elements in ...
0
votes
1answer
31 views

custom field in admin columns

Im trying to understand how to get the custom field incr_number into admin columns. However im failing to understand and im googling but not finding a direct answer. It cant be that hard surly? ...
-3
votes
0answers
30 views

How To add Extra Image Upload field In Themes header

I am New To wordpress And i want to Upload One more Image upload field in header For that i have used this code posted which is in Answer Part of this Post Add additional upload field to Custom ...
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: ...
-3
votes
0answers
29 views

JSON API custom fields not showing full content

I have custom edited JSON API plugin and it looks like that http://domain.com/api/posts/getByCatId/?dev=1&cat_id=7 and I get only 5 items but I have much more in database. I try Open file ...
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 ...
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 ( ...
-1
votes
0answers
26 views

Content management where content is divided into many pieces on the same page [closed]

I hope this question is not too inappropriate here. My pages use custom templates. In each of them, the content is divided into several blocks each with its own style. For example : an array of data ...
0
votes
1answer
18 views

Group pages by custom field values

I plan to have each individual product as a page, with custom fields for : Brand, size, feature 1 and feature 2. My question: Will it be possible to build a summary page template say for Brand, ...
0
votes
1answer
50 views

Custom query with category exclusion and post-meta “whitelist”

I have two widgets, one shows News while the other shows everything except News (We'll call the second one Blog). The blog portion is currently working correctly. The News posts are either ...
0
votes
1answer
52 views

Filtering a WP_Query meta_query by numeric values isn't working

That was a very dense title. I have a custom post type "event" which has a Date/Time picker field "event_date" thanks to the Advanced Custom Fields plugin. This Date/Time picker saves a UNIX ...
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
1answer
30 views

Displaying a custom field containing a list creates unwanted markup

I display my custom field like this : <p><?php echo get_post_meta($post->ID, $my_field, true); ?></p> As long as the field contains plain text, the markup is normal : ...
0
votes
2answers
48 views

Interrogate a page within a loop to check template type or custom meta data (Pages vs Posts)

I've spent a few days researching working with WP static pages - as separate from posts. Although I've found useful guidance, I can't seem to find any good tutorials or worked examples that show me ...
0
votes
1answer
83 views

Upload image to wordpress

I'm a beginner writing website and use WordPress and I'm writing plugin that involves profile page (not avatar because this field that I implemented, user can upload image, anything, i.e. Picture of ...
-1
votes
0answers
28 views

Tournament with website visitors voting to choose matchup winners

I am building a website that will have bracket style tournaments matching up movie characters. In the tournament, matchup winners will be determined by votes from website visitors. Visitors to the ...
2
votes
1answer
49 views

WP_query : meta_key with custom rule for specific value

I'm a bit stuck with a WP_Query code. Here it is : $args = array( 'post_type' => 'post', 'meta_query'=> array( 'key' => 'karma', 'compare' => '>=', ...
2
votes
1answer
37 views

Frontend posting - everything saves other than checkboxes?

I have a form on the frontend of Wordpress which is saving all fields except a checkbox array. It displays and saves the correct values if I tick the boxes in the backend post editor, and the ticks ...
1
vote
1answer
39 views

Separate table or usermeta

We are creating custom fields for users like annual income, gender, city, country, etc. There are about 10 odd new fields. We will be importing approx. 30,000 records for each user in a month through ...
0
votes
1answer
67 views

Change Post Meta via AJAX from the posts list table

I've been looking around for this for a while but haven't found anything as of yet. I have a custom post type - "books" and this post type has a custom meta field of "availability". I would like to ...
-1
votes
0answers
27 views

html to image featured image

hi how can i use the script below to be able to convert html to image in wordpress so that when i click a button it generates and set the image a featured image, i wanted to create a metabox in post ...
4
votes
1answer
84 views

Programatically add options to “add new” custom field dropdown

How can I add pre-defined options to the "add new" custom field dropdown? Here's two examples of automatically adding and showing new custom fields: WordPress: Adding Default Custom Fields on New ...

1 2 3 4 5 25