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

learn more… | top users | synonyms (2)

0
votes
1answer
7 views

How to display multiple images in custom field

I'm using a plugin called Anonymous Pro that allows users to submit posts. Users can also submit multiple images into a post, which gets placed in a custom field, like so: Array ( [0] => ...
0
votes
2answers
31 views

How to use custom field to search for wordpress post type?

I have a post type in called Publication. I also have few custom field in that post type such as Publication Year, Author... I want to have a search box with 3 drop-down fields which is All Field, ...
0
votes
0answers
10 views

How can I get a list with all custom fields within Wordpress?

How can I get a list with all custom fields within Wordpress? I have tried the get_post_custom() function but that gives me only a list of custom fields for a post. Thanks in advance. /Mattias
0
votes
0answers
10 views

Gravity Forms ShortCode in HTML Block [on hold]

I defined a shortcode called "CourseDates" in my functions.php that pulls data from advanced custom fields. I've placed the shortcode in a HTML block in a gravity form. The form functions correctly ...
0
votes
1answer
11 views

Adding custom field in menu options [duplicate]

Please take a look at this image Is there's anyway I can add another field called "Font Awesome Icon" for the user to write the icon class and the output should be like this:
1
vote
2answers
30 views

Insert a custom field into a shortcode and use it in post(s)

I would like to insert a custom field into a shortcode and use it in post(s). I want the shortcode to be used with parameters. I tried to solve this problem but it displays the "Array" word instead of ...
0
votes
2answers
22 views

Wordpress altering my custom query, How to fix it?

I am querying for most popular posts by custom view count by using the custom query below, <?php $mostpopular_args=array( 'post_type' => 'post', 'orderby' ...
0
votes
0answers
32 views

WooCommerce: Add fee dynamically depending on textfield [closed]

I try to implement a feature that allows the customer to select a delivery date. If the date is on a holiday (sunday, etc.) woocommerce should add a 10 % fee. I used this code to calculate the 10 % ...
0
votes
1answer
31 views

Toggle custom fields?

I got a custom field and I want to toggle a specific custom field. So for example I have 2 custom fields named: Subject and Score. When viewing a single post the custom field 'Score' data is hidden ...
0
votes
0answers
37 views

Sorting Posts with meta value not working

I want to retrieve most popular posts based on 'view_count' meta value, the below code doesn't seem to work, I am getting some random posts, where am I doing it wrong? <?php ...
0
votes
0answers
23 views

pre_get_posts with multiple post types AND a meta_key

So I am trying to customize the search a bit. The client wants the main site search to return people, projects, and posts. Not normally a problem. However for projects, only projects with a certain ...
0
votes
0answers
31 views

custom field to custom taxonomy term?

I have this script to save a custom field as a custom taxonomy term. All is working fine, but I would like to extend it a little bit, so that multiple values in the same custom field (seperated by a ...
0
votes
1answer
22 views

sort Posts by custom user filed

So I'm trying to sort the posts by custom user filed, I'll explain... So I have added users filed to the registration page, The fields are checkboxes, they allow the user to choose what topic he is ...
0
votes
1answer
14 views

Getting attachments by meta value

I'm stuck at a very simple point: I need to get all attachments by a custom meta key (and value). I'm developing a short code, so it has to work on every possible page. What I've tried so far: $args ...
0
votes
2answers
18 views

Change a custom field value after X number of seconds

Is it possible to change the value of a custom field after X number of seconds has passed since it was modified? For example, I have a checkbox that a user can check to say whether or not they are ...
0
votes
0answers
21 views

Search form to find custom meta box generated data

I have developed an inner theme plugin, which is a custom meta box that inserts some typed in text to the database and then displays in the application. I followed the example found at this link. Now ...
0
votes
0answers
13 views

Filter Evenst Manager events list by acf custom user field [closed]

I am trying to filter the list of events that show up on the events page, by the values in an acf custom field - a users multi select field, actually. Should this be done using a custom wordpress ...
0
votes
1answer
18 views

Calling Specific Pages with wp query Part II

I'm making one page website and I added a custom field on "Page" post type that asks "Use this page as a section:" Yes or No(with dropdown). I called all pages on template-onepage.php(custom template) ...
0
votes
0answers
22 views

Best Way to get facebook share count and update using wp_schedule_event or any other method

I recently developed a news blog, and my client needs facebook share count. I Successfully able to get the share count and update the custom field using below code.(with the help of cybermeta). What ...
0
votes
1answer
25 views

No result update a custom field using wp_schedule_event

I recently developed a news blog. My client asked for a facebook share count of an article. I am able to get the share count using facebook api, However, according to the information I found from ...
-2
votes
1answer
42 views

How to change data format in custom meta box field [closed]

I want to chage date format to d-m-y means day-month-year format . I have added 'date_format' => __( 'd-m-Y', 'cmb2' ) But not working. now it's month-day-year formated . Actually i want to ...
0
votes
1answer
26 views

Calling specific page with wp query

I'm making one page website and I added a custom field on "Page" post type that asks "Use this page as a section:" Yes or No(with dropdown). I called all pages on template-onepage.php(custom template) ...
0
votes
3answers
21 views

Add field to 'Add User' admin page

How can I add an input field to the admin section Users -> Add New? I want to add a field for a phone number, but don't want a plugin to do that.
0
votes
0answers
10 views

Is it possible to create a post from an NextGen Gallery image?

I have uploaded many pictures, and I would like to create a new post for each of them with a specific category named photos and a custom field url with the url of the image. Is that possible ? I ...
0
votes
0answers
36 views

woocommerce: add custom field and visual composer

how do I add a custom field area to the single products dashboard and add visual composer support to it? Thanks.
0
votes
0answers
20 views

Display Users by usermeta using foreach loop with multiple relationships

I'm getting a real headache trying to sort this one out. Here's my problem: I'm working on a feature for a site that requires Users to be displayed according to their association with a common ...
0
votes
0answers
26 views

Why My Custom Search Form Do Not Find Specific Search Template?

I am working with my custom search. Here is the form code: <?php // ADVANCED SEARCH function advanced_search() { ?> <form method="get" id="advanced-searchform" role="search" action="<?php ...
0
votes
0answers
12 views

custom field multiple images

i want to add custom field with multiple images. Like when create a field with type 'file' but it only selects a single image but i want to select multiple images and save those images in database. ...
0
votes
1answer
74 views

Save Custom Fields for Variations Product

Currently I am using WooCommerce for WordPress and trying to add custom fields for Variations Product. After did some researches, I found some code and tried to modify it. This is my full code : ...
0
votes
2answers
36 views

How to auto add nofollow to links in custom field?

I have a custom field that contains links in them and I want to auto add nofollow to those links in that custom field only. How can I do this? Example custom field value: <a ...
0
votes
2answers
35 views

wp_query check if integer exists in custom field's array

I'm using a wp_query to find custom posts that have a specified numeric value inside of a custom field. That custom field's value is an array of numbers (IDs of selected posts using Advanced Custom ...
0
votes
1answer
49 views

generate unique number when registering a user

I know there are userID, username in the database, but I want a formatted and unique number for physical world use. For example: "2014xxxx" 201414:year,xxxx:generate randomly when registering a user. ...
0
votes
0answers
14 views

Custom Fields: Linking a thumbnail to another image

I'm trying to figure a way to link a project, not to another page, but rather to an image that I'll eventually display in a lightbox but for now, it just links to the image in its' own window. That's ...
0
votes
1answer
28 views

How do I display a date correctly that is stored in the database as a backwards 8 digit number from Advanced Custom Fields? [closed]

I am modifying someone's Wordpress theme and they have a section for upcoming tour dates. The page for inputting was made with Advanced Custom fields plugin and uses a date picker widget that stores ...
1
vote
1answer
29 views

How to get latest post value if first post is empty in wordpress

I am working on wordpress custom field. I am facing problem to get custom field value if latest post custom field value is empty then display second latest post or from other post custom field value. ...
-1
votes
1answer
19 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
1answer
28 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
35 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
1answer
24 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
25 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
50 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
22 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
35 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
25 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
8 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
26 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
41 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
19 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
24 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
85 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 ...