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

learn more… | top users | synonyms (2)

2
votes
2answers
264 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 ...
9
votes
2answers
7k views

Custom field/meta populated by dropdown of existing posts?

(My first WP question ever asked! Be gentle!) I'm building a site that is mostly pages (i.e., static), using WP as CMS. At the bottom of several of the pages, there will appear 1, 2, or 3 "promo ...
0
votes
1answer
45 views

Custom Post Type as invoice or order template

On homepage I would like to insert form that collects client details and saves it to wordpress backend. I was thinking to use custom_post_type register_post_type('invoices', array( ...
0
votes
0answers
66 views

Display different category template if custom field is checked

I am a big fan of Advanced Custom Field by Elliot Condon http://www.advancedcustomfields.com/ This is what I am trying to chive without success so far: I have a website with posts and archive.php ...
1
vote
1answer
110 views

Trying to sort and display categories(not posts) by custom field: 'order'

I'm a WordPress rookie. I've added a custom field to my "Category" taxonomy. The custom field is "custom_order" and its purpose is to hold a number so that my categories can be sorted and displayed in ...
0
votes
1answer
82 views

filter wp_query result with custom field values

I'm getting started with advanced custom fields. I have a category field (main_category) where the categories given below are selected using the radio buttons. 1. Electronics 2. Programming 3. ...
0
votes
0answers
32 views

Add Button on WP-Admin Login

I just want to add a button on wp-admin login page..How to I achieve this.
0
votes
1answer
174 views

ACF plugin categories bug in WordPress 3.9

i recently started using ACF plugin, i noticed that variables for custom fields i created and use in categories are saved in ‘wp_options’ tables, and although i am doing everything right they do not ...
-1
votes
1answer
50 views

Foreach giving one too many list items, how can I remove the last empty line?

Hello Stackexchange users! I built a simple function to display a list of items from custom fields. However it is listing an empty last field on the front end and I cant figure out how to remove it. ...
0
votes
0answers
16 views

Sort WP_Query by one meta key and post_date [duplicate]

I want to order by post to check for the existence of a meta key ('featured') and include those posts first and as a secondary option I want to sort by post_date, similar to 'sticky' posts on a ...
1
vote
1answer
46 views

Custom fields on a virtual page

I've used Dave Jesch's solution for making virtual pages (from content temporarily saved in a custom database table, updated from an RSS every four hours). See more here: ...
0
votes
0answers
35 views

query_posts with sorting on a custom datestamp

I have a custom meta field that I want to use to sort with query_posts but its not ordering my posts properly since it is a datestamp (i.e. 04/21/2014) and its treating it like a normal text string. ...
0
votes
0answers
43 views

ACF media fields

I'm using ACF to add galleries to a post type. In the gallery field you can click edit on an image and type Title, Alt Text, Caption and Description. These seem to be media related fields. I'm ...
1
vote
2answers
215 views

Custom fields attached to a page template only show on edit screen when page is saved

When I create a custom field and associate it to a custom page template, it doesn't show in the post editor screen until I click save (draft / publish). Ideally, the custom field should show when I ...
0
votes
1answer
440 views

Why my meta boxes won't show in front post page?

I see it everywhere: in single post, in category archives etc, but in front page post not. I display the metaboxes in this way: <?php if (get_post_meta($post->ID, 'test_1', true) != '' ) { ...
0
votes
2answers
166 views

How to query categories with Advanced Custom Fields?

I'm currently using Advanced Custom Fields and I was wondering if anyone know how to filter categories by custom fields? I have a custom field in my categories using the checkboxes field. I want to ...
1
vote
0answers
18 views

Forced profile plugin ..and link to field [closed]

I use the plugins Bp forced profile that display a message for complete a missing required field with a list of field (title). Howto link a title to the field missing in the message ? if you have ...
0
votes
1answer
34 views

Need to have an archive widget which organizes and displays a custom post type using a custom date field

I found a handy plugin at http://www.redletterdesign.net/wp/cpt-archive/index.php for generating a calendar archive using a custom post type. My problem is I need it to organize these posts not by the ...
1
vote
1answer
2k views

How to Create Dynamic Fields in a Meta Box?

Could someone explain me with a little example how create a button that creates a new custom field dynamically? I'm working on a plugin and using add_meta_box, I need an input box ...
0
votes
1answer
58 views

Order post type by sum of two custom fields

I have a custom post type for vouchers. I've added two custom fields to this post type named "value_1" and "value_2". They both contain a number. (The first value will be applied at checkout, the ...
0
votes
0answers
106 views

How to parse meta value from user specific post to google charts?

I'm currently working on a project where i need to visualize the progress of users (fitness). For that i have created a custom post type with custom fields. I want to parse the meta values associated ...
3
votes
1answer
6k views

Importing data for advanced custom fields plugin?

I have a member section built using the http://www.advancedcustomfields.com plugin. There are 300 members that each have the following data: Company name Specialism (check boxes) Web address ...
1
vote
1answer
629 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 ...
5
votes
1answer
6k views

How set featured posts using checkbox in post edit screen?

I want to make selecting a featured post is just by checking a checkbox in edit screen AND be able to retrieve these featured articles from only specific category ? in short what I'm looking for : ...
0
votes
0answers
34 views

Override edit_custom_walker.php to conditionally show input depending on menu position

I've created custom inputs for WordPress nav-menus admin page. I've used a similar technique as is shown in this answer - by duplicating edit_custom_walker.php and adding my own fields. My custom ...
0
votes
1answer
31 views

Display a different image for each page with editor

We have several PAGES (about us, contact, services, etc...) On each page, we have an area for an IMAGE. The IMAGE is located in the same location on each page. (lower right corner > above the ...
1
vote
0answers
97 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
335 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 ...
1
vote
2answers
210 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
46 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
331 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
181 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
71 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
65 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
22 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
61 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
60 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
484 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
57 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
67 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
73 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
48 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
260 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
41 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
506 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
43 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
61 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
2k 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 ...