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

learn more… | top users | synonyms (2)

0
votes
1answer
19 views

Extend WP_User_Query or WP_User to return all custom fields?

I'm trying to pull out list of about 5000+ member records for CSV export. The query is timed out and I suppose the reason is that in order to populate the CSV file I need to iterate over those 5000 ...
0
votes
0answers
30 views

How to sort category by custom field value

I am using the following : $catargs = array( 'meta_key'=> 'category_custom_order', 'orderby' => 'meta_value_num', 'order'=> 'ASC', ); but I can get the ...
0
votes
1answer
13 views

Best way to create a search for custom post type by custom field values

I have a custom post type called people. I want to have 3 search fields for; first-name, middle-name and last-name I was thinking about creating a page with my own search boxes and use query_posts: ...
0
votes
0answers
8 views

How to retrieve a post by inputing the url in a custom field and displaying it on an options page

If have an options page where I have a custom text field and I want to paste a url of a post in that custom field and retrieve the Post Title and Excerpt and display theme above the custom field and ...
0
votes
0answers
17 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
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
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
0answers
12 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
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 ...
0
votes
0answers
5 views

Hiding Canvas-WooThemes layout 'General Settings' in WordPress backend [on hold]

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
11 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 ...
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 ...
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
31 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
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
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
16 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 ...
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 ...
1
vote
1answer
42 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 ...
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
49 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
0answers
13 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
25 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
13 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
25 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
2answers
189 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
34 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
28 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
1answer
45 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 ...
-1
votes
2answers
38 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
0answers
22 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 ...
0
votes
1answer
19 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 ...
-1
votes
0answers
27 views

Can't echo Custom Fields on WooCommerce product- & category page

I'm trying to use a subtitle to my products and display them on category page and product details page. I've found the code everyone is referring to: <h3><?php echo ...
0
votes
1answer
22 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
15 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
0answers
13 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
12 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 ...
0
votes
2answers
35 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 ...
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
16 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 ...
0
votes
0answers
18 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
1answer
17 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
0answers
16 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
15 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
16 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 ...
0
votes
2answers
46 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
2answers
55 views

Custom search SQL Query to add custom field in result

I have to write my own MySQL query since I haven't found a good way to do it within wordpress functionality. I want the search query to search trough post_title / post_content & meta_key ...
0
votes
0answers
28 views

Add a product custom field's value to custom tab

I would like to add some custom tabs to the product screen. The values of these custom tabs would be the values of the custom fields assigned to the product. I'm using the following plugin to add ...