Skip to main content

Questions tagged [custom-field]

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

0 votes
1 answer
145 views

hide "Open in New Tab" checkbox in link field

I added a custom field to a repeater with PHP: [ 'key' => 'field_sponsor_badge_url', 'name' => 'url', 'label' => 'URL', 'type' => '...
steve8094's user avatar
0 votes
1 answer
833 views

Custom fields in the billing address section woocommerce

I have added custom fields in the billing address in Woocommerce checkout page, this works fine. Now I would like to show these custom fields inside the "billing address" box in the email ...
LesCa's user avatar
  • 21
0 votes
1 answer
57 views

Change formatting of Date parameter on custom post type

So I have a custom post type called "wp_events", and I would like to update this portion: Where is says "Scheduled 2023/11/05 by default, I would like this format: Scheduled November ...
InvestedLabs's user avatar
0 votes
1 answer
900 views

get_the_ID() retrieves same ID on Gutenberg's Query Loop

I'm using Gutenberg editor and I want to add a shortcode (using XYZ PHP Code) that uses the post id to retrieve certain ACF value. I'm editing the home page where the last blog posts are shown, but I ...
Alvaro's user avatar
  • 131
0 votes
0 answers
62 views

How to add image in wordpress custom plugin?

I am looking for how to add images in a custom database table using WordPress code I am new in WordPress plugin development. I've created code for a plugin named store plugin. I've taken fields like ...
Khushbu Joshi's user avatar
0 votes
0 answers
194 views

How to custom code the Elementor Loop item?

I have an Elementor Pro and ACF on my site. I have a custom post type with a custom field called document. I want to be able to conditionally render the "Download" button with the document ...
Suthan Bala's user avatar
1 vote
1 answer
36 views

What is the best way to get a different post's custom field/postmeta with js?

In gutenberg I want to get a postmeta (it's a json string) that belongs to post #123. I want to check the editor's content against it. Let's say that postmeta's key is "blocks". So I made ...
user18102663's user avatar
0 votes
1 answer
600 views

How to automatically update ACF field value every year?

I'm using ACF in my custom post type and I have 2 numeric fields: one for Birth year and another for Age. I want to update the age field automatically based on the birth year field value. I found out ...
Adriana Leites's user avatar
-1 votes
1 answer
57 views

Where can I find the missing page sections in wordpress?

This is not coding question. This question is related to Word Press I am new to Word Press. I am now trying to edit an old word press website from my company and i am struggling to find a solution ...
Khant Min Si Thu's user avatar
0 votes
1 answer
125 views

Replacing the deprecated function the_meta

the_meta is deprecated and it's told to replace it with get_post_meta. I'm using since long time this function for custom fields without styles: //the_meta function without styles: function mymeta() { ...
treibstoff's user avatar
0 votes
1 answer
71 views

Want to add custom post type for facebook feed

I have Facebook api for feeds. I want to add multiple user's Facebook feeds on their page. So, how can I add custom post type for Facebook feeds, which users can login to their account to get feeds ...
Devil mind's user avatar
0 votes
1 answer
47 views

Fields are not displayed on front end under custom php code in Advanced Custom Fields and Flexible Content field WordPress

I use Advanced Custom Fields WordPress plugin and the Flexible Content fields. So in one of the fields I need to include a php file, so I do it like this: <?php elseif( get_row_layout() == '...
Brgerg30879's user avatar
0 votes
1 answer
200 views

get Custom field label (select/dropdown) on front end

I have custom field added to product posts. This is dropdown field and displaying on front end it pulls the option value which is not display friendly, for example select option value is "...
Damir Gasparlin's user avatar
0 votes
1 answer
61 views

ACF number less than comparison not working

I have two ACF fields named as “price” and “reduced_price” now i have another field named as “price_filter” which should be filled with following conditions, If “price” is greater than “reduced_price”...
Shaharyar Afzal's user avatar
0 votes
0 answers
193 views

How to consume external API from WordPress post editor and display the response data in the custom field?

I am developing a custom post type called "Team," where I will add some profiles of team members. I am using ACF for the custom field to add personal details of the members (I can also ...
Rousnay's user avatar

15 30 50 per page
1
���
3 4
5
6 7
248