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

learn more… | top users | synonyms (2)

0
votes
0answers
48 views

Archive Page - How to output a specific custom field instead of post content

I have several custom post types and I am using archive.php and it works fine, but now the client wants to replace the post content with a custom field called ingredients for the custom post type ...
0
votes
0answers
92 views

Show/Hide Custom Meta Boxes using any plugin

How can I show and hide the custom meta fields created using Advanced Custom Fields plugin? I want to handle the publish and unpublish of the fields and values from the admin panel. Is there any ...
0
votes
0answers
132 views

Media Attachment Custom Meta Fields not saving in Media Uploader when using jQuery UI Autocomplete

I am trying to write a plugin that adds a custom meta field to image attachments to give images a credit field. I use the 'attachment_fields_to_edit' and 'attachment_fields_to_save' filters. ...
0
votes
0answers
24 views

Why is a post different than a page with regard to custom fields?

I'm sure the flavor of this question has been beat to death, but why is it that I can add custom fields to pages and other custom page types, but when it comes to posts, the only info I find online is ...
0
votes
0answers
51 views

Add class from custom field into widget class

How would I add a class coming from a custom field to a widget? I know I should put it somewhere into $before_widget ... in my case this is 'before_widget' => '<aside id="%1$s" class="widget ...
0
votes
0answers
56 views

Display Category only if there are posts of custom type

I need to do a small modification on WP site done by someone else. And my WP experience is close to zero. But I'm comfortable with PHP. Wordpress Version: 3.8 Plugins: ONLY Advanced Custom Fields ...
0
votes
0answers
164 views

Sort Posts by custom fields inside a table

I am trying to build a table in each category pages where all the posts from the category will be displayed and make them sortable by custom fields value. I searched a lot about this and I am not sure ...
0
votes
0answers
90 views

Query Posts Via WordPress URL

I wanted to learn more about querying post types and their custom fields in WordPress. I've got two questions... I've followed this tutorial on Advanced Custom Fields and am trying to understand what ...
0
votes
0answers
303 views

Multiple Frontend Filters Using Advanced Custom Fields

I've got a series of custom post types set up, and a large amount of custom fields are linked to these post types via the Advanced Custom Fields plugin. I want to set up a series of checkboxes on the ...
0
votes
0answers
31 views

Custom field in title

I'm trying to change the posts with no titles to 'custom field' + 'mystring'. So far I got this code. add_filter( 'the_title', 'ta_modified_post_title'); function ...
0
votes
0answers
404 views

How to add fields to _wp_attachment_metadata?

I'm developing a custom metabox with the possibility to upload images and give the user the possibility of deciding whether those images are to be displayed on the front end or not, instead of having ...
0
votes
0answers
26 views

custom fields multiple image fields

i am building an artist's archive with WP to host a variety of entries (custom post types such as "photographs", "artworks", "publications" and etc.). due to the large quantity of data, i am ...
0
votes
0answers
58 views

Self-added mysql column as custom fields value

I am trying to add a value from a column that I've added myself to the wp_posts table as a custom field. So right now there is a column called 'shares' which holds an int value and I want that int ...
0
votes
0answers
46 views

Facebook like counter in custom field

is it possible then someone click on like, to take action to update post custom field with counts ? I just found only with http://graph.facebook.com/URL Maybe will be smarter solution ? Or ideas ?
0
votes
0answers
312 views

Add Action Hook function to WP-User-Frontend in a custom post field

I'm using WP-User-Frontend plugin on my wordpress site to allow users to submit posts from the frontend. I only allow users to submit urls. So I created a new form in WP-User-Frontend and gave it 2 ...
0
votes
0answers
159 views

retrieve custom field “latitude, longitude” then add to google map

I need to call a custom field called 'latitude' and 'longitude' and then take those two values and pass them as a pinpoint in google maps. I searched and found this: Pass custom fields values to ...
0
votes
0answers
76 views

Problem importing posts (get_categories is empty)

I want to import posts through an RSS plugin and events through a calendar plugin, and then have these plugins set the category for these imported posts. Then, using a hook (see code below), I want to ...
0
votes
0answers
50 views

How to call one custom field value if another custom field value is equal to today's date

I'm building a website for a school division in Canada, they help organize their days by assigning a school day to each day of the week. There are 5 school days, and so they do not always end up on ...
0
votes
0answers
289 views

WP Query multiple select form - meta_query help

I am creating a multiple filter - as in I could filter by all the options if I wanted to do so, i.e terms, calories & price in my case. I am having trouble with meta query args. At present I can ...
0
votes
0answers
28 views

wp_postmeta are updated for only one page

Code below only updates wp_postmeta of one specific post, not all the posts. On other pages the meta_key is not even added to the table, so it is not the problem with saving but with something else, ...
0
votes
0answers
112 views

Woocommerce - Get or calculate user totals and assign to role

I need some help with GET and/or calculate the sum of all orders made by specific user and if conditions is 'true' assign them to specific user-role. for ex: Find all users. Get all "totals" for ...
0
votes
0answers
44 views

Search a specific custom field values in a specific custom post type

Hello WordPress developers, In my site, I have created a custom post type called "BOOKS". And In that custom post area there's a custom data field called "Author". Now, what I want is add a search ...
0
votes
0answers
47 views

Delete duplicate custom field with specific vaule

I'm trying to delete specific custom fields that have been duplicated, however i only want to delete the fields with the value 0 in them. I currently have this code that will delete the duplicate ...
0
votes
0answers
33 views

Custom meta boxes for different custom post type on multisite WP

I have two custom post type defined ('acting' and 'voiceover') and custom met boxes defined for both of them. I'm able to save, update and delete on the acting custom post type. But if I add the ...
0
votes
0answers
88 views

Check before publishing, if already exist post with custom field value

I want to use custom field value unique post to post. like Email / student ID / Driving Licence as value of custom field. It has to be unique like Post ID. When I am publishing same value in custom ...
0
votes
0answers
72 views

WP_Query with intersection of post meta field and user meta field

On the site I'm building, each post has a serialized array of strings. Let's say post ID 1234's value for my_site_teams is array( 'Chess', 'Cheerleading', 'Football' ). Each user also has a ...
0
votes
0answers
76 views

WordPress Page Template to Display Page Title, Custom Field, and Date

I'm currently attempting to create a page template that will display all posts by the current logged in user, a particular custom field from those posts (i.e., Item Status), and the dates those posts ...
0
votes
0answers
162 views

Update Post Meta of crowdfunding plugin on click front end

I'm using the astoundify crowdfunding plugin which has a lot of custom fields while creating a campaign. I'm trying to create a save and preview functionality on that page. There are at least 20 ...
0
votes
0answers
14 views

working with newest post from plugin

I am going to write a wordpress plugin which will execute when user submits a new post. Suppose, user wrote a new post and pressed the submit button. Now, I want to save the post as a txt file in my ...
0
votes
0answers
34 views

Add a custom field to post

I want add a column to my table wp_posts with name "address". So EVERY post have address like field. But i don't know how i can manage the save from Add Post(admin)... I have looked into hooks, but i ...
0
votes
0answers
60 views

wordpress meta_box data don't save

I made this metabox with an input item and two select items(a dropdown and a checkbox). When i write something in the input item or i select something it disappear when i update the post. Another bug: ...
0
votes
0answers
183 views

Adding Custom fields to woocommerce edit order page

I have a woo commerce shop selling dated courses... as the courses vary in content slightly (even if they are similar in content) and because we need to have courses listed in date order, (we have ...
0
votes
0answers
117 views

Custom Posts Hierarchy? (State/City/Restaurant)

Question: What is the best way to create a hierarchy structure (also called parent/child relationships) between custom post types? For example, we currently have 3 post types: States, Cities, and ...
0
votes
0answers
80 views

Meta Box Data added to header redirect

I got a lot of my code from this post: Create more Meta Boxes as needed What I need to happen is the user input a code and it redirects them to a specific url. I know I'm grabbing the data correctly ...
0
votes
0answers
64 views

Set post title and slug from meta fields not working

I have a custom post type where I have the post title disabled. I want to set the post title and slug from some custom fields. I was using this and it worked great, but since I've upgraded by site to ...
0
votes
0answers
66 views

Sticky (or any boolean field) taxonomies?

I would like to add an extra field to a custom taxonomy, wich I would use a little bit like sticky posts, this way I could have a menu with some special taxonomies, is that posible? I can't seem to ...
0
votes
0answers
86 views

Wordpress sort custom field values in alphabetical order

I am using WordPress Custom Content Type Manager to build a Literary Agency website. The page I'm stuck on is the Authors page which displays thumbnails of all the books related to the author. The ...
0
votes
0answers
133 views

Custom field template missing for some custom post types

I'm completely new to WordPress and I am supposed to maintain a website made by someone else. This website has multiple custom post types. For each custom post type, there is a custom field template. ...
0
votes
0answers
49 views

Gravity product fields to custom post type

I tried using Gravity Forms + Custom Post Types (http://wordpress.org/plugins/gravity-forms-custom-post-types/) to add a product field as an array into a metabox of a custom post type, but the option ...
0
votes
0answers
92 views

Custom Field: Display only if a specific key is selected outside the loop

I might be doing this all wrong. I have a custom field called "enable_adsense" and the value can be either "yes" or "no" What I'm trying to do is display something if the value is "yes" and something ...
0
votes
0answers
132 views

Advanced Custom Fields Repeater sorting by category

Basically in my ACF repeater I have a select field and I want to display the content in sections that relate to the value of the select field..? Example: In the select field I have four options.. - ...
0
votes
0answers
24 views

Sort By Custom Field - Strange Problem

I have a site where I'm posting some of the post at Features with a meta key name "Listing Type" and meta value "Featured". Now the problem is when I use: query_posts($query_string . ...
0
votes
0answers
38 views

How to implement checkbox with Front-end Editor

I can't implement editable post meta checkbox with Front-end Editor plugin (http://wordpress.org/plugins/front-end-editor/) Here is the code: <?php editable_post_meta( get_the_ID(), ...
0
votes
0answers
80 views

modify facebook like button to also write to database

I've tried out some solutions to store the facebook like counts of my wordpress posts inside my database. I've been doing that by making a HTTP Get request at http://graph.facebook.com/ at pulling in ...
0
votes
0answers
755 views

Integrate Custom Post Type Events into Calendar

I've got a custom post type called Events on my site with a custom field called event_date created via Advanced Custom fields that stores its value in yymmdd format. Everything works just fine and I'm ...
0
votes
0answers
70 views

Adding custom fields to the search and results

Im using the plugin "WP Search Suggest" to suggest in the search field. Now, the plugin works good, but it only suggest and search titles. i looked in the plugin and found this: $query_args = ...
0
votes
0answers
127 views

Plugin or shortcode for ISBN number?

I have a Woocommerce site with a catalogue of books. Each book has an ISBN (or EAN) number entered in a custom field. I need to do two things with the ISBN, and I don't want to have to manually ...
0
votes
0answers
175 views

WPAlchemy repeating field creates duplicates

I'm using WPAlchemy to create a repeating image field. I am getting some very strange behavior from it. When I add the first image, it behaves as expected - the image URL is put in the image field. ...
0
votes
0answers
658 views

add custom fields in custom taxonomy meta box in wordpress-3.5.2

Unable to add custom fields in custom taxonomy meta box in wordpress-3.5.2. I have checked solution in various blogs but Unable to solved this problem. I am using wordpress-3.5.2 What I am trying is ...
0
votes
0answers
90 views

Is it ok to delete empty meta values

I'm using database peek http://wordpress.org/plugins/database-peek/ to show my database structure and have noticed that wp_postmeta has 95073 rows in it. I noticed that a large part of them have ...