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

How to Use IMDB link to Make Full Post [on hold]

I have seen video of one Wordpress Movie Theme Grifus 4.4 See This Video I am trying to make that type of website ,But i didn't understand how to make these. Are these custom fields ,If yes then how ...
0
votes
0answers
15 views

Strange issue with custom fields not showing data for certain posts but working fine on others

I have a very strange issue with custom fields on my site. I am using the custom fields for custom post types. So lets say the custom post type is called "cars". I will have various custom fields like ...
1
vote
2answers
42 views

Determine when a custom field was last updated?

Would anyone know of a way to determine when a custom field for a post was last updated? I'm trying to write something that says "If CUSTOMFIELD was updated in the last 24 hours don't do anything, ...
1
vote
0answers
25 views

Last modified field for user profile?

Is there a plugin or a known way to track user profile changes and save a last modified date in Wordpress? I tried with ACF, but it doesn't have an option to auto update this field. Thanks in ...
3
votes
1answer
33 views

Add options to featured image

I want to add an option to the featured image metabox. I have found a way to do this here The problem I'm having is saving the value tot the database. Here is what I have tried: add_filter( ...
1
vote
0answers
17 views

automatically set “Featured Image” the same as the og:i that is set in a custom field

I currently have a site that uses the "custom fields" feature to set the value of the meta property="og:image" for each post. All of my og:images are stored on an external server. I'm looking for a ...
1
vote
1answer
19 views

Meta Query returns wrong number of posts

I am using this meta query inside a category: $args = array( "posts_per_page" => 12, "post_type" => array( "event", "post" ), "post_status" => "publish", ...
6
votes
1answer
67 views

What is “meta_input” parameter in wp_insert_post() used for?

I am inserting some post into wordpress using the function wp_insert_post(). I want to insert some custom fields on each post and reading the documentation I though the meta_info parameter was used ...
-1
votes
1answer
17 views

how to search apps metadata on Google play store and insert it

I'm looking for a plugin or a script that can be used with wordpress to fetch applications infos (description-version-author) and insert them into posts , there's a lot of website that use the same ...
1
vote
0answers
12 views

Homepage's content is dependent on the custom field values (set automatically), how do I get homepage to update without manually updating page?

I have a custom field in my home page called "Featured posts". There are two fields: title and post. The post field returns post_object with post_type as posts. In my functions.php I have added the ...
1
vote
2answers
36 views

Declaring <?php ?> in variables

I need to put the PHP <?php global $' . $icon_var . '; echo $' . $icon_var . '; ?> inside the variable of a custom menu structure, but it gets commented: <a ...
1
vote
1answer
13 views

Pass current post title to a predefined link

I have custom link option which I show on all posts using: <?php echo get_option('_custom_link'); ?> and let's say, I have defined it with a URL value of ...
1
vote
0answers
8 views

auto-populating custom nav with all items from custom post type

I have written the following code to take all of the posts in my custom post type "products" (created with ACF) and inject them each as an <li> in a custom nav menu. Everything is working ...
-1
votes
0answers
24 views

How to convert custom fields from Shopify to woocommerce on WP? [on hold]

I want to move some fields in customers, products, categories from current shopify to new site on woocommerce. Are there any safe ways?
1
vote
1answer
19 views

How to hide a custom field if there is not a value

I've managed to add a custom post type that contains custom fields using Toolset's wp-types plugin. I've also figured out by trial & error how to create & edit a single-goal.php file to show ...
1
vote
0answers
17 views

Search Tool only refreshes Page without showing results

I have a search tool that allows you to search plants based on multiple different taxonomies (Color, soil type, type, ect.) Each plant is set up as a post using ACF. You can search for plants based on ...
1
vote
1answer
25 views

Meta Key Value in current-user-only loop

I created a loop for logged-in-users-only which works perfectly for all data except for meta keys. I'd like to be able to also extract meta keys but had no luck so far. This is my loop (based on this ...
1
vote
0answers
19 views

Adding auto-complete to custom gravity field not working

I am trying to add auto-complete to my custom fields on gravity forms.But its not working.Data returns but not showing on field.I am doing like this: (function( jQuery ) { jQuery(function() { ...
6
votes
1answer
52 views

Show only posts which can be commented OR have custom meta field

I'd like to exclude posts on the homepage which are closed for comments. This works thanks to this: Show only posts which can be commented Now I'd like to add the possibility for exceptions – to show ...
1
vote
0answers
21 views

MySql query to get posts with all meta and terms

I'm trying to figureout a way to get all fields from wp_post with all of their custom fields and categories in one mysql query. So in one row of the result I should have post fields with their custom ...
0
votes
1answer
18 views

How to get posts with a metadata numeric key greater than X?

I'm trying to add a "Highlighted" section for each category on my website. This will be located in a page, using a shortcode. I'm going to add a new post metadata key which will be a number from 0 to ...
2
votes
1answer
22 views

Add custom taxonomy under the category title

I've added a custom taxonomy to my product category page in the admin. I can call the custom field using the following: $queried_object = get_queried_object(); $t_id = $queried_object->term_id; ...
0
votes
0answers
23 views

How to display a list of CPT posts but only include posts with an empty custom field value

I have a large amount of CPT posts (500+) and need to be able to create a list that only shows posts that has an empty value in a specific custom field. I've been browsing somewhat similar questions, ...
1
vote
1answer
90 views

How to display custom field in woocommerce orders in admin panel?

currently i add a custom billing field in woocommerce by function custom_override_checkout_fields( $fields ) { $fields['billing']['billing_phone_new'] = array( 'label' => ...
0
votes
0answers
11 views

Register setting not working with multiple checkbox

I created a new setting field with multiple checkboxes in my WordPress admin. However the value of the field new_setting not saved correctly. It should be an array, but after I do ...
1
vote
0answers
24 views

Meta Query posts not showing on ending date of custom field

I feel like my logic is off, but the short version is I have 2 custom fields spitting out unformated times for event-start-date and event-end-date. I don't want to show a post if the start-date is not ...
0
votes
1answer
15 views

Stop truncation of shortcodes in custom text fields?

I have a custom theme that a third party developed for me and I’m trying to get to the bottom of a problem with shortcodes. I’m fairly new to Wordpress and PHP so please let me know if there is any ...
0
votes
0answers
6 views

Autoplaying YT in custom fields, add filtering

I am trying to make youtube autoplay in custom fields inside WordPress. function youtubes($content) { $content = str_replace("SRC","src",$content); $content = str_replace("'",'"',$content); ...
0
votes
0answers
13 views

Add custom field for user and search capability for that specific field

I have been looking for a solution to create a custom field for the user profile but I can't find a solution to create a search box (and function) for that specific field, I've tried different plugins ...
1
vote
1answer
18 views

how to display a widget only on a page where the custom field is defined?

I have a set of local pages using a template, I want to display a widget only on pages where I have ticked the custom checkbox field.
0
votes
1answer
31 views

Delete custom meta

My custom meta box correctly saves my file upload. When the user wants to clear the field, they can click delete and I want to delete that meta data of the file url only. How can I assign the meta_id ...
0
votes
1answer
35 views

Best way to use Category & Custom Fields?

I have a website called http://overmvp.com. On this site, there are multiple "Heroes". Each hero has been manually added to the database in a custom table. With this, I need to create a guide. So for ...
0
votes
0answers
15 views

How can I add my ACF field into another plugin's form

How can I add my ACF field into another plugin's form? I tried this but this does not work <div class="input-group"> <label for="deal_title"><?php _e('Deal title', 'wcd'); ?> ...
0
votes
0answers
16 views

Upload Image from Custom Field to Wordpress

What do i really need .. is .. for example: I have Custom Field "image_url". I go to google and search for image. I found one. I manually place the direct image link to my "image_url" custom field. ...
1
vote
1answer
32 views

Cannot save CPT meta box

I swear I have tried every tutorial, and looked through every Stack Overflow thread to figure out what I'm doing wrong... I'm creating a custom wordpress backend for a church that includes a place for ...
0
votes
0answers
17 views

Filter by custom field - dropdown POST not working

I have a custom field "carbz" which has a number value. I am trying to give users a dropdown to select a number and then filter my posts based on the user's input. The current result is returning all ...
0
votes
1answer
42 views

How to create html block to display extra information on woocommerce single product page

i am using this theme for my website, it has tour booking facility with wocommerce, i am using external am using third party booking, they give me link & i simply paste it in each tour (product) ...
1
vote
2answers
21 views

Metabox will not save

I'm trying to create a metabox in a custom post type. When I attempt to insert information into the Listing Price box and update the post, the information is not saved and disappears once the page ...
6
votes
2answers
141 views

Remove Dimension from wp_get_attachment_image

I am having some issue removing the width and height from my attachment images when using wp_get_attachment_image. This is what I am using to display the image <?php echo $image = ...
0
votes
1answer
26 views

Display Content Based on Custom Field Value

I have the following code which is trying to show an image based on the value selected from a custom field in the admin screen. <?php if( get_field('bias') != 'Neutral' ) { ?> <img ...
1
vote
0answers
11 views

Woocommerce Storefront WordPress Ignore Media Gallery Images and use External 3rd Party Host

OK, firstly we have done this before using Magento and it worked well, but with WordPress? Well, here is the problem and the plan... The Problem For a few reasons we wish to use a 3rd Party host for ...
0
votes
0answers
26 views

custom field images do not display until page save

Pragmatically i am adding custom field images to my page. The process is I create the post I update to apply a template I add my custom fields which includes an image This is working and i see ...
-2
votes
1answer
35 views

Order shipped by which driver[hook for woocoomerce order staus changed and popup in admin panel ] [closed]

Hi is it possible to make an extra field in backend, when orders are selected and marked as shipped then an extra field come and where i can select drivers who are responsible for this shipped order ...
-1
votes
1answer
22 views

Get custom post fields and display them

I am using the wpfacet plugin. I have two custom fields: I am trying to display these by the following code: <?php while ( have_posts() ) : the_post(); ?> <span ...
0
votes
1answer
39 views

Pre_get_posts comparison with custom field doesn't work

I got the following code in my functions.php. A couple of months ago it worked (or at least looks like it was), but now it isn't and I don't know what happened. // *************************** // ...
1
vote
0answers
28 views

Add conditional custom option to 'Display name publicly as' dropdown

Besides the built-in "Display name publicly as" options, I would like to add a custom "name + nickname + surname" option to the dropdown. This custom option should be determined by two conditions: ...
0
votes
0answers
8 views

Custom button in post admin page that exports sql query in csv [duplicate]

Is that possible to create a custom button in my post admin page that when every time the admin clicks on it, it will create a csv file in real time for download that will contains that results of an ...
0
votes
0answers
13 views

How to add a dynamic select field in woocommerce product page

I have a custom post type fine_prints with only a title field. I want to add a new field in woocommerce product page. A dynamic select that will show all fine_prints with their id as value. I have ...
0
votes
1answer
20 views

How to check custom fields from functions.php

I'm trying to hide certain menu items based on the custom fields on a page. I could use CSS or a script to hide the items, that's not the problem. What I don't know is how I can check the custom ...
2
votes
1answer
33 views

get_field not displaying my custom field value

I'm asking regarding the ACF plugin (Advanced Custom Fields) I'm working on creating a category group that will add custom fields to the category pages. These are the fields: They seem to work in ...