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

learn more… | top users | synonyms (2)

-1
votes
0answers
13 views

if this kind of project possible in wordpress? [on hold]

i have some questions. i am planning to create my own “management crm”. so i looking for plugin that can give me the next options to build it in the way i want and need to my business. this project ...
0
votes
0answers
6 views

mqtranslate breaks Visual Editor for custom boxes [on hold]

I'm running mqtranslate along with the CMB "custom meta box" framework. When mqtranslate is active, I don't see the extra language tabs, and I am unable to switch between the Text and Visual Editor ...
0
votes
1answer
12 views

Custom Search Query – include only custom fields and title

I have a custom post type and I also need a custom search. I want the post title and two custom fields to be indexed/queried. I found solutions for title only and for custom fields but not for both so ...
-1
votes
0answers
17 views

ACF repeater for events, how to pick next upcoming event? [on hold]

I have created an ACF repeater field to display events. Now on one page, I need to display the next upcoming event. How do I do this? I tried to sort the events by event_date and display only the ...
-1
votes
0answers
10 views

Sort posts my custom fields [on hold]

I'm wondering if there is any plugin that would allow me to do it. I also posted a picture to explain it a bit better. Basically I want to sort posts or specific post types when a user selects some ...
0
votes
2answers
44 views

List of users that clicked a 'Join' button at single post

The title might be a bit vague while I'm not quite sure how to describe it. What I want: At every single post (in this case of post type 'event') a logged in user must be able to click a 'Join' ...
-1
votes
0answers
25 views

Woocommerce - Add custom field to products and display in Orders [closed]

I need to add a custom field to my products that will contain an internal SKU used by my distributors. There's a great article here describing how to create and save the data when you add/edit a ...
0
votes
0answers
25 views

Multiple meta data one label

I am wanting one label but multiple data to be under the label. I also want to reference each input option individually so that I can query for specific meta data. Currently I have, function ...
0
votes
1answer
18 views

Custom field php

Hi I put this php code on my single post php <?php $custom_fields = get_post_meta($post_id); $my_custom_field = $custom_fields['_source_link']; //key name foreach ( $my_custom_field as $key => ...
0
votes
1answer
20 views

Get custom fields when hover link of post

I have custom page and get some links of post if( $my_query->have_posts() ) { while ($my_query->have_posts()) : $my_query->the_post(); ?> <li><a href="<?php ...
1
vote
1answer
28 views

Styling Taxonomy Terms Individually

I am trying to solve a problem and need help :) First, I have a custom grid displaying terms and images from my custom taxonomy. This is the code I'm using currently: <?php $terms = get_terms( ...
0
votes
0answers
7 views

WP UserFrontend Automatically echoes the Custom Fields in post [closed]

I checked the plugin and linked it with the current fields from Advanced Custom Fields. The problem occures, when people are writing something in the field. I just need that it writes in the field ...
0
votes
0answers
18 views

Stop registration field validation from running based on condition

I have am trying to customize the registration process for a wordpress/buddypress site. Each user must either select a pre-existing company from a dropdown box, or if the company does not exist, they ...
0
votes
1answer
21 views

do_shortcode close

I am using the jscrollpane plugin on WordPress along with the advanced custom fields plugin. The jscrollpane plugin uses the following shortcodes: [vr_jsp] [/vr_jsp] I have two different custom ...
-1
votes
1answer
22 views

Custom fields doesnt work well with any postTAB plugin

Here is my problem: I tried to implement custom fields (text) within a post tab. I tried many post tab plugins and the imlementation to template was succesfull... Unfortunately, the content of the ...
0
votes
1answer
32 views

Filter and display a specific custom field value [closed]

I am developing a travel website for an agency. I'm trying to to make the user able to select an option like "Select your departure" and filter the loop with all the departures available for the ...
1
vote
1answer
17 views

Linking Custom Fields to Database Records

Hey there im fairly new to wordpress and php, but have a strong programming/database background. I recently learned about custom fields and am wondering if it is at all possible to do the following ...
0
votes
1answer
17 views

Hide a div when a custom field is empty

I am having trouble hiding a div when the input of a custom field is empty. This is the code I am using but can not seem to get it to work. The field that displays the content is _cmb_fe_wysiwyg ...
0
votes
1answer
23 views

one get_posts to return a number of custom posts for each meta value

I have setup a custom post 'product' with a custom field cf_type. I wish to have one get_posts that will return 20 total products, 10 products with cf_type: fog and 10 with cf_type: gof. Is that ...
0
votes
0answers
16 views

Custom field with subdomain

I am currently having a problem related to the display of custom field article is "language" Specifically as follows: I have a blog with multiple applications for mobile phones, as this blog ...
0
votes
1answer
32 views

WP_query returns error when used for custom widget

I was working on creating my first plugin/widget that should display a really simple loop containing only a custom field (image) I've been testing the loop without any problems in my theme but when I ...
0
votes
1answer
34 views

Show Custom Post Type taxonomy term that matches custom field

Not sure how well I can explain this but I will try. I have two Custom Post Types. One is "Locations" and one is "Members." I need to show only the members that belong to the location. "Locations" has ...
1
vote
1answer
18 views

WordPress Custom Field Should be Unique. Is it possible?

I have a custom field called "website_url". It should be unique. Ex: If a author set "http://wordpress.stackexchange.com/questions/ask" as the custom field value as a post, ...
6
votes
3answers
268 views

Adding custom input for data attribute in insert media modal

I'm trying to add a text input to the "Insert Media" modal in the hopes of being able to add an html5 data- attribute to the images' parent anchor. <a class="fancybox" href="..." ...
0
votes
0answers
12 views

Only display custom fields that are associated with template

I am in a predicament where I have entirely too many custom fields displaying in my admin. Ideally I would like to filter through all custom fields created for my site and only display the ones ...
0
votes
2answers
36 views

Can we create a custom post template for a specific page template

I am working in wordpress for the first time and the client had a requirement that we create a template which will be used for multiple products as shown below The question I do have is it possible ...
0
votes
1answer
19 views

How to query the custom fields by language?

For each post, there is a custom field name "Function", the key/value pair is like this: Key : Functions Value : <!--en-->Nourishing Yin and invigorating the vital essence of ...
0
votes
0answers
27 views

Undefined index error when saving content on metabox

I am trying to debug 'undefined index' errors on the WP backend when debug is set to TRUE. The offending lines are: if ( !wp_verify_nonce( $_POST['pdwt_meta_noncename'], ...
0
votes
1answer
17 views

pre_get_posts causes Custom Posts appear under 'Pages' menu

In order to enable pagination on for custom post archive I've added pre_get_posts function. But, funnily it caused my custom posts be duplicated under 'Pages' menu. Here is the code that causes the ...
0
votes
0answers
20 views

display some fields in custom post backend

I am using the following code for the custom post.But i want three fields i.e Location,Persons ,Client to permanently appear in the backend of the custom post rather than having to create and select ...
2
votes
1answer
20 views

Custom field when adding new site to multisite networked WordPress

I have a multisite setup in WordPress. Is there a way for me to implement a custom field when I create a new site in Admin > Sites > Add New. My current options are Site Address, Site Title, Admin ...
0
votes
1answer
28 views

get_post_meta fields don't show up on posts page

I'm new here, and to coding! I've been working hard (so, so hard...so hard) to create my website and with occasional help I've created a look and feel I like using some custom get_post_meta fields for ...
0
votes
1answer
24 views

Create a list of posts with topic headdings

I would like to use a custom field "topic" to order Wordpress posts. This seems quite doable using 'orderby' => 'meta_value', 'meta_key' => 'topic' But I would also like to have a title of ...
0
votes
3answers
28 views

Deleted pages showing up when querying for child pages

I'm using the following code to display the featured image, post_title and custom field data from relevant child pages. <? $child_pages = $wpdb->get_results("SELECT * FROM $wpdb->posts WHERE ...
0
votes
1answer
43 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
1answer
26 views

Adding custom fields to images

I want to show sources under my every images. So basicly I want to add a simple custom field. I added this code to my function.php add_filter('attachment_fields_to_edit', 'edit_media_custom_field', ...
0
votes
0answers
27 views

How to save dynamically generated value in post type?

I'm trying to use the count of the amount of people that register a post id to a table in the DB. I want to save this COUNT value to the post_meta so when I display the list of posts it can also show ...
0
votes
1answer
85 views

Group WP_Query by meta_key date

I have a wp_query which lists posts from a custom post type, sorted by a custom field 'time'. I'd like to group this list by another custom field 'date', so that every post that has the same custom ...
1
vote
1answer
37 views

Create Pop-Up Box with Custom Field Content Inside the Loop

I tried this using ThickBox first, then tried using some code I had that worked on another website... Total failure. The Goal: I have a custom post type (product) with a ton of custom fields. I also ...
0
votes
0answers
98 views

get url image of custom field with custom size - get_post_meta, wp_get_attachment_image_src

I use a custom WP_Query to load image and other information from custom post type event to supersized.js script. This query get all custom post type event with custom field wpcf-img-event not empty ...
0
votes
2answers
46 views

How to get multiple checkboxes in one meta field

I can manage to show one checkbox using woocommerce products custom fields However, I need to show multiple values from multiple checkboxes in my admin area. I have the following code: <input ...
0
votes
0answers
17 views

Custom post with custom category and custom meta box query and order by custom_value

Im building a Library CPT= Libro Custom Taxonomy= categoria_libro (as category) Custom meta box which has: autor editorial ciudad año As it says in the title, I need to query a custom post ...
0
votes
0answers
26 views

conditional logic for front-end custom field edits

I'm just starting to learn php/js and would like some recommendations on the best way to setup my logic: Goal- Display the value in a custom metafield in the custom post type. If the user is the ...
1
vote
1answer
69 views

How to create a Custom Meta Box with Name/Value Admin User Input Fields?

I have researched many tutorials on how to create/add Custom Meta Boxes using the add_meta_box() Wordpress function. I can not find any example where the finished Meta Box has the option for an Admin ...
0
votes
1answer
43 views

Is it possible in WordPress

I am trying to create a ranking based on user donation, my problem is I am not sure if wordpress user meta support append For each Project a user can donate money via paypal In WordPress User Meta I ...
0
votes
0answers
7 views

Default Custom Field User Data

I want to create a user meta that would either add or update In the user meta there are two custom field 'projects' and 'amount' so if user donated $1 to project A the user meta will create a row, ...
0
votes
1answer
15 views

Change path to child of page when uploading image via custom field

Is it possible to change the path of an image when it is uploaded via a custom field so that instead of appearing as www.mysite.com/wp-content/uploads/2014/05/file.pdf it will appear as ...
0
votes
0answers
55 views

Conditional logic Advance custom field

i try to use this code to have a conditional logic form some field on back-end on ACF Plugin. I have a select HTML field with si/no (yes/no). If i select no, nothing show but if i select yes appares ...
0
votes
0answers
30 views

Calling Custom Fields within a category loop?

What I'm trying to do is to display a specific category post listing within a page template, showing only each post's custom fields, which must be pulled and included within the following html. What I ...
0
votes
2answers
19 views

How can I hide my section title if there is no data in custom fields?

I wrote this function with a foreach and I'm not able to figure out how to hide the section title if there are no custom fields in $lista. Where should I place the section title? function ...