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

learn more… | top users | synonyms (2)

-1
votes
1answer
14 views

Website that sells statistics

I'm building a website that will have statistics based on user activity on the website (online votes and views etc). People will have to pay to view those stats. I am utilising wodpress features ...
0
votes
0answers
32 views

How do I get a custom field to work in google maps as a javascript variable [on hold]

I have a custom post type called "events" and I'm storing latitude and longitude in a custom field. I want the events to display in a google map. How do I convert a custom field in to a javascript ...
0
votes
0answers
14 views

Order by custom field returns nothing [on hold]

im trying sort post by a custom field but i have no sucess: echo vp_metabox('meta_eventos.evento_data_start') Show one date, example: 16-03-2015 I need to sort posts by this date, im trying use: ...
0
votes
0answers
19 views

Edit, Add or unset woocommerce user meta fields in the admin panel

I used the following filters and hooks (add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' ); add_filter( 'woocommerce_billing_fields' , 'custom_override_billing_fields' ); ...
0
votes
0answers
22 views

Using pages as tags (this is as specific as I can get, please read on…)

tl;dr: I want to give posts attributes such as tags, but I want each of those "tags" have a seperate page so I can give them a template and put in lots of information for each and every one of them. ...
0
votes
1answer
20 views

Add a counter for mouseovers (custom field)

I am trying to count mouseovers on the div for each post. The div is inside the loop. I am almost there, I think you might have to just help me correct some mistake. The div and jquery. Notice that I ...
0
votes
0answers
23 views

Query postmeta values, and return multiple post_titles for common meta value

As of now I query the DB: global $wpdb; $query = $wpdb->prepare(' SELECT p.post_id, p.meta_value, pm.post_title FROM %1$s AS p JOIN %2$s AS pm ON ...
0
votes
0answers
20 views

How to integrate Advanced Custom Fields PRO repeater field with bootstrap carousel? [on hold]

I am using Advanced Custom Fields (ACF) Pro with a repeater field for adding an image, Headline, sub headline, button and button link for a bootstrap carousel. I have the custom fields properly ...
0
votes
1answer
16 views

Query Custom Fields in Searchform

In my searchform.php I want to query the values of a custom field, add them into a dropdown, and return a link to a corresponding page upon submit. Thus far I can create the values dropdown: global ...
0
votes
1answer
13 views

How to add a css class to custom field value?

In the user's profile there is a dropdown list with options to choose from. The custom field name is colors with several values: red, green, blue, etc. Can I add a css class to those values. Like ...
0
votes
1answer
29 views

How to show list of posts with custom field value (a date) that are coming soon

I have a custom post type called client and it has a custom field of next_due_date, that is a date without time. I want to have a list of posts that have a next due date that is coming up soon. I ...
0
votes
0answers
6 views

Multiple custom post query based on custom field values

Trying to get data from custom posts based on custom field keys and values. The below triggers when someone clicks on a month based item list. If Jan is clicked $id = 1, if Feb is clicked $id = 2 ...
0
votes
1answer
32 views

Make custom user_meta as permalink for post

For an existing custom_user_meta="user_name" how can i create a permalink for post submitted by that user in the URL. e.g. - for user_name="srk489" i want the permalink of the post "post1" posted by ...
0
votes
1answer
14 views

custom field not saved

help me please: my custom metabox not save !! #add a metabox add_action( 'add_meta_boxes', 'adding_meta_box' ); function adding_meta_box() { add_meta_box( 'meta_box_id', 'اطلاعات پست', ...
0
votes
0answers
6 views

How to copy custom field to other name custom field same post?

How to copy custom field to other name custom field same post? I have two name "vdo" and "vdo_file" same post but data have in vdo , i want to copy "vdo" to "vdo_file" how to ?
0
votes
2answers
23 views

Creating Structured Documents (books) in Wordpress?

I've been trying to rebuild one of my websites story archives in Drupal. I have a personal website I wouldn't mind putting in Wordpress, but I want an easy way to create structured documents. That is ...
1
vote
0answers
30 views

Sort alphabetically by custom field

I'm trying to change the sort order of a custom field in a custom post type. I want it to be be alphabetical by the 'location' name. It's sorting by location, but not keeping them in alphabetical ...
0
votes
1answer
13 views

Incorrect ordering of custom post type based on time

I have a custom post type as event which accept Custom fields' values as gp_event_date as ( 2015/02/26) gp_event_time as (SIMILAR) to 08:00PM - 10:00PM format. And on the list page, it orders the ...
0
votes
0answers
18 views

Custom Post create a new table or add an additional field/column

I have a custom post type which has a latitude and longitude custom field, am I right in thinking that that to use a google search radius I need to store the latitude and longitude values in a ...
0
votes
1answer
41 views

Implement Autocomplete for a custom field on Wordpress Plugin Frontend

I've setup my plugin to be used on the frontend using a shortcode. I have managed to use an autocomplete form on a previous website I programmed from scratch (not WP based) but I don't understand how ...
0
votes
1answer
21 views

add_query_arg to compare and display events from a certain date

I have archive-events.php file that sorts custom post type 'events' via WP_Query using custom field that is date formatted YYYYMMDD (20150215) like this: $args = array( 'post_type' => ...
0
votes
1answer
25 views

Order by three custom fields (Y-m-d), then separate into yearly sections

For a project of mine I have set up three custom fields (Year, month, day) attached to posts in order to determine the original date of a post’s content (not the post publish date, which is used for ...
1
vote
1answer
23 views

Understanding and using metaboxes in posts

I am developing my first theme that is not dependent on a parent theme but I am running into some back-end problems. I'm trying to add a metabox to all posts that are being written. This question is ...
0
votes
1answer
23 views

Term specific featured post on taxonomy archive pages

I am trying to find a way to display a per term featured post on taxonomy archive pages. So say you navigate to url.com/my_taxonomy/my_term it should show the featured post of my_term above the ...
0
votes
0answers
19 views

Add a custom field via PhpMyAdmin to all posts and pages avoiding duplicates

I have about 200 pages and 400 posts on my WP site. And I need to add one custom field (sidebar_config: left-sidebar) to all pages and posts. I have this for SQL query in PhpMyAdmin: INSERT INTO ...
0
votes
0answers
7 views

update multipe custom fields with multiple values

i would like to update multipe values of multiple custom fields at the same time , not in array but like this example: custom_field1 -> value11 custom_field1 -> value12 custom_field1 -> ...
2
votes
1answer
50 views

Add field to posts (checkbox) that only one post can have

I am trying to add a field to Wordpress posts (not pages) which would simply include a label and a checkbox. Something like: Make this the sticky post? If check, the key should be set to TRUE or ...
0
votes
1answer
23 views

Custom Info Box at end of posts?

I'm pretty new to WordPress so there are some parts of it I have difficulty working with. I run a small scale gaming niche website which focuses on just a small group of video games, and what I'm ...
0
votes
1answer
27 views

ACF no print data [closed]

I've a problem with Advanced Custom Fields Plugin I create a custom field named: bgcolor I want to print the value in category.php, this is my code: $color = get_field('bgcolor', ...
0
votes
0answers
34 views

Post structure for TV Shows or Shows

I wanted to know what is the proper way to structure post types or taxonomy for TV shows. Following below is what I am trying to accomplish using post type. - Series: Name,Title,Description -- ...
0
votes
1answer
24 views

Injecting pre-defined text from custom page template to editor

I am creating a custom page template: < ?php /* * Template Name: sliding content * Description: Sliding category contents */ get_header(); ?> <div id="primary" class="content-area"> ...
0
votes
0answers
16 views

How to get past and upcoming post by defining date in custom field?

I have create a custom post type "event" and created some posts in it. I have also created a custom field "EventDate" and giving value like "April 08, 2011", "February 08, 2016" etc for each event ...
0
votes
1answer
43 views

How to loop through certain custom field values

I am using ACF plugin and I would like to create an aggregate shortcode containing data from other pages which use custom fields. Can you help how to start? Thank you So some of my posts have custom ...
0
votes
0answers
17 views

Get Custom fields from PAGE in POSTs

I've a simple problem but i don't know how fix. I create custom fields from my web, i use this to generate something style in the header. The header its same in example.com/taxonomy and ...
0
votes
1answer
25 views

Iterate through users and display users meta info at front-page

I have a meta field in user called columnista-destacado I need to iterate through Wordpress users and if that field has valued set (lets said equal 1) then I need to display user meta info at ...
0
votes
0answers
28 views

How to save taxonomy term meta?

Since, WordPress don't have taxonomy metadata support for saving taxonomy custom form fields, I am currently thinking of using options API. But the 1MB options size limit on Wordpress.com is what's ...
0
votes
1answer
16 views

Custom search (wp query by custom fields)

I'm building custom search. Actually it's just need to check custom field value. The custom field is called 'summary'. However i'm not sure what i'm doing wrong as it is not working. Maybe someone ...
0
votes
0answers
14 views

How to get generic Oembed in custom field?

I'm pretty tired right now and I guess I'm missing something. I use this piece of code to output youtube videos in my articles with a custom field. 'video_url' being the custom field name and the ...
0
votes
2answers
22 views

It's possible to hide body copy box for a custom post type?

I'm using Wordpress Types for create and manage Custom Post Types (CPT) at my blog and it works perfectly. I have created a CPT called Espacio Publicitario and I added also some custom fields (see ...
0
votes
2answers
69 views

Filter query based on date in custom field

I have a custom post type jobs and custom field with key expiry-date which the user enters the date after which the post will no longer be displayed. Here's my code so far... $loop = new WP_Query( ...
0
votes
1answer
17 views

How to put forward a blog post

I would know if I can put forward a blog post natively using Wordpress ? For example, I have created 20 posts, but I only show 5 on my homepage. Then imagine that I want to put the 18th at the first ...
-1
votes
0answers
20 views

How to create automatically custom fields from an array

I have many data in differents arrays Download Links Array which is sections by languages array( 'english_links' => array( 'name'=>'url', ...
0
votes
0answers
26 views

How to stop wp_query searching pages as well as the specified CPT

I have a CPT that has multiple fields. I have a custom input form that takes a name as the input and this is stored in the $surname variable. I need to search my CPT for that name either as the CPT ...
0
votes
1answer
23 views

Warn user that data may be lost for custom pages

When you edit a builtin field in Wordpress like the title and don't save the cahnges, and attempt to go to another link, a warning alert box comes up stating that "changes may be lost if you navigate ...
0
votes
0answers
36 views

Save multiple custom post fields from quick edit

Context: A multiple custom posts and custom fields website. Since the website is rather complex, has a lot of users, a lot of editors and a lot of data, they asked to be able to choose which custom ...
0
votes
3answers
40 views

Sort and display pages with specific custom field (not tag)

What I need basically is to display child pages on a parent. But I want to split the list of childs to, lets say, 'important' and 'non-important' to display it at the beginning and at the end of a ...
0
votes
0answers
21 views

How build search with filleting custom taxonomy and custom fields

I wanna explain about my search box, actually what i want to make. Ive a search input and few check boxes to filter the search result. i need to search like this : [Country1] AND ( [venue1] OR ...
0
votes
3answers
69 views

Get YouTube video id from url in a custom field

Here's the scenario, I have a site with thousands of YouTube video posts which are stored in a custom field 'video_url' which is being used in a custom video player. The custom player I'm using now ...
0
votes
0answers
13 views

metabox is inserting only one value of checkbox [duplicate]

only one checkbox value is inserted on database,i want multiple checkbox value insert on database. What i want that, Multiple checkbox should insert on database and after insertion on database, ...
0
votes
0answers
74 views

multiple checkbox value is not updating in metabox

It is displaying all the values checked,i want to only show checked value checked,but now it is displaying all the value checked,i am not sure how to write condition for that Please let me know. ...