**NOTE** Support for this plugin is off-topic. Support questions should be asked on the plugin's support page.

learn more… | top users | synonyms

0
votes
0answers
16 views

wp_set_object_terms being undone

I am trying to set some object terms on a Woocommerce product when it is saved. My code is as follows. add_action('set_object_terms', 'update_attributes_after_save', 99, 3); function ...
0
votes
0answers
47 views

acf - wordpress - wrapper attributes

has the option to specify 'wrapper attributes' in the 'advanced custom fields' wordpress plugin been removed? I believe it should be at the bottom of the text field page, underneath 'conditional ...
0
votes
1answer
41 views

Dynamically Insert Image Into Stylesheet

Let's say I have a banner image I want to act as a background cover. Users manually upload their image with the Media library, which then associates that image with the post (image is handled using ...
0
votes
1answer
52 views

Is there a way to optimize function that is used for returning data in an ajax-call?

I've started creating some plugins (not offically deployed yet) (feel free to use it you want to), and now my goal is to include a custom post type and taxonomy and being able to use Advanced Custom ...
0
votes
0answers
27 views

WP Query using Advanced Custom Fields data

I have a page 'Repertoire' that uses a specific page template. The page has an advanced custom fields repeater field for 'Title' (text), 'Artist' (text) and 'Genre' (select). On the front end, I need ...
0
votes
4answers
137 views

ACF custom field in <head> [closed]

I've created an image field using Image URL via the ACF plugin. This field appears across my pages. This field enables admin to change the background image for a selected class. Here's the code I ...
0
votes
0answers
28 views

Advanced custom fields (ACF) relation inverse?

I use ACF on my website, there is a custom field "Relationship" and so I show products on author page (in author element I can assign his products), it work very good, for this job I use this code: ...
1
vote
0answers
10 views

Insert Content into Script with Advanced Custom Fields

I'm putting a map on my site and I'd like certain co-ordinates in the map to be editable from the admin. var geoJson = [{ "type": "Feature", "geometry": { "type": "Point", "coordinates": ...
0
votes
1answer
76 views

Pull info from Soundcloud embed into a custom field?

I'm working on a blog that has over 4000 posts, most of them have a soundcloud embed iframe in the post. I am creating a new custom field (using Advanced Custom Fields) that uses a custom player ...
0
votes
0answers
21 views

View list of categories from values ​​in custom fields

Through the Advanced Custom Fields created a field to add values ​​in each category. example: Category A = Cars Category B = Aircraft Category D = Boats Category E = Aircraft Category F = Boats ...
1
vote
1answer
58 views

ACF vs Taxonomies

Sorry if this isn't the best place but was hoping for some clarification on something that has been bugging me. I have several custom post types Artists Counties Venues Events Festivals Line Ups ...
1
vote
0answers
163 views

Display value of custom field of custom taxonomy in single post?

I have a review site, which uses a custom taxonomy called 'show' to organize posts. I have used Advanced Custom Fields to add a field to the 'show' taxonomy called 'twitter_handle'. I am trying to ...
0
votes
1answer
70 views

Transfer self made functions.php custom fields to Advanced Custom Fields [closed]

I have recently taken over a wordpress site that needs some serious renovating. The previous developer created custom fields himself in functions.php. I am serious advocate of Advanced Custom Fields, ...
0
votes
3answers
119 views

Display posts if a custom field value is equal to another custom field value

I have 2 custom post types "Shops" and "Restaurants". Each of these have custom fields associcated with them. For example, One field in Shops is "Shop ID" and one in Restaurants is "Restaurant ID". ...
0
votes
0answers
70 views

jQuery get elements inside tinyMCE WYSIWYG field

How can I access elements inside a tinyMCE WYSIWYG field with jQuery/Javascript? My case: I have a Wordpress site using Advanced Custom Fields and several WYSIWYG-fields. I want to be able to get ...
0
votes
0answers
42 views

Moving review data to another website

A website is using "Advanced Custom Fields" plugin to add reviews to posts. For some reason now its content is moving to another WordPress site with different theme that has default review options ...
0
votes
0answers
27 views

Copy custom field value to serialized meta

The scenario: I've been using Advanced Custom Fields to create a custom field called "subtitle", to have, of course, a subtitle below the post titles. It's called using: get_field ('subtitle'); ...
0
votes
0answers
249 views

Update Woocommerce Cart Total with variable (having trouble)

Goal (project I'm working on): I'm trying to make Woocommerce more like an invoicing tool so my client. To do this I am using Advanced Custom Fields plugin [ACF]. This is a big customization of the ...
0
votes
1answer
39 views

How to Pass values to Custom Field through PHP in WordPress Posts?

Suppose i have a function function mytable(){ $count_value = get_kudos_count( $post_id ); } How to send $count_value dynamically to the custom field present in WordPress post ? Let us assume the ...
0
votes
0answers
41 views

How do I create an ACF field group from a plugin using the site wide ACF install?

I'm creating the CPT, and then I would like to create an ACF field group for that CPT. The CPT is being created fine, however I can't seem to create the field group.. ACF pro is already installed on ...
0
votes
1answer
40 views

Wrote a WP Cron Plugin and it triggers a fatal error upon activation

I'm writing a WP Plugin for one of my sites that hooks into a public API to get app data and save that within Wordpress to allow for WP to be able to search & filter the data based on new ...
0
votes
0answers
58 views

ACF filter Relationship field results based on tag

I have made a relationship field called cases_list. My page (archive-cases.php) looks like this: <?php get_header(); ?> <div class="cases"> <div class="grid"> ...
0
votes
0answers
38 views

WP Group posts by year(desc) > month(desc) > date(asc)

I have a custom category template to group posts by a custom field 'event_date'. 2 things I cannot figure out, correctly: grouping by year and month, and having those in descending order, while the ...
0
votes
0answers
84 views

How to show single post from custom post type with shortcode

I know the topic have been around before, and have read extensively on the subject, without finding a complete solution. My goal is to have a shortcode that calls a single post, from my custom post ...
0
votes
1answer
51 views

ACF gallery hook?

When updating a gallery with a new image or deleting an image, is there a hook which gets called? With a standard image field there's add_filter('acf/update_value/type=image', 'my_acf_update_value', ...
0
votes
0answers
44 views

Sort custom post type by multiple custom fields

I have 4 text fields in a custom post type. How can I sort the posts by this order of text fields: brand_fbn - model_fbn - year_fbn - plate_number? This is my code, which isn't working: $ins = new ...
0
votes
1answer
114 views

Wordpress ACF delete image from media library

I'm trying to use update_value filter hook of Advanced Custom Fields to write a function that when a user deletes an image from the field it will be deleted from the media library of WP as well. So ...
0
votes
1answer
36 views

Custom Post Type with Configurable Sidebar via ACF

I am using a custom post type (CPT) trainings on one of my client's sites. I've also added a CPT called sidebars, which can get linked into trainings or pages via the "relation" field type. To get an ...
0
votes
0answers
37 views

When can a template skip the loop?

I've reached another point with WordPress where something simple is stumping me. In working with an older theme, I have some page templates that do not call the loop. They simply use ...
0
votes
1answer
84 views

Using ACF Custom Field value in a URL with do_shortcode() [closed]

I am using the ACF custom fields and video.js plugins and I want to add the custom field value inside the url for the youtube video that is inside of do_shortcode() So far this is what I've come up ...
0
votes
0answers
51 views

Hide tab when empty

How can I hide this tab if it's empty (does not contain a shortcode)? I'm using Advanced Custom Fields. Here is my code: if ( $javo_custom_item_tab->get( 'custom', '' ) == 'enable' ) { ...
1
vote
2answers
123 views

Returning ACF custom field from publish_post

I'm trying to return a custom field as soon as a post gets published. I'm using the publish_post (or {status}_{post_type}) action, but it looks like the custom fields are created after the hook. My ...
0
votes
0answers
41 views

Using upload prefilter to add image to custom field - problem with saving

I'm developing a plugin with which a pdf can be uploaded and from each page a jpeg version is generated and added to a custom field (advanced custom fields gallery). I'm using the ...
0
votes
1answer
29 views

How not to strip leading zero in advanced custom fields

I have custom field for phone number but the leading zero is not saved in db I tried to format the field as number and text but the zero is not showing
0
votes
1answer
276 views

ACF repeater field usage

I have a Custom post type "event" it has a repeater field "event_session" that has 4 subfields "session_start", "session_title", "session_description", "session_speaker" (a post object relationship ...
0
votes
0answers
28 views

Loop using selection field to display content ACF

I 'm trying to create a loop to show only the contents of a multiple choice selection I have in the ACF ! I tried to do the consultation via WP_QUERY as explained in the ACF site , more does not work! ...
0
votes
0answers
42 views

Can you check if a post WYSIWYG field has an image in it?

I'm using Advanced Custom Fields and a WYSIWYG field type. Can you determine via php if that field has an image in the content OR is there a better was to evaluate this. For example, if I upload an ...
0
votes
0answers
46 views

ACF Google Maps field not triggering on CSV Import

I have a csv of 7000 businesses that i just imported into wordpress. Each business has an address field, that i successfully imported into the ACF Google Maps field. The problem is the map itself will ...
0
votes
0answers
109 views

Bulk Edit Media Including ACF/Custom Fields

I have two main questions but here's the scenario. I run a festival website. Photographers will upload photos to the site. They will need to relate it to an Artist and an Event, so when viewing the ...
0
votes
0answers
14 views

Definition based access of Advanced Custom Fields

In combination with custom post types, I use a lot of advanced custom fields. Say, I have at least the following custom field groups with their respective custom fields. Contact Person contact_type ...
0
votes
1answer
80 views

display content in ascending order

I am using https://wordpress.org/plugins/advanced-custom-fields/ plugin for custom fields. I successfully displayed pages content on my single page using below code: <?php if ( have_posts() ) : ...
0
votes
1answer
41 views

Custom post tag images not displaying with ACF

Using ACF i've added a custom image field to a particular set of custom post tags. The problem I have is that I cannot get the images to display. Yes, I have added an image to the tag and updated. ...
0
votes
0answers
73 views

salary range filter doesnt work when value higher than 75 000

I' having a big issue to create a salary range filter... I have one custom post type job - with a custom taxonomy for the salary. The salary are all put as a range' exampple: 20 000 - 40 000 using ...
0
votes
2answers
550 views

How to show postmeta in custom columns for the posts screen?

I've got a True/False value added to posts (Exclusive versus Curated) that was added via Advanced Custom Fields. How do I get that value to show up as a column on the Post list (/wp-admin/edit.php) to ...
0
votes
1answer
62 views

Relationship field search not retriving posts in admin

I have a site with 5000+ posts and a theme option page with a relationship field on it. The infinite scroll and Taxonomy filter function of the relationship field works, but the search doesn't. ...
0
votes
0answers
39 views

ACF only getting specific custom field data

I'm new to this so bare with me if this doesnt conform to the usual standard. Basically I have recently been employed in a new office that builds customised wordpress sites for its clients, I am no ...
0
votes
0answers
15 views

ACM for category page

I have created a little selection using Advanced custom fields to trigger different fonts for different postings. Basically I can select between German and Italian: If I select a post to be German ...
0
votes
1answer
51 views

Advanced Custom Fields Query with Different Values of the Same Key

I have a custom post type set up with Advanced Custom Fields. I would like to display and order my posts in groups. The groups are states of the United States, so I have 50 groups. Should I perform ...
0
votes
0answers
50 views

ACF Post Object: Wrap every three post objects

How would I go about wrapping every three ACF post objects in a div? <?php if ( get_field( 'featured_posts' ) ): ?> <?php $index = 1; ?> <?php $totalNum = count( ...
0
votes
1answer
80 views

Page returning ID from array, how to return the correct values for post in acf wordpress

Im having a little trouble returning the correct value with the relationship field. My end result is to use the relationship field to add selected locations to a drop down in gravity forms. I can ...