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

learn more… | top users | synonyms (2)

5
votes
1answer
52 views

How to protect pages with double authentication: password + email (in custom field)

I would like to extend the WordPress password protection of posts by adding extra input field for user email. So in order to see the content user will have to know the password and previously given ...
0
votes
0answers
6 views

Wordpress pie register custom registration [duplicate]

I am using pie register to create a custom registration page for my users, I am having a problem which is I want to add an option where when my user selects from a radio button either they have kids ...
1
vote
1answer
299 views

Set post title from two meta fields

In a custom post type I have post titles disabled, however in the list of posts and in the slug it just shows the title as "auto-draft". I want to automatically take two pieces of post-meta and make ...
0
votes
2answers
118 views

Validating custom meta boxes with jQuery results in posts being saved as draft instead of published post

I have a custom post type with a bunch of custom fields. I want to validate the meta box input with jQuery as soon as you press the Publish button. Here's what I have (I left out all my validation ...
0
votes
0answers
20 views

Humanmade CMB | How to use checkboxes and radio buttons

I would like some help or advise for using checkbox and radio fields in HM CMB class. Where I am so far I've been using the class to add all types of fields to my projects, with repeatable groups ...
0
votes
1answer
78 views

WP_Query and two custom fields returns no posts

Having trouble with WP_Query returning no posts when filtering on two custom fields, although testing for each custom field individually works perfectly. After reviewing documentation for custom field ...
1
vote
1answer
237 views

Getting movie and serial on actor page

I'm building a cinema site, I came with a problem, let me explain: Movies- are stored in Post's Actors- are stored in Post Type - persoane ( taxonomy= lista) Serials - are stored in Post Type - ...
2
votes
2answers
2k views

Add a checkbox to post screen that adds a class to the title

I'm needing some posts to have different title colors than others, and I figured this would be most conveniently accomplished by some sort of check box on the post creation/edit screen. How would I go ...
0
votes
0answers
36 views

custom taxonomies are not showing up in get_taxonomies

I've made several taxonomies through the custom post type ui manager but i am not able to call them with get_taxonomies and my get_terms is not working either. Is there something I have to do after ...
1
vote
1answer
993 views

get_pages sort alphabetically by meta value

I operate a real estate website, and I have a list of homes we are selling. I am using a bunch of custom fields to store information about the homes. When you click on a home in the home listing page ...
0
votes
1answer
367 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 ...
2
votes
1answer
108 views

Custom Meta Field - Youtube embed

I created a custom meta field and I want to use it to embed a youtube video into the post. It works but when I post a code like this: <iframe width="640" height="360" ...
3
votes
3answers
7k views

How to Add Custom Fields to a Custom Post Type?

Ok, so I have registered a few custom post types and a few taxonomies. Now, for the life of me, I cannot figure out the code I need to add a Custom Field to my Custom Post Type. I need a drop down ...
0
votes
0answers
39 views

Use Custom Field As Meta Box In Post

I recently asked on this forum how to create a beta box using custom field, which was answered but with a not so right answer, but it helped me. For example, there's a custom field that I use called ...
0
votes
1answer
17 views

Add capability for editors to modify custom fields

Editors don't have a way to edit custom fields and I'm not seeing the capability in the WordPress codex. Is there a way to give access to that without making a user an admin?
3
votes
3answers
2k views

Using meta query ('meta_query') with a search query ('s')

Trying to build a search that not only searches the defaults (title, content etc) but also a specific custom field. My current query: $args = array( 'post_type' => 'post', 's' => $query, ...
0
votes
0answers
18 views

Cannot save post meta data as Administrator in Wordpress

I have an wordpress installation at yogazoga.com with several custom post types. When i try to add meta data to posts through admin panel it simply does not work. See the post at: ...
0
votes
0answers
22 views

Custom field as Slug

I would like to ask if it's possible for a custom field to become a slug. Like if I have a custom field of "when" whose value is "today", I would like the address of the post to be ...
2
votes
2answers
467 views

Show posts on a Google Map

Through the custom fields, I assigned to each post its geographic coordinates (latitude/longitude). Now, I'd like to show a Google Maps with a marker for each post. Do you have any suggestions on ...
0
votes
1answer
34 views

Best Practice for Changing Custom Fields

I'm using the Advanced Custom Fields plugin for a project I'm currently working on. From what I understand, ACF stores its values into WordPress' Custom Fields. What I wanted to know is what's the ...
0
votes
0answers
44 views

add_post_meta to repeatable metabox from frontend

I'm creating new post from wordpress frontnend. I have managed to create post using wp_insert_post & added single metabox values using add_post_meta successfully. but I'm unable to set values of ...
0
votes
0answers
59 views

Course listing with multiple dates

I'm trying to build a course listing (custom post type) - each course has multiple dates assigned to it, but I'm failing miserably (mainly due to my poor PHP skills!). I'm trying to use standard ...
0
votes
0answers
18 views

Order a query by meta_value and then by post_date

I'm using the following query (mytheme/function.php) to sort posts by Custom Field(=admin_rate) function sort_searchresult_by_admin_rate($k) { if (!is_home()) { $k->query_vars['meta_key'] = ...
0
votes
0answers
34 views

custom select field populated by allocated post category

I need to have several custom meta boxes in the post edit screen that allows the client to choose a particular page for the allocation of a blockquote. ATM I have a template part called ...
0
votes
1answer
17 views

custom field functionality

I have to build a custom functionality based on custom fields. I have a sidebar that displays a blockquote testimonial. At the moment this is achieved by giving a post a category of block quote. But ...
0
votes
2answers
356 views

Get fields from metabox array

In my functions I'm registering multiple metaboxes with custom fields. A single metabox array for instance, looks like this: In functions.php $meta_boxes[] = array( 'id' => 'general_info', ...
1
vote
2answers
58 views

Registration and Profile custom field

How to add custom field in wordpress registration form and view it in user profile in the backend? I've already google it but just find how to add it in user profile but not in registration process.
0
votes
1answer
14 views

Forms with multiple element types using custom post types

I am building a forms component and am looking for the following functionality. Each form would have multiple questions and multiple question types ( like text boxes, radio buttons, selection drop ...
0
votes
1answer
454 views

Adding an extra parameter [string] to my posts' permalink?

I've been searching the internet for 6 hours now, so I decided to ask this in the forum and would appreciate every help. I just want my permalink to say (e.g. portfolio, post, etc) ...
1
vote
0answers
49 views

How to save the date/time of last update of an extra user profile field?

I have a function that adds and saves very well an extra field to the user profile. But, because the content of this field gets old very quickly, I need to know when the user refreshed it last time - ...
0
votes
0answers
18 views

Archive pages: sorted by custom field value

I'm using a custom field – entry_type – to add types to posts, for example, Gallery or Announcement etc. On my archive pages, I want to then separate out the post types stored in entry_type. For ...
0
votes
1answer
173 views

Display meta data from a custom field within plugin Category Grid View Gallery

I am using this plugin, which creates a gallery of posts, fetching a thumbnail and the titles of the posts displayed in it. I have enabled Custom Fields, and have created (and filled in values) a ...
0
votes
0answers
14 views

Extending Class in Custom-Metaboxes-and-Fields-for-WordPress

Custom-Metaboxes-and-Fields-for-WordPress is a great custom meta box script as it is, and even allows for adding new field types within their code. However, I want to create a new field type similar ...
0
votes
0answers
28 views

Showing Custom Fields on Parent Page

I have lots of subpages each having some custom fields. I am using 2 plugins, eMembers for the membership levels, and Types for my custom fields. I am trying to show the custom field information on ...
-1
votes
1answer
46 views

Create A Metabox For A Custom Field

I add videos to my WordPress posts' video format by using custom fields. I was wondering if there is any way to create a meta box in post editor (like excerpt or something) for that specific custom ...
0
votes
0answers
102 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
34 views

Update the values from specific custom fields for 70 pages

I have a wordpress site with more than 70 pages of different brand car offers. Each page has a custom field named Price with a numeric value. This is what I got so far: function ...
0
votes
0answers
63 views

Displaying database table in backend of wordpress

So basically I'm working on a job website for a client where they post jobs and users can apply for these jobs with a form that writes to the database with their inputed information.. I have set up a ...
3
votes
5answers
489 views

How to do a custom bookmarks post type?

Let me first explain what I am wanting to do... I am wanting to add all my hundreds of website bookmarks that I have now in my browser, into wordpress for the following reasons. Can search my ...
0
votes
1answer
33 views

query post based on comparison

Each post in my site can be rated as 'good' , 'ok' , 'bad'. The values are stored in custom fields. I now need to show top 10 posts with maximum 'good' and it should not display posts with greater ...
0
votes
0answers
34 views

Image MetaBox not saving in custom posts

I'm trying to create a meta box that will let me upload image in a custom post. Everything is working almost fine but... It doesn't save any data -.-' I can't figure what I'm doing wrong. Could you ...
0
votes
1answer
42 views

Advenced custom fields auto fill problem

I need help. I am using advanced custom fields and by using them i am making a new post. But something went wrong when i enter the site where are my end forms there is filled out information. If i ...
0
votes
0answers
59 views

JSON API similar plugin can't set custom fields

I'm trying to use a similar plugin to JSON API, called ScrollBlog. I'm using two custom fields, an external link and an author's name. JSON API parses them ok, but when I try to use ScrollBlog (coding ...
1
vote
0answers
309 views

Dynamically create check boxes for given post titles in WPAlchemy

I'm using WPAlchemy to create meta boxes. What I want to do is to dynamically create a group of check boxes with post titles. In other words, I want to replace a, b and c with the query of post ...
0
votes
0answers
16 views

Template tag for custom field sub heading in post - error

Im trying to create a template tag for a subheading for a post which is entered as a custom field. This is the function I have: function spost_subheading() { $key = get_post_meta($post->ID, ...
2
votes
2answers
992 views

Custom field values deleted when trashing custom post type

I've created a custom post type with 2 custom fields attached to it... When I create a post of this type and fill in the custom fields, the data is, in fact, saved to the db... However, if I trash one ...
0
votes
0answers
33 views

Wordpress - Shortcode or Merge tags

I want to use shortcode feature. The only issue is that, I am having multiple parameters. The code I have till now is : add_shortcode('lorem', array(&$this, 'lorem_function'), 10, 1); ...
0
votes
0answers
49 views

Query posts filter not working

I have created one custom post type which name is villa. In this post type I have added five post and assigned custom field values(mention bellow): Post Name Assigned Fields 1. Chalet ...
0
votes
0answers
43 views

Using Post ID and Page ID in same function

I've written a function to display a custom sidebar, which is outputted as a sidebar. On some pages, I have a Custom Field called 'show_sidebar', which I can assign as 'false' on pages which I do not ...
0
votes
0answers
67 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 ...