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

learn more… | top users | synonyms (2)

0
votes
0answers
8 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 ...
0
votes
0answers
17 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 ...
-1
votes
0answers
14 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
594 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
21 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
21 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
39 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
53 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
29 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
20 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
0answers
19 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 ...
11
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
192 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
19 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
1answer
67 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
21 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' ); ...
1
vote
2answers
378 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
24 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
28 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
0answers
16 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
31 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 ...
2
votes
1answer
729 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
1answer
42 views

Enabling shortcodes for custom fields

So, in this post it is explained how to supposedly enable shortcodes for custom fields in Wordpress. (Shortcodes are not enabled for custom fields by default.) What I dont understand is where to ...
0
votes
0answers
29 views

Generate feed using custom field?

I have created two custom field for post and pages and also I have added these custom field to my feed. That means If I'm hitting this url mysite.com/feed then I can see my custom field in the output. ...
1
vote
2answers
582 views

Force hide custom field metaboxes

How can I completely remove the custom fields and the collapse button in the Edit Post/Edit Page custom screen, but without removing the capability to add custom fields with a PHP function?
0
votes
1answer
333 views

Order custom fields alphabetically

I've been trying to order the custom fields alphabetically, but I can't get the ordered list I want... this is the code I'm using: <?php $vMarca = get_field('tienda_marcas' , false, ...
1
vote
1answer
77 views

window.send_to_editor and jQuery .attr() conflicts with multiple custom upload image meta boxes

I have added two custom meta boxes to a custom post type. One is to upload an image to be stored in a custom field value for a "headshot" and the other is to upload an image to be stored in a custom ...
0
votes
1answer
932 views

Custom field image to Featured Image

I'm changing the theme of a blog. The problem is when I export the content from the old post and import it into the new one, I don't get the Featured Image. It's the same problem posted here: Move ...
-1
votes
2answers
49 views

Displaying Random Image from ACF Options Page [closed]

So I've been tasked with making an "Image Advert" to be placed on a sidebar on this website. The client wants to have the ability to upload 5 images on to the ACF Options Page and then have a random ...
0
votes
0answers
22 views

Sort custom fields in admin by last field added

I'm trying to sort custom fields in admin post by last added fields but it sorted by words and number example my add is 3 , 6 , 4 , 7 , 5 , 1 when admin post save my custom sorted by number be ...
0
votes
1answer
37 views

custom meta box text field: how to limit to alpha or numeric only

I created a custom meta text field for adding a body class to a specific page. I want to limit the text to only alpha characters. Also, I am using ...
0
votes
0answers
25 views

WP_Query to show post from a category OR custom field - Not 100% answered

Regarding answer provided by birgirethis to this post: wp-query-to-show-post-from-a-category-or-custom-field I found one issue with your solution. The two inner joins (term_relationships and ...
3
votes
1answer
101 views

WP_Query to show post from a category OR custom field

I am looking for a way to show posts that belongs to a specific category or if they have a custom field. If I specify both parameter 'cat' => '9' and 'meta_key' => 'featured' in query arguments ...
0
votes
1answer
25 views

Display post meta conditionally based on it's value

I have a custom field that's a radio button with 3 choices (yes, no, other). What I'd like to do is the following: [If custom field value is yes] Display something here [elseIf custom field value ...
4
votes
2answers
460 views

What is the advantage of the wp_options design pattern?

As we all know, a design pattern that is used frequently in Wordpress' DB code is the idea of persisting data for a particular object (blog/post/comment), indexed with a particular name or key. We ...
0
votes
1answer
32 views

Can't get post ID using wp_insert_post_data

I have 3 custom fields as shown below. I want to use them to generate the title when I save/publish... etc The code works if I insert the post id as a number but not like this... function ...
0
votes
0answers
19 views

How to manipulate Wordpress custom fields to implement OG Tags on individual Posts

Hello my name is Erin and I have just started sharing my website content onto Facebook. The problem I've run into is that I can not control the description, image or title of the post. After doing ...
0
votes
2answers
43 views

divide custom field values in div every two values

i have this html mark-up to sort some data <div class="row"> <div class="col-xs-2"> <img src="images/member-schools/ms1.jpg" class="img-responsive"> </div> <div ...
0
votes
0answers
34 views

Insert XML data into the existing posts

I have nba videos news website and I want to insert xml data into the existing posts. For ex I have this post Pacers vs Timberwolves Match report and I want to import data from this xml: ...
0
votes
0answers
15 views

How to make guests able to add fields to a form at the front end?

Is there any way (maybe a plugin!) to let users add more fields to a submission form at the frontend? I have a form on my wordpress website by which guests/users can submit papers to the website. I ...
1
vote
1answer
28 views

Listing Texts of Which Custom Field is Null

I'm using the code below for adding checkbox as a custom field. The texts selected via checkbox will be counted as "special texts" and the other ones will remain as "ordinary texts". <?php ...
0
votes
0answers
23 views

Creating multiple CPT posts from one Gravity form

I'm attempting to have Gravity Forms create two post types in one form, based on data in the form. The two post type slugs are teardown and engine, and it's successful in creating both posts, but ...
0
votes
0answers
20 views

Show added custom fields under “Custom Fields” section in the page edit without page refresh

I have a theme that when Page A is used, functions.php adds a custom field "custom 1." When the value is assigned for "custom 1" then the page is updated, it creates "custom 2." Above behavior is ...
8
votes
3answers
5k views

Using meta query ('meta_query') with a search query ('s')

Trying to build a search that not only searches the defaults (title, content etc) but also a specific custom field. My current query: $args = array( 'post_type' => 'post', 's' => $query, ...
0
votes
1answer
31 views

worpress update post meta data(custom field) by post link

I have a post in my wordpress website, which has lot of custom fields. I have an excel sheet with "post link" - "custom field data" combination. That custom field(video url) is already set for each ...
0
votes
2answers
63 views

Ideas to connect external database table to wordpress posts as custom field source

I have a custom database table within wordpress database.. I filled this database with data and wordpress posts table with matching ids an example would be... wp-posts table has id - title ...
0
votes
0answers
17 views

Custom fields in normal posts

I have created numerous custom fields for custom post types, but I am a loss at how to do it for normal post types. The codex suggests doing it with in admin section but this seems to only apply to ...
1
vote
0answers
18 views

Set post to unpublished after one week depending on condition

I have a post type with a custom field checkbox. If this checkbox is checked and the post is published, I want to unpublish when one week has passed since last modified date. How would I go about ...
0
votes
0answers
31 views

how do I echo pods fields from a Page Template

I've created a Custom Post Type. I've added fields to the Custom Post Type using Pods. Now I'd like to access the data stored in the Pods Custom Fields in a Page Template. I've started out by using ...