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

learn more… | top users | synonyms (2)

0
votes
1answer
7 views

How to show a gloabl message on a user profile page (in back end)?

I want to show a global message for all users in their profile page. I do not want to edit profile.php what is the hook to do this? Basically I want to add a div to show a paragraph below the ...
0
votes
1answer
15 views

Populate a select box with data stored in the database?

I know generally how to add custom fields to the user profile page. However, I need to add a custom select box to the profile page that is populated with all the schools in the state. (Our users will ...
0
votes
0answers
8 views

Adding Custom Fields/editing description css in NextGen Gallery

Hello I am currently trying to build a vehicle selling page using wordpress & The Nxt-Gen Gallery. I am currently using the shortcode below to include the description underneath the thumbnails. ...
0
votes
0answers
5 views

Woocommerce - get custom field value in cart [on hold]

I created field 'bali_latitude' with advanced custom fields, it is displayed in products. I want to get this field's value to cart to be able to retrieve it on the map in my cart. I used this code: ...
1
vote
1answer
20 views

Categories list into registration form

I'm trying to create a custom user registration form used for Educational website. Is it possible to automatically retrieve categories of posts (custom posts) in the registration form. The form ...
0
votes
0answers
13 views

Show custom shipping and payment field Woocommerce in backend [on hold]

I have created a custom checkout field in a WooCommerce store. I managed to get my custom field to show on the checkout page by using this code i found on the WooCommerce documentation page: // Hook ...
0
votes
0answers
10 views

Guest Author - How to display posts on /author/ archive page

I have used the Advanced Custom Fields plugin to create all the data elements for a company leadership directory page and management bio pages. On the site blog, management will not be posting ...
0
votes
0answers
9 views

Converting a checkbox filter for custom fields to a dropdown

I've been scratching my head trying to figure this out for awhile now and was wondering if someone could provide some help. My PHP knowledge isn't the best so I'm working with what I have and it ...
0
votes
0answers
26 views

Custom Post Field -> Returning only the word “array”

So I've tried this: $output .= '<span class="team-member-venue">'.get_post_meta( get_the_ID(), 'venueofcoach', true ).'</span>'; Where venueofcoach is the metaname of the custom post ...
0
votes
0answers
7 views

Add another field with javascript or delete field

I need Help with code for wordpress I have a new field with price and i want to know how do i add button to add the new service in February filduri seerviciului name and price I ued this code ...
-1
votes
0answers
15 views

post from front end [closed]

I need authors to be able to post a posts from the front end. The tricky part is that i need custom fields in the post. For example it is a post for recipe and it has fields like : cooking time cups ...
0
votes
0answers
8 views

Selecting distinct days from a custom field within a range

I have an events custom post type that stores a date as a custom field named datestart. I need to select the distinct dates in this field, where they fall in a given month, and return those distinct ...
0
votes
0answers
19 views

Query for related posts by tags with custom field and custom post type

I've found a lot of very similar questions here, and have tried to use the (accepted) solutions without success, guessing I'm doing something very simple wrong and just can't see it so I'm hoping a ...
1
vote
1answer
17 views

Accessing loop functions (e.g the_title or the_content) from post ID

I have an array of post IDs obtained through complicated filtering code. I want to display posts from these IDs, and for each post I need access to regular post functions like the_title and such. More ...
2
votes
1answer
69 views
+50

Add custom field to media attachment image attribute in post editor

I have the following filter, but do not know how to add custom attributes to image field, when attaching media to post. example <img data-ext-link-title="" data-ext-link-url=""> ...
0
votes
0answers
14 views

Register author, facebook connect, publish posts from front end

I need little help to navigate me to the right method in these six steps. Need a facebook login, which when you connect you register in the site like a author. You have a register form to register ...
0
votes
1answer
23 views

WP Query between posts custom fields [duplicate]

I've tried doing a WP_Query based on a custom field, which name is 'date' and value is something like '14/01/2015'. I want the query to give results when 'date' is between today and tomorrow. All ...
0
votes
1answer
28 views

How to “group” (categorize) the Pages together?

I have a lot of Pages which can be (need to be) grouped under a number of different Categories. ** Then the more important thing is, i need to control those pages (of different groups) programatically ...
0
votes
0answers
15 views

Insert blogname automatically in custom field on ecery post

I have a WP Multisite and looking for a way to add blogname to a custom field. I have the code setup to automatically insert show_name => custom_value to every post, now I need help to add the ...
0
votes
1answer
29 views

Get A Custom Field From A Custom Taxonomy Of A Custom Post Type [closed]

This has probably been answered before but I'm stumped so I'll ask anyway. I have a custom post type called products. I then have a custom taxonomy called product-category. I've set up a custom field ...
0
votes
1answer
40 views

How can I see a list of products that I have set to outofstock through a custom field check box?

So I have tons of products being displayed through my custom post type of products made by the 'Advanced Custom Field' and 'Custom Post Type UI' plugins. I made a very simple custom field named ...
0
votes
1answer
22 views

How to add an extra, independent set of custom fields?

I'm looking for a plugin or sth to let the admin enter a list of specs (name & value) for a given type of post. The regular custom fields would work perfectly but of course, they are used by some ...
0
votes
1answer
15 views

How do I use foreach to get content from a custom-field in multiple posts?

so I am trying to use a foreach to pull content from a custom field in multiple posts, but it just wont work. I can get it to work for a simple textarea string but I am struggling getting it to work ...
0
votes
0answers
26 views

Custom post type in theme page

I am having a problem with a website I'm currently working on. I am using the theme Html5-Blank by Todd Motto and Advanced Custom Fields for the content. The problem is this: I am using a custom post ...
1
vote
1answer
46 views

Add custom fields to search

I want to add a custom fields ("introduction" and "ensavoirplus") to search of Wordpress, but the SQL code is not exact. I don't understand if i do a mistake or if WP don't can do this. But my attempt ...
0
votes
0answers
10 views

How to make list of checkboxes based of number of distincs value of some custom field?

I need to make list of checkboxes based of number of distincs value of some custom field (Country) for visitors able to choose only post where this field Country the same as they are interested one. ...
1
vote
0answers
25 views

More efficient to add content to custom fields or the content area?

I often build themes that handle a lot of text content. I use Advanced Custom Fields to create several custom field areas per page for adding this content. I've also used themes with page builders ...
0
votes
1answer
44 views

Sorting posts by custom date fields (non standard date format)

I've inherited a website with a post type courses that has a custom field 'date-start', a Date Picker. Unfortunately the date start is stored as 'ddmmyy' and the ACF documentation implies that this ...
0
votes
1answer
42 views

Custom field and category query

I have created custom .php file that should show list of all posts that correspond to user's choice. I have 3 custom fields and 1 category condition. I've tried all the queries i could possibly find ...
0
votes
1answer
27 views

Saving custom image meta fields

I have currently added a custom meta field for uploading a media file (image). I can successfully add the upload button to display and work but I'm having problems saving the field when updating the ...
0
votes
1answer
37 views

Query post order by post and desc not working

I have a query that displays post the order of the post 1 to 10 and front-end added: <?php print intval( $post->menu_order );?>º there shows 1º, 2º, 3º ... 10º must reverse the display but ...
0
votes
1answer
15 views

Search posts missing a particular custom field

I am trying to search for posts that do not have yet set a particular custom field. The problem is that query down below returns an empty result. $args = array( 'post_type' => 'post', ...
0
votes
0answers
17 views

Custom permalink parameter isn't enforced

I'm trying to create a custom permalink for my posts based on a custom field. I'm most of the way there but I'm struggling with the last part. My goal permalink structure is as follows: ...
1
vote
1answer
49 views

How to associate 2 custom fields together (date & price for instance)?

On my website you can purchase a trip after choosing the departure date (among the available departure dates). In the back-end, a trip is a CPT in which departure dates are specified through "Repeater ...
0
votes
0answers
21 views

Custom searchfield autocomplete

I have tried to fire an autocomplete on a customized search field but to no avail. I have used some codes from help sites but I really do not know what I am doing wrong. Nothing happens when I type a ...
0
votes
1answer
21 views

Why is wp_list_pages altering $post->ID of the page?

So I have a template that is used for all pages in a section that has this script to create a menu based off children: <?php if($post->ID = 142) { $children = ...
0
votes
1answer
26 views

Empty the_content for all posts

I'm moving everything that is displayed with the_content in custom fields and i want to remove/emtpy the content of the post_content column in the database, for every post. Is there a mysql query ...
0
votes
1answer
16 views

Show custom field on attachment page?

I use this code to show custom field value outside loop on post page (single.php): <?php echo get_custom_field('my_custom_field'); ?> But, that is not working on attachment page (image.php). ...
0
votes
1answer
33 views

wp_query with multiple custom fields

My Query is this: $products = new WP_Query( array( 'post_type' => 'ys_product', 'orderby' => array( 'date' ), 'order' => 'DESC', ...
-1
votes
2answers
23 views

Create custom field on post draft or publish?

How to automatically create custom field on post draft or publish with one of several offered values? For example I wish to create custom field named "random_color" with one of potential values: ...
0
votes
1answer
22 views

Get text from user and display it on page

I would like to ask you how can I go about getting text data from user and then displaying this custom per user text on their account page. Can I use custom fields for this? Should I write my own ...
0
votes
1answer
40 views

How to query using a combination of custom_field values?

I need to get posts pertaining to a given category, AND : have the event_start_date (custom field) greater or equal than today's date OR have a event_end date (custom field) greater or equal than ...
0
votes
1answer
57 views

Custom Post type and Custom Field WP_Query

I am developing a site for a client who is a Youth Football (Soccer) Club, with lots of different Teams depending on the abilities and ages of the children. I have added in a Custom Post Type called ...
0
votes
0answers
19 views

Auto create child post from custom field?

I have a custom post type that has 3 custom fields. If I create a post with data filled in those 3 custom fields I want it to auto create child posts for each custom field & using the data from ...
0
votes
0answers
19 views

Pass custom post meta to dynamic page

We do lead generation using the gravity forms plugin for our site forms. Right now we create the marketing page with the form on it, then we create a child thank you page that the user is redirected ...
1
vote
1answer
75 views

Add / Update Custom Fields After Select Pictures in Media Window

I just added a button called Add Slider in Add/Edit Post Page. Here's my code in my functions.php : //Add button to create slider add_action('media_buttons','add_my_media_button',15); function ...
0
votes
1answer
27 views

When post is updated, custom metadata in text area field is overwritten

I have set up 2 new post meta fields in order to add functionality to a custom post type. The custom fields generally work as expected, with a couple exceptions. I set up a checkbox (called ...
1
vote
1answer
41 views

Display custom post on home page based on a metabox selection

I am trying to display an post to my home page based on a selection. What I mean is in the backend I have a custom post that has a metabox labeled Assign to Home with a drop down that has a selection ...
0
votes
0answers
39 views

Search for keywords in 3x custom fields and post title within a custom post type

I have create a custom search, where it needs to search within 3 custom fields in one custom post type. I am altering a custom search I paid someone to create, but I'm trying to learn from this an do ...
0
votes
1answer
71 views

add_action and remove_action if custom field exists

I know this may be off-topic as it has to do with Genesis (a premium framework), but with general WordPress, this has to do with running a remove_action and an add_action depending on if a custom ...