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

learn more… | top users | synonyms (2)

0
votes
2answers
603 views

Why am I getting a “Call to member function format() on a non-object” error?

I am trying to add a hook to post saving using WP Frontend User When the form saves and the post is created within the "save_post" function I am trying to find the value of a custom field ...
1
vote
1answer
355 views

Getting movie and serial on actor page

I'm building a cinema site, I came with a problem, let me explain: Movies- are stored in Post's Actors- are stored in Post Type - persoane ( taxonomy= lista) Serials - are stored in Post Type - ...
1
vote
1answer
496 views

Trying to sort and display categories(not posts) by custom field: 'order'

I'm a WordPress rookie. I've added a custom field to my "Category" taxonomy. The custom field is "custom_order" and its purpose is to hold a number so that my categories can be sorted and displayed in ...
0
votes
2answers
770 views

get_post_custom single array

Is there a way to return single values only when I run get_post_custom($post_id); it seems that I'm receiving double array, even when there only one value for this meta_key
0
votes
1answer
419 views

Woocommerce custom fields

I'm using woocommerce plugin in my wordpress web site. In Admin panel for products I've added few custom fields as shown bellow: On my shop page, I want to print the custom field values, and I use ...
0
votes
0answers
11 views

Meta box from child theme

I've done some searching and can't find exactly what I'm looking for. I've found this, removing meta boxes but I need to add. I did try changing that to add meta box. I'm wondering if it is possible ...
0
votes
1answer
21 views

add custom field to custom post type

I want to add custom field of file uploading control to upload image files in my custom post type page(New/Edit). I have searched in Google but no tutorials have been found. please, help me. Thanks in ...
0
votes
1answer
575 views

Filter by Custom Taxonomy AND Custom Field

I'd like to give my users the possibility to filter the posts by Taxonomy Terms AND Custom Field values. Like so: [tax]Country:[terms] [tax]Company:[terms] [field]Price:[values] Filtering by ...
0
votes
1answer
38 views

CPT Group by Date metabox Value

I am building an event plugin using a Custom Post Type. I have a loop running that will display all events on a page using a shortcode. My question is how can I set it up so that it groups the events ...
3
votes
2answers
11k views

Including custom fields in search?

I use custom fields for lots of my content on both Posts and Pages, so that half of the text will be in the main post body and the other half in a custom field. Unfortunately, when doing this only ...
1
vote
1answer
695 views

Auto Populate Custom Field with Complex Value That Increase by One?

Can somebody help me to sort this? I am using WP 3.5.2 and I have "Orders" post type where purchase_order custom field is located. This is the sample of purchase order record: POCOS20130051 PO - ...
0
votes
1answer
14 views

Display Data From This Custom Media Upload Meta Box?

This plugin is working without any issue on CMS. Now I need to know how to properly display them in my post. Custom Media Upload Meta Box Plugin. $meta_box_media_upload = new ...
0
votes
0answers
10 views

Quicktag button to automatically add a custom field to a post

Is it possible to add a quicktag button to the Wordpress add post editor which when clicked will automatically assign a custom field to a post? Sometimes I have 50 scheduled posts, 30 of which have ...
0
votes
1answer
1k views

How to delete file uploaded by Plupload

I follow the steps from here to integrate the plupload in metabox. Everything is working fine. But I do found one disadvantages of this guide. When I click 'Remove' link from the uploaded images, it ...
0
votes
0answers
7 views

Have plugin handle specific images based on filename

I'm using Advanced Custom Fields on a Genesis-based website to generate some unique review-like fields at the bottom of posts. Multiple writers post content and use this field, but I want to have them ...
2
votes
2answers
627 views

How can I display all values of a custom field from posts with a certain value of another custom field or from certain post types?

I know the question is quite ambiguous. Let me explain: I have a page that lists all posts with a certain value of a custom field. (Eg.: The page Rentals lists all posts with the value rental of ...
0
votes
0answers
5 views

Hiding Canvas-WooThemes layout 'General Settings' in WordPress backend

I'm trying to remove Canvas' 'General Settings' custom postbox in the back end of the post. Duplicating the code I used to successfully hide the slugdiv, I have been trying to no avail to hide the ...
0
votes
0answers
10 views

wp_include_post in custom post with coustom field

I'm new in wordpress and my english are not good. I'm using Custom Post Type UI plugin to create a post type "Product" and Advanced Custom Fields plugin to create some custom fields like address. Now ...
6
votes
5answers
7k views

Prevent post from being published if custom fields not filled

I have a custom post type Event that contains a starting and ending date/times custom fields (as metaboxes in the post edit screen). I would like to make sure that an Event cannot get published (or ...
0
votes
0answers
9 views

Watch now links in tabs

Hello to all wordpress developer. I'm creating a site for movies that a user can watch online but now i'm stuck on a problem, i'd like to add watch now link from the post editor see screenshot: But ...
2
votes
2answers
569 views

Save HTML formatted data to post meta using add_post_meta()

Array ( [post] => Array ( [jw_objective] => Exposure to e<b>nd to end development</b> of various applications; right from requirement analysis to system ...
0
votes
0answers
17 views

Delete custom fields on post publish?

I have some custom fields, for example one is named "thumb". Custom field is generated automatically by some plugin. I do not use it at all. Is there any function which will delete that custom field ...
0
votes
0answers
10 views

Custom field column sortable in admin post list?

I have custom field in my posts named "thumbnail_url" which contains url of image. And I wish to display that image in my post list in new column. I managed to do it with code bellow. Now, I would ...
0
votes
1answer
29 views

How to set up multisite for multi language?

I am getting headache about this. How easy to do this? I have a site in US english. 1. Now : Want to create three sites for .de, .es, .co.uk so the sites will be www.mysite.com - default site ...
0
votes
1answer
40 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
0answers
20 views

Creating search.php for Wordpress with custom fields feature

I have seen a Wordpress site which has below features in its search.php section. http://www.example.com/category/film/?directors=Brad%20Anderson ...
0
votes
0answers
19 views

Sort by manipulated meta_key

I have a page where I sort my posts by a custom field called "price". The problem is that the field values come with commas because that's the way they should display on the front-end (e.g. 1,000,000 ...
0
votes
1answer
477 views

Sort posts by custom fields value using dropdown menu

I'm trying to sort my posts by a custom field value, called price. Only using numbers in the custom field value. I want that the visitors of the website can sort the posts on price by using a ...
2
votes
3answers
706 views

Add custom field to existing meta box?

First off, I have been able to successfully implement custom fields within a custom meta box in Wordpress. I understand how this works. My question is, is there a way for me to add a custom field to ...
0
votes
0answers
15 views

Allow users to create custom alerts for future posts matching criteria.

I'm working on a way to allow users to create an alert with certain criteria for a listing site. When another user posts a post with field values matching the criteria of the alert, that first user is ...
10
votes
4answers
8k views

Validating Custom Meta Box Values & Required Fields

Something which I have never seen covered is the best way to validate that specific form fields are filled out correctly for custom post type meta boxes. I am looking to get expert opinions on how ...
2
votes
2answers
187 views

Conditional to modify query results

I'll admit, I'm not a PHP expert, nor am I familiar with all of the WordPress functions and hooks. I've been stuck on an issue, searching for help without much success, and I was hoping that someone ...
0
votes
1answer
14 views

display Flexible Fields from options

I am having a problem displaying the content using ACF and flexible fields. I made a custom option page and I want to call the fields from the options page but everything is coming back blank when I ...
0
votes
2answers
498 views

How to exclude custom fields from search queries?

I'm building a hotel search engine and I've first created a custom content type "hotel" with Types & Views Toolset. I'm using "Search everything" plugin to query custom fields and custom taxonomy ...
2
votes
3answers
484 views

Title and post URL based on custom fields?

I have custom fields in my custom post type. They should serve as a title and post slug for URL. Basically, whenever I change the content of the custom fields, the title field should react ...
0
votes
1answer
48 views

How can I modify a custom post type and custom page template for a child theme if all content seams to be handled by theme's 'native' plugin?

I need the child theme to use a 'modified' version of its parent custom post type and correspondent page template. Basically I would like to add 5 new metaboxes, change 2 existing labels, and include ...
0
votes
1answer
18 views

custom fields not showing before get_header

I am trying to use this code in my WordPress site <?php if(get_post_format() == 'video'){ function insert_game(){ get_template_part( 'content', 'video-top' ); ...
0
votes
1answer
462 views

Unique Post Meta Values

I want to use Unique IDs like YouTube video IDs and WordPress post IDs in a custom field 'youtube_id'. I just created a front-end add post page and want to check if 'youtube_id' used or not used in a ...
0
votes
1answer
340 views

Show Posts in Vertical Tabs with Scrollbar

I have created CPT ( Custom Post Type ) called Recipes. I want to display all me recipe in Vertical Tabs. For Example; check the image below i have created. Image Example Click Here On the left ...
0
votes
3answers
1k views

Saving Custom Post types and fields to a custom table

I have a project in which I am trying to import a large amount of data into a WordPress installation and from that data, create pages on my site (as a custom post type). Since these pages will be ...
0
votes
1answer
498 views

How can I output the custom fields wrapping with HTML

I am trying to publish custom fields created using the plugin "Advanced Custom fields". I am able to display them on posts and custom post types as raw output. But I want to wrap html around the ...
1
vote
2answers
350 views

How to store the value of a custom field dropdown select for post referencing?

I'm trying to reference posts to each other. Editors should have a custom field select list of certain post's titles to link the current post with other posts. I got quite far, I think. The select ...
0
votes
0answers
9 views

How to use ACF fields inside bootstrap shortcode within template

I'm using ACF fields to setup a custom page template for my Custom Post Type. i am using the Sparkling bootstrap theme. Here is the code I am trying to use in my single-dest.php: <?php echo ...
0
votes
1answer
24 views

Dynamically generated Navigation Diagram using Custom Fields

I am attempting to dynamically generate a Navigation Diagram (as seen at http://zinderlaw.indigo-grove.com) that uses custom fields on the page to fill in the href tags of the imagemap. I am not ...
0
votes
1answer
1k views

Let users upload image(s) to the post from front end

I want to enable logged in users (Wordpress) to submit posts from front end (among with other data). My form is working great, I add custom post meta data which I later display on custom post page. ...
1
vote
1answer
846 views

Matching Serialized Arrays with meta_query

I've asked a related question previously, but I think I've finally worked out the crux of my issue. I'm using Advanced Custom Fields and have a number of custom fields attached to my post type. I'm ...
0
votes
0answers
12 views

Custom Permalink with Custom user meta mapped to posts published by user

I want to map a custom user Meta to the permalink in the form of http://localhost/%user_meta%/posts. The user_metais a custom user meta whose id=brand. The URL http://localhost/%brand%/posts should ...
0
votes
2answers
21 views

Wordpress implode & wp_insert_post question

Just a few days ago I've started working on my new wordpress based website. I have a plugin which provides a Cars Database. I want to auto-fill my custom fields and taxonomies by taking info from ...
0
votes
1answer
372 views

Display MP3 as media using an URL from a custom field

I created custom field and placed this inside the loop: <?php echo get_post_meta($post->ID, 'ses', true); ?> But now the link is all text. I would like it to be like my theme does when I ...
2
votes
1answer
568 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 : ...