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

learn more… | top users | synonyms (2)

0
votes
0answers
7 views

Design: year of work creation: custom field, tax, something else?

Let's say I have to build a site for publishing old books and manuscripts or histories about those books and manuscripts. For many of them they knows a year of creation/publication, but for many ...
-2
votes
0answers
22 views

filter posts based on custom fields

I am currently building a theme fore a wordpress website with a custom post type, I wish to display the information from this custom post type in a sortable table. The information will be come from ...
-1
votes
0answers
9 views

remove file Under: Uncategorized in Genesis framework [on hold]

Inbuilt comment system is appearing on the page and i want to disable it. So tell me the exact location where to make changes
0
votes
0answers
9 views

Get posts of specific post format, extract youtube link and use ID for image thumbnail

I am looking to query four posts of which I'll display the title and the video thumbnail. Something like this maybe? $args = array( 'tax_query' => array( array( 'taxonomy' ...
0
votes
1answer
12 views

Buddypress Custom profile tabs not working [closed]

I am bashing my head against the wall here. My code looks perfectly fine to me, and the tab shows and will load a page. But it's loading the wrong template for a start and no content is working with ...
0
votes
2answers
31 views

Get a post_id where meta_value equals something in a serialized meta_value field

I'm storing CPT products' post IDs into CPT companies' post meta (meta_key = prefix_products). As a company can have multiple products, so I'm storing them into a PHP serialized array value. ...
0
votes
0answers
13 views

Create custom field & behavior for custom post type

I want a custom field that stores a file. There is also a "generate" button next to the field that generates the file which then stays with the post. Is something like this possible?
0
votes
1answer
14 views

wordpress custom loop ascending descending posts by custom field

I am developing wordpress site that is depend upon price so i add custom filed named 'price' <?php while ( have_posts() ) : the_post(); echo $price = get_post_meta($post->ID, 'price', TRUE); ...
1
vote
1answer
28 views

Difference between meta keys with _ and without _ [duplicate]

In wp_postmeta table I noticed that some of the keys are with '_' (underscore) prefix and and some are without _ What is the major difference between these fields and how they can be used while ...
0
votes
1answer
53 views

Let author add field to metabox by pressing a button

I have added a custom metabox for authors where they can fill in a url to a source, which I can then use in my template. In my functions.php <?php /* Add metaboxes (see below) */ function ...
0
votes
1answer
20 views

How to write specific HTML code with a specific custom field? [closed]

In my Wordpress, each post can contains 2 buttons pointing to different links. To make it easy for the end user, I want to create a couple of Custom Fields where the user only needs to enter the URL ...
0
votes
0answers
22 views

Define category ID using get_post_meta

I need to define the Category ID in my singles page through custom fields so that i can load a different category depending on the page. This is what i have so far and its not working. Any help would ...
0
votes
0answers
24 views

ACF : Add custom field class to posts on home? [closed]

With the plugin Advanced Custom Fields i have made a custom field where i have the possibility to choose between 3 options, i would like to style the posts differently on my homepage in fonction of ...
0
votes
0answers
19 views

Advanced Custom Fields “update_field” with value from another? [closed]

I am using Advanced Custom Fields, and I want to update the value of a field, with the value of another one on the same page. (I'm referring to a backend form, not a frontend form). I have a select ...
0
votes
1answer
31 views

Sorting Posts by custom field

I'm trying to sort my posts by the custom field artwork_title. When I use the following code, I just end up with one particular category of posts no matter what category archive I'm on. Also ...
0
votes
0answers
28 views

Featured image displaying above custom meta box form on front end of site

I have created a form on the front end of my site for a custom post type and I allow users to upload an image which I set this as the featured image. This works fine but the featured image is ...
0
votes
2answers
34 views

Adding and updating repeating custom field meta data

I've got 20+ hours into this and could really use some help. Here is what I am trying to do.. For each record, add post meta. If the post meta already exists, update each field in the array. Just like ...
0
votes
1answer
40 views

How to save multiple options from a dropdown in user profile

I use this code to create the dropdown and then save the dropdown chosen values: <?php // Display Fields add_action( 'show_user_profile', 'add_multiple_choice_dropdown ' ); add_action( ...
0
votes
0answers
29 views

Sort by a date field in a repeatable group

I'm using cmb2 WebDevStudios/Custom-Metaboxes-and-Fields-for-WordPress. I have a repeatable group for events with the meta_key 'date'. The repeatable group 'date' serialized array includes ...
0
votes
0answers
7 views

How To Show/Hide WordPress Meta Boxes Fields According to Option Select

I have a select list with values hosts and html5 and 3 custom fields. On select with value hosts 2 fields (Youtube and Vimeo) should appear, and if value is html5 the remain (Embed) should appear. ...
0
votes
0answers
9 views

Show custom field value in Edit order / Print invoice page

I've got the following in my functions file: if ( isset( $_POST['university'] ) ) { update_user_meta( $customer_id, 'university', sanitize_text_field( $_POST['university'] ) ); } This in my ...
0
votes
0answers
12 views

Checked() function on a multidimensional array

I am generating checkboxes dynamically on one of the option pages. This the code that I'm using to create multiple checkboxes: <?php foreach($shopCategories as $shopCategory) { ?> <input ...
0
votes
0answers
19 views

I am trying to add custom-fields to a post carousel plugin

I have a post carousel on my website.I am trying to add an option to display custom fields. I looked at the code for the carousel and I tried to add my custom-fields option. I am not getting a display ...
0
votes
0answers
20 views

Get first URL from custom field, download and set as featured image on post publish

I have a plugin that is adding text and a URL to a custom field when the post is published (not saved as draft). I want to get/make a function or plugin to search within the custom field and sideload ...
0
votes
0answers
50 views

Add custom fields to wp native gallery settings

i already searched for solution and found a lot of unsolved or obsolete topics. Custom wordpress gallery option | Custom field for default gallery However, I´d like to add some custom fields ...
0
votes
0answers
9 views

How to write custom bulk action for my custom fields?

I am generating Landing Pages dynamically. I have used custom fields such as price, background image etc. on these landing pages. Now I want to create a custom bulk action for those pages where I can ...
0
votes
0answers
27 views

Set featured image from link in custom field

I have a plugin (Autoblog) that adds a custom field to the post that contains a URL of an image (among other text). I'm looking for a way to set this image in the custom field ...
0
votes
2answers
24 views

How to style posts selecting a CSS post_class (added through custom_fields?)?

Here is what I tried and couldn't reach it. Maybe I need a whole different approach? 1) I created a custom field in a post, called post-class and inserted the value cita-flow800000 (weird class name ...
0
votes
1answer
13 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
38 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
13 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
1answer
14 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
33 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
28 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
1answer
38 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
44 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
32 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
33 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
23 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
19 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
19 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
33 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
1answer
20 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
34 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
27 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
48 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
26 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
17 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
51 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.