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

learn more… | top users | synonyms (2)

-2
votes
0answers
9 views

Metabox from Video Thumbnail plugin in Front End Post Submission Form

I'm trying to get metabox from Video Thumbnail plugin to my Front End Submission Form. The reason of it, is that the plugin doesn't save the thumbnail from custom field. I was looking for the answer ...
0
votes
0answers
11 views

WordPress trims an encrypted field

Problem is that when I try to insert a new post into WordPress, the password (encrypted, see code below) is cut. For example: encrypted Ivt9=f:;itKun+TiIarze-GyX5Rt is only Ivt in WordPress. ...
0
votes
0answers
16 views

Create custom mega menu [on hold]

Currently, I'm creating a custom mega menu which is very customized There are types of menus to choose from in appearance menu: simple sub-menu. Links mega-menu (2, 3 or 4 columns). box menu (2, 3 ...
1
vote
1answer
27 views

How do i add custom fields to my themes template file?

I am using 4 custom fields and display the custom fields in my theme page by $quote_text_1 = get_post_meta($post->ID, 'quote_text_1', true); $quote_text_1_author = get_post_meta($post->ID, ...
-1
votes
0answers
22 views

Add new custom field for custom taxonomy - print_r field not found

Thanks to this website, I succeeded in adding a field for my custom taxonomy (my taxonomy is called "ptype"), but when I try to use the function to save the data, I don't have my custom field in the ...
-1
votes
0answers
8 views

add customize input field for text input into cart of woocommerce [on hold]

It's easy to insert a new input field in checkout, but the cart.php is a problem (for me). I need an additional text field. After inserting, I'll check the inputed text. Is the text okay, so I'll ...
0
votes
1answer
28 views

Order posts by date and then by custom field

I am trying to do something like this one. Ordering posts by day (not time) AND meta value I want to list blog posts ordered by date (not time) and then within that day, I want to sort them by custom ...
-2
votes
0answers
13 views

Is there any plugin to search by multiple fields input from excel table? [on hold]

I am just like a layman in web developing; I made a simple website on mantra theme. I have a long data in excel table where column 1 is country name, 2 is company name and 3 is product name, while in ...
0
votes
1answer
17 views

How to add custom field option with menu?

Please take a look at below image. Here we can see URL, Navigation Label & Title Attribute under Menu Structure >> Home. I need there a more option called "Data Description". I have a task to ...
0
votes
1answer
18 views

Fill empty custom field with other custom field

i have a product listing website, all products are uploaded from csv. i have a two custom field named "old_price" and "new_price". Sometimes there is no discount (new_price) , so the field be empty. ...
0
votes
1answer
24 views

Wrap this custom field with hyperlink link

Just created a custom field from scratch by following a tutorial. I have a field for a website link. Currently it outputs only raw text, no linking. So how do I make this code hyperlink: ...
2
votes
1answer
36 views

Meta query with string starting like pattern

I have a custom WP_Query with the following meta_query: $meta_query = array(); $meta_query['relation'] = 'AND'; if(!empty($postcode)) { $meta_query[] = array( 'key' => 'postcode', ...
0
votes
1answer
20 views

WP_Query on custom post type not displaying, multiple loops & get_template_part

I'm having problems getting my testimonials to display. On page.php I have a testimonials section. So I have a loop that grabs the content for page.php, and then a get_template_part('content', ...
-1
votes
0answers
10 views

Looking for help with ACF fields not showing on a wordpress custom taxonomy page [closed]

Hi I'm having trouble showing ACF on a custom taxonomy page. The custom tax is 'destinations' with the page being taxomony-destinations.php the field is called 'destination_landing_image. I'm trying ...
0
votes
1answer
15 views

Make URL in custom field hyper link

In my WordPress site I have created a custom field for author website link. but I don't know how to make it hyperlink, so people can click on it to surf that website. at this moment it only shows raw ...
0
votes
0answers
23 views

Custom taxonomy - custom sortable column

I've created custom taxonomy called 'cities' where you can add cities and added custom field ( radio button ) with 2 options: 'Yes' and 'No' ( never mind what that is ). Everythins is ok, I can get ...
0
votes
0answers
23 views

Create custom post on user registration and include custom fields

I am trying to create a custom post when a user registers. I found the solution below very helpful and it basically works. The problem I have is that I also need to set some custom field values when ...
0
votes
0answers
24 views

Show Custom Field

i am using WCK - Custom Fields and Custom Post Types Creator. I am have code for show image. <?php $my_meta = get_post_meta( $post->ID, 'my_meta_name', true ); if( !empty( ...
0
votes
1answer
23 views

Custom registration form and custom field

I've created a custom registration form for my website with this code: <?php /* Template Name: Registrazione-Custom */ get_header(); ?> <!-- Row for main content area --> ...
0
votes
3answers
37 views

ACF: Filter Terms by Custom Field? [closed]

I'm using the Advanced Custom Fields plug-in. I have a a custom 'select' field applied to a taxonomy within a custom post type. I would like to "query" - based on a custom field value of 'Active' or ...
0
votes
1answer
10 views

Unable to get the upcoming events for custom post

I have custom post ='events' and there is custom field 'event-start-date' for each events. I want to show the upcoming events for which I am using the following code. $date_today = time(); ...
0
votes
1answer
16 views

Add custom field to post with some part of url as value

I wish to move my site from some other CMS to WP. There is no any usefull migration, export option in my current CMS so I will need to create posts again manually. I will to transfer important fields ...
0
votes
1answer
19 views

Add custom objects/entities to Wordpress

(I have some experience creating Wordpress themes but no experience in extending Wordpress functionality. I'm sure this must be a very common question, but I don't know how to search for the answer. ...
0
votes
0answers
13 views

WP_Query Meta_key is text value and need to sort as numeric not working

I have the following code below in my ~WP_Query`. $args[ 'meta_key'] = 'price'; $args['orderby'] = 'meta_value meta_value_num'; $args['order'] = 'ASC'; The custom field in question has historic ...
0
votes
0answers
10 views

User field and access post

I’ve create two custom post type (all'code here). I use the ACF Plugin to create custom post and 've create a relationship user field with the field name "sleziona_cliente". I create a cpt post and ...
0
votes
0answers
26 views

Create hierarchical menu for custom taxonomy meta field

I've created a custom fields for a custom taxonomy. All works fine so far, I can save, edit and display these fields. Now I want to display these fields in the admin menu as a hierarchical menu like ...
0
votes
0answers
14 views

Category name from custom fields

I have a problem with getting category name. I was trying a few versions of code and I don't have any idea how to run it correctly. I have custom field (field type - taxonomy-category/ ...
0
votes
0answers
11 views

How to add download to post & more?

What is the correct way of adding downloadable content to posts? More complex situation: I have a portfolio, and sometimes I do stuff that is meant to be freebie and I want it to be downloadable. ...
0
votes
1answer
61 views

Custom post types category

I have created a theme with a custom post type called 'project' and there is a problem. I want to show 5 different custom post type categories on a page in different portions, like posts to show on ...
1
vote
1answer
36 views

How do you create dynamic customised sections in Wordpress?

I am very new to Wordpress and I just like to ask a fundamental question about its structure. I understand that Wordpress uses different files as templates for different sections or types of pages. ...
0
votes
0answers
16 views

How to save meta box check box values and show them on a post?

I added this codes on my child theme functions.php add_action( 'add_meta_boxes', 'cd_meta_box_add' ); function cd_meta_box_add() { add_meta_box( 'my-meta-box-id', 'My First Meta Box', ...
0
votes
1answer
21 views

How to use conditional statement with custom field

I think it is a simple thing but I am not good on php so :( can you guys tell me how I can use an if condition with my custom filed. Below is my current code. <div class="courtesy"><?php ...
0
votes
0answers
12 views

Category custom fields - checkbox not updating

/* ** Category custom fields */ add_action ( 'edit_category_form_fields', 'extra_category_fields'); function extra_category_fields($tag) { $t_id = $tag->term_id; $cat_meta = ...
0
votes
1answer
25 views

Paying to Access Custom Fields Per Post

I need a way to protect access to custom fields within my posts. I've been looking at several plugs ins, but none seem quite right. I do not need to protect the body of my post, just a set of custom ...
0
votes
0answers
12 views

Creating a filter to modify links ending in .pdf

I'm trying to create a filter that checks for links that are to PDFs, and append the href attribute with something like /form?file=[path to pdf]. For example, starting with: <a ...
0
votes
1answer
18 views

get posts where a custom field contains a text

I have a custom field where the value contains a comma separated list of items (like: test1,test2,test3), now I want to retrieve posts where the field contains one of the values, I have: $query = ...
0
votes
1answer
19 views

Sorting posts by Multiple custom fields in defined order

I'm currently sorting some posts out by custom fields 'role' and 'surname', using the following: function customorder($orderby) { return 'mt1.meta_value DESC, mt2.meta_value ASC'; } $args = ...
0
votes
1answer
44 views

Custom Meta Boxes and Fields for WordPress: Change directory upload based on user-edit page

I have already published this on StackOverflow, but I realised it would be better to post it here instead. I am using the CMB script (Custom Meta Boxes and Fields for WordPress) for uploading files ...
0
votes
0answers
19 views

Custom Field, add gallery id

Is it possible to add a gallery id like [gallery ids="9"] to custom field using the media editor in wordpress? I have attached a media function to a specific custom field but are not able to insert ...
1
vote
0answers
26 views

frontend image post uploader

I've set up image uploader on front end custom form for users with some text input, textareas etc .Everything works fine, untill I decide don't upload any image. Then my "thank you" page gets blank. ...
0
votes
0answers
12 views

How can I put a custom field value that needs to be inside the loop, in a custom menu via functions.php?

How can I put a custom field value that needs to be inside the loop, in a custom menu via functions.php?? I'm working on a bilingual website and I'm using the Bilingual Linker plugin. I was able to ...
0
votes
1answer
17 views

Is there a way to dump all registered sidebar/widget?

I need to know the properties of sidebar and widgets I've added, is there a way to dump those? Thanks.
0
votes
0answers
6 views

Incoming URL variables to custom metabox

Is it possible to take values from an incoming URL variable and write it to a custom meta box? My client has something like the following for a URL (marketing purposes): ...
0
votes
2answers
22 views

How to exclude post from being queried based on custom meta value

I am building a reviewing system for user-submitted posts on my website. I have a page called page-review.php which displays the oldest post of the "pending review" category. This is to ensure that ...
0
votes
2answers
23 views

Order Custom Posts by Several Fields

I have a page that lists out the members of our band, as a custom post type. I am trying to order the members by several custom fields, field by category, or "section, then by their class, and then ...
1
vote
0answers
34 views

Custom Field to a Role?

Is it possible to add custom field to a custom role? Say I want to create roles that represent a membership level and want to add billing options to it. So it'd look like this: Membership level ...
0
votes
1answer
49 views

How to diplay a div only if at least one author custom profile field is filled?

I try to build a small plugin that adds few social profile fields to WordPress user form and display their social icons to the author meta box on single post. The problem I face is as follow: The ...
0
votes
1answer
17 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 ...
0
votes
1answer
22 views

Display Multiple Values of Same Key

I am going to put multiple value on custom field using same key (my key is link). So the value will be value A and value B And heres my custom field code for single value: <a href="<?php ...
0
votes
1answer
48 views

Set custom field value when reaching expiration date

I had the idea to make sticky posts expire after a certain period of time. FYI, I am using a custom post type along with custom field suite and created sticky posts by creating a boolean custom ...