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

learn more… | top users | synonyms (2)

1
vote
1answer
16 views

Replace text in post from cvs

I have constructed a post template that i want to use to all post. I use visual composer and some add ons . I need to create post with vcs file but i don't know hot to organize the cvs inside to do ...
0
votes
1answer
18 views

update_post_meta not working in function

I am attempting to take some custom field meta data (generated via the ACF plugin) and save it as post meta with a function. This is what I've come up with: function tps_create_slotcode($post_id) { ...
0
votes
0answers
14 views

How to replace text in shortcode with custom fields? [on hold]

How can I replace text in to the shortcode ? Example : [ult_buttons btn_title="rezultati" btn_align="ubtn-center" btn_size="ubtn-custom" btn_title_color="#f2c121" btn_hover="ubtn-no-hover-bg" ...
0
votes
0answers
9 views

Replacing Standard Category Metabox

I am rewriting the standard category metabox to include a Custom Field as a select box which is dynamically updated as the user chooses the categories. This select box is set with all "checked" ...
0
votes
0answers
16 views

oEmbed single custom field with multiple values

I need to display a single custom field with multiple values, but I need to display those values with oEmbed on it. I found this, but it only shows a single value: echo wp_oembed_get( ...
0
votes
0answers
19 views

Drag and drop template builder [on hold]

I created a custom post type with a few custom fields. Now I want to display these custom fields when I create pages from the new custom type. I would like to create a template for this custom type, ...
0
votes
0answers
8 views

Using a Select Field Type to add a class name to a specific li

I have a menu of departments where the active li will have an class="active". <li class="interiors"><a href="#">Interiors</a></li> <li class="lite"><a ...
0
votes
0answers
14 views

Extra text'n'image field in a page

Hi there dudes and dudettes! I have been serching around for a bit, but havent quite found my answer as of yet. I want to add extra fields for products on a webpage. Just as simple as a small image, ...
0
votes
0answers
14 views

count click on link class on posts and add it to custom field

I have 4 links on each of my posts (facebook, twitter, etc ...), what I'm trying to do, is that everytime someone click on one of this link, i'll have a counter incremented, and store the reslut in a ...
0
votes
0answers
23 views

Ordering posts by custom fields

good day, quick question, I have a site that pulls posts from certain category, basically the code to see how I call those posts is as follows: <div class="jumbotron"> <h2>Ultimos ...
-1
votes
0answers
6 views

copy lat lng google map in wordpress custom field [on hold]

first sorry for my break English, I want to user's see Google map in my user submitted post front end (with USP Pro) and chose the location. that's location should be save in custom field. how I can ...
0
votes
0answers
14 views

Admin search ACF relationship

I have a custom post type name story. It has a custom field named 'select_artist' with a relationship to a custom post type named artist. Within the story edit page, I want to use the search box to ...
0
votes
2answers
41 views

Search result page - display values from the result's metaboxes

i have this custom search-result page global $query_string; $query_args = explode("&", $query_string); $search_query = array( 'nopaging' => true, 'post_type' => ...
0
votes
2answers
13 views

How to add the post ID (or any other post data) to a Contact Form 7 mail?

I've downloaded Contact Form 7 to add contact forms adding a simple snippet after every post, and I've added it in functions.php like this : //if post type I add a form function is_post_type($type) ...
0
votes
0answers
18 views

Custom field value inside html code with shortcode

I would like to create a shortcode -> [myCite] which puts out a custom field (named custom_cite) value from a custom post type "post_thoughts", wrapped in a html wrapper. Now I want to use the ...
0
votes
0answers
18 views

WP_Query custom field pass the post id

I'm using WP_Query with ACF(Advanced Custom Fields) I'm building a news portal, and I'm trying to pass related stories from 1 post which is top_story = true. In another WP_Query I want to print the ...
0
votes
2answers
43 views

WP_Query a custom field value bringing back 0 results

I am trying to do a query to grab all the pages that have the tickbox checked "feature_on_front_page" which has the value "featured" with label "Featured". I added this checkbox with ACF. My query ...
1
vote
1answer
17 views

Use custom field as a variable

I am trying to use a custom field value within a google api url. I have 2 custom fields. I need to output the value of these custom fields within a url. Custom field keys: app_collection-postcode ...
0
votes
1answer
25 views

Filtering custom posts by custom fields (ACF)

I'm working on a site with photo contests. Each contest has a lot of additional info, which I store in custom fields (thanks to Advanced Custom Fields). Now I want to search through contests filtering ...
0
votes
1answer
19 views

Custom Behavior when Adding New Custom Post Type in Dashboard

I have a Custom Post Type that I'm doing some custom work for. I want to attach some custom functionality to the post type once it's created but an admin can only trigger the custom action from the ...
0
votes
1answer
19 views

How to print the Custom fields values [closed]

I am working with genesis theme in wordpress. I am created custom fields using Advance Custom field plugin. Now i want to know that how i can print the fields value into my frontend page ?
0
votes
0answers
12 views

Custom WP MultiSite with Workflow

This is quite a weird question, so here goes. I have this project to take 1 main site and make 200 sub sites off of it. The sub sites will have defined content areas within a page where the sub site ...
0
votes
0answers
31 views

wp.editPost 'API Wordpress' doesn't edit custom fields

When I try to edit custom_fields with wp.editPost. Only edit the other fields, but not custom fields. Custom fields are created again(repeat fields), but will have to be edited. I am looking: ...
0
votes
1answer
15 views

Get all the posts where meta field with multiple choice has several values checked

I apologize beforehand for any confusion, I'm just 2 days with WP. So, I use Advanced Custom Fields to add formatable custom fields to posts of partucular type. One of fields is checkboxes with ...
0
votes
0answers
12 views

Design: year of work creation: custom field, tax, something else? [on hold]

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 ...
0
votes
0answers
13 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
2answers
34 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
1answer
16 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
30 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
58 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
21 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
24 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
1answer
34 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
2answers
41 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
51 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
30 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
10 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
11 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
19 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
21 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
28 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
62 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
11 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
35 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
28 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
14 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
40 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
35 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 ...