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

learn more… | top users | synonyms (2)

1
vote
0answers
92 views

Removing “s” from search with custom parameters

I'm trying to do something that I thought would be quite simple and has turned out to be not simple at all. I've seen quite a few posts that look similar at first glance but none solve the issue for ...
2
votes
0answers
258 views

Ajax form filter post by custom fields [closed]

I'm currently working on a site where users can search for apartments. I have a custom post type for the apartment posts, which contain several custom fields. I have a page where i list all of the ...
0
votes
1answer
157 views

PODS performance vs custom field

is using pods's own content tpye where custom fields are all stored in one table more scalable than custom fields of wordpress where each field is a row in the meta table... I haven't used PODS yet ...
1
vote
2answers
170 views

Update meta values with AJAX

I am working on a voting system in Wordpress. I first made it with GET requests but someone told me you should not use GET for this, So I started working with AJAX to update custom fields/meta values, ...
0
votes
1answer
39 views

Create download page from post option link

I have a button download. It's contain the link from post option. I want to when click button download, it will show a download page with the link in post option instead go direct link from it. ...
2
votes
0answers
315 views

Create child page within custom post type

I want to be able to have a link like this, site.com/my-custom-type-slug/single-custom-post-name/stats/, where /stats should contain the /my-custom-type-slug page content and when I add content to the ...
5
votes
1answer
165 views

Add 'Description' to taxonomy 'Quick Edit'

This seems fairly straight forward, but I cannot find a definite guide on how to add the taxonomy description field to the quick edit box. I've followed several tutorials on adding fields to the ...
0
votes
0answers
65 views

URL field in metabox with page links select

I am building my first metabox and I need to add special field when user can write your own link (URL) to outside page (with http://) or select existing page/post. If user selected that he want to add ...
1
vote
1answer
63 views

How to Output which matched meta_keys were found from custom_type_posts?

In WordPress on the single-player.php page which displays a single profile (from numerous other profiles) with information from around 10 different meta fields. Without using tags or categories.. ...
5
votes
4answers
4k views

Prevent post from being published if custom fields not filled

I have a custom post type Event that contains a starting and ending date/times custom fields (as metaboxes in the post edit screen). I would like to make sure that an Event cannot get published (or ...
0
votes
0answers
20 views

Save voting stats with Posts 2 Posts

I am working on a website where I make connections from posts to posts with the Wordpress Posts 2 Posts plugin. Now I want my website users can vote whether they think the 2 connected posts are a good ...
1
vote
1answer
57 views

List custom taxonomy terms from custom field

I am trying to output a list of terms associated with a custom taxonomy for each image I am pulling from a custom field, like so: $portfolio_images = get_field('portfolio_gallery'); Each image has ...
1
vote
0answers
59 views

How to show a post if was published less than two hours ago?

I want to show posts only that were posted less that 2 hours ago and have the custom field "¿directo?" with the value "Sí". These are my progresses, but they don't work: Functions.php: function ...
0
votes
1answer
474 views

Copy/clone/associate Custom field to Custom Taxonomy

I'm looking for a solution to "clone or copy or associate" custom fields data to custom taxonomies. example: Custom field "location" should copy data of that posts custom field to Custom Taxonomy ...
1
vote
0answers
53 views

Custom code for WordPress dynamic menu

Without using plugins, how can I create a custom WordPress navigation menu to produce the following code? <div class="bottom_section_full"> <div class="bottom_section_left ...
0
votes
1answer
59 views

Hide custom metabox value from custom fields

Before I ask the question, I tried to added _ to the custom field, but it's not working, at least with my code. I just want to hide the value of my meta box from appearing in the custom fields. When ...
1
vote
1answer
70 views

List users by sum of all their posts' custom field values

So I can do this by user, individually, but I can't figure out how to put it in a foreach loop. What I want to do is output something like this: Author, Miles Where miles is the sum of every ...
0
votes
1answer
43 views

meta_compare not comparing whole integer

I have submitted an integer data via a form to my custom search page. I can get values properly if the input is single char (e.g. 1 ) but if the input is multi char (e.g. 100) it still compares ...
1
vote
2answers
253 views

Sum custom field values of particular taxonomy

I need to sum custom field values of a custom post type with a particular taxonomy ONLY. For example... Custom Post Type: Computers Taxonomy: Laptops Custom Field: Quantity How can I get the ...
0
votes
1answer
40 views

How can i make a search box to search by custom field

Hy i am trying to make a search box for a week to search for post that have a specific custom field. I have a post_type - produse with 2 custom field CF1- culoare / alb,maro,verde CF2- ...
2
votes
1answer
494 views

WP_Query display next custom post from today's date

I have a calendar plugin that uses custom posts types to create events. There are several custom fields that allow me to create various and seemingly unlimited post queries. The one I'm currently ...
0
votes
1answer
40 views

Echo the custom field value from the latest post from the 'video' post format?

I am trying to create a 'latest video' section. Basically, what I'm trying to do is get the custom field value (video url) from the last post in the 'video' post format. Then, I'm trying to insert ...
0
votes
2answers
55 views

Custom field totals

I have tried searching everywhere for this and although there are some discussions about adding the total to the frontend, there is nothing about the admin side. I have a custom post type that has ...
0
votes
0answers
60 views

Problem with checkbox using custom field archive

How can i get archive base a custom field. I try this but my hosting say there is a problem with my code, the code make manny select in the database.. I have 1 post type, and 2 custom field ...
1
vote
2answers
1k views

Advanced Custom Fields Validation

Is there way to use custom validation on an advanced custom field? For example, I might not want a textfield to have a value that starts with certain prefix, or I might want a number field to have a ...
0
votes
2answers
57 views

How to display data from custom fields in my custom shortcode?

This is the shortcode I have come up with, according to a tutorial on Dig WP (http://digwp.com/2010/01/custom-query-shortcode/) in order to display list of songs on specific albums. [loop ...
0
votes
2answers
36 views

How to link a word comprised of a custom field with another?

I want to link content comprised of a custom field(field1_details) using another custom field(field2_link) which is a URL type. the_field('field1_details') is text_area field and ...
5
votes
3answers
6k views

Custom search: by post data and post metadata?

I'm struggling with a WordPress search function. Maybe it will just help if someone can explain to me how the built in WordPress function works. But here's what I want: Two search fields, by name ...
2
votes
2answers
8k views

Including custom fields in search?

I use custom fields for lots of my content on both Posts and Pages, so that half of the text will be in the main post body and the other half in a custom field. Unfortunately, when doing this only ...
15
votes
4answers
25k views

Advanced search form with filters for custom taxonomies and custom fields

I'd like to build an advanced search form for a specific custom post type, having filters for that custom type's custom fields and custom taxonomies AND for another custom type's properties (fields ...
1
vote
2answers
899 views

how to search in custom fields & custom taxonomy for custom search

I have a custom search which is a form that submits to the same page and uses wp_query to filter the results for a jobs site that I would also like the keyword search to also search in custom fields ...
0
votes
1answer
48 views

Save attachment ID instead of URL in custom field

I am testing several frameworks (currently Vafpress) to help me creating custom meta boxes. I need to save a lot of attachments with my posts but noticed that the attachment is saved with its full ...
1
vote
1answer
314 views

search also in taxonomy, tags and custom fields

I have found many answers separately for Taxonomy, Custom fields and Tags, most of them outdated. But how to combine a search in: - designed custom fields of a custom post - custom taxonomy terms - ...
0
votes
1answer
43 views

Custom field in external Javascript

How do I use a custom filed value in an external javascript? I'd like to use a custom field already stored for a post that is an url in an external javascript <script type='text/javascript' ...
-1
votes
1answer
52 views

Colecting values from custom field checkboxes and displaying them in the post

Ok, i have a form and a input fields type checkboxes. But in the post appears only the last value, what can be the reason? <label for="extras"> Extras </label> <input type="checkbox" ...
0
votes
0answers
111 views

yoast-seo-plugin - issue with the title and description template variables

I have set my post's descriptions and titles to be automatically created with yoast's seo plugin's template variables which are pulled from custom-field-values. I run the very latest wordpress 3.8.1 ...
2
votes
1answer
158 views

Custom Field sort not working (WP 3.8.1)

I am trying to sort a custom wp_query using the date format YYYYMMDD (php: date('Ymd') ). This will not be regarded as date field, but rather as a numeric one stored in custom field. My WP-QUERY code ...
0
votes
2answers
128 views

Get attachment meta (I need attachment ID, unsure how to find it)

I've got the following example code, which creates a custom field and adds to the attachment meta: function be_attachment_field_credit( $form_fields, $post ) { ...
0
votes
1answer
33 views

Displaying a custom field

I'm trying to display a custom field called 'my_custom_field' inside the loop: $custom_array = get_post_custom( get_the_ID() ); echo $custom_array['my_custom_field']; This code ...
0
votes
2answers
1k views

How to save media files under custom folder without changing wp-config.php or changing media settings

I want to upload images in a unique folder. Then retrieve the path of this image saved on server like http://example.com/wp-content/uploads/myimages/image1.jpg Now I want to save this URL in a post ...
0
votes
0answers
35 views

JQuery problem display

Hy i have a small problem with NivonoSlider. This is my site - http://bit.ly/1iRSwcf When i check on a checkbox it display the archive base a custom field, in my example by color. The problem is: ...
0
votes
0answers
32 views

WP_Customize->add_control Navbar Background Image

I'm having trouble figuring out how to properly add a setting under Navigation in the Theme Customization page in order to customize and specify a background-image to use in the navbar.. similar to ...
0
votes
0answers
67 views

How to assign custom field an unique number?

I have created a CPT for a client who will use this to manage payments. Their database currently has assigned ID for each of their clients. I have imported the data in a custom field for them. The ...
0
votes
1answer
9k views

Display custom field value on woocommerce product page

I know similar questions have been asked dozens of times but I'm just not understanding how to display custom fields. I'm using woocommerce and want to display a custom field value on product pages. ...
0
votes
1answer
95 views

Define a post's title and slug from Custom Fields

This question is relate to another one on WPSE: Set post title from two meta fields I am looking for a way to define a WP custom post type's title and slug from a custom field (i.e. first name and ...
0
votes
0answers
32 views

Custom Fields and W3 Total Cache

I've successfully setup WP + W3TC + Amazon s3 and everything is working fine except a little thing. I've a custom post type with about 10 custom fields with images/audio/video there. All attachments, ...
6
votes
1answer
111 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
8 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
414 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
145 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 ...