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

learn more… | top users | synonyms (2)

0
votes
0answers
49 views

WooTickets for Events Calendar Pro - Custom field for each ticket for CSV Export?

I'm using WooTickets and Events Calendar Pro for WooCommerce, and I wanted to add an extra column to the CSV report that gets exported by default. I've got that much achieved by adding the following ...
0
votes
0answers
47 views

WooTickets for Events Calendar Pro - Custom email field for each ticket?

I'm using Events Calendar Pro and WooTickets for WooCommerce, and I was interested in adding a custom field to the back-end of each ticket, but I can't find much useful information on that. My ...
0
votes
0answers
46 views

Adding custom field to permalink structure

I have a wordpress site that uses a custom post type 'external-projects'. Within that custom post type there is a custom field 'director'. What I am trying to do is rewrite the permalinks to include ...
0
votes
0answers
19 views

How to register custom post types like ebook and taxonomies with code?

There are more than 10 plugins to create custom post types and taxonomies. But one problem to use that is if accidentally plugin deleted, all works related to that plugin will be deleted.So I want to ...
0
votes
0answers
31 views

Post expire by gravity fields

I'm using gravity forms to let users publish some content from front-end. But I need to let then set expiration date. So I've installed Content Scheduler and Post Expirator plugins, because plugin's ...
0
votes
0answers
34 views

update_post_meta based on acf repeater field

I'm trying to update post meta in an acf repeater fields have value using this function, but it's not working: function save_photos_meta_data( $post_id ) { if( get_field('photos') ) { ...
0
votes
0answers
32 views

Define an extra field for all pages (with no plugin?)

I usually use WP Types define custom fields, post types, ... But I have a theme a little bit overloaded of plugins, so I would like to define this field for (all) the pages in functions.php if ...
0
votes
0answers
46 views

Order by (sort) taxonmy fields using taxonmy custom field value

I have taxonomy:-shop_vendor with multiple vendors and every vendor have two radio buttons 1)Wellness 2)Dietitian and each vendor have selected one radio button at list. If i have 6 vendors in ...
0
votes
0answers
24 views

make next and prev button with custom field in WP?

how do i make a custom next and prev post button in WP ? this is my query : rd_args = array( 'meta_key' => 'user_mode', 'meta_value' => $mode, 'offset' ...
0
votes
0answers
9 views

DB optimization caused custom field and link loss

I recently did DB optimization and after that I lost all my Advanced Custom field entries and menu links. Is it because my DB got corrupted? How to resolve the issue? Thank You
0
votes
0answers
20 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
28 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
12 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
15 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
53 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
61 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
55 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
0answers
22 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
44 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
0answers
46 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
0answers
115 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
46 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
40 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
19 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
47 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
34 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
61 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
240 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
21 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
116 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
0answers
15 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
94 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
65 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
81 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
0answers
73 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
19 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
82 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
89 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
74 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
35 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
0answers
23 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
0answers
81 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
99 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
0answers
14 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
0answers
29 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
0answers
59 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
43 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 -> ...
0
votes
0answers
53 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
0answers
77 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
0answers
25 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 ...