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

learn more… | top users | synonyms

-1
votes
1answer
490 views

Accessing Advanced Custom Fields with Repeater using jQuery instead of PHP

I am using Advanced Custom Fields (with repeater) and am currently using the following code to access the fields, i.e.: <?php if( have_rows('postage_prices') ): ?> <ul ...
0
votes
1answer
1k views

Order by custom field date?

I've created a category "Expire Soon" and i want to insert and sort the posts by custom field "expiration_date". I use this code but the posts are sorted by custom field "expiration_date" but not by ...
0
votes
1answer
631 views

Shortcode strips formatting and returns at content top

Using the Advanced Custom Fields plugin and I've got a shortcode going for a repeater field, but it returns the list at the content top. I changed it from an echo to a return, which I understood would ...
0
votes
0answers
20 views

Events Manager past events and ACF relationship query

I am trying to get Events Manager to work better with Advanced Custom Fields I am using the ACF relationship query to pull in a set of posts and events together on the homepage of my website. These ...
0
votes
0answers
24 views

Display Advanced Custom Fields with function

I'm pretty new to PHP and currently struggling with the following: I want to have a custom post type with custom fields. In a custom function (so I can use it on any page) I want to display the ...
0
votes
1answer
53 views

Help using acf/save_post hook to connect to Untappd API and update_field [closed]

What I am trying to accomplish is: when I save a or update a post, I want to access the Untappd API, grab a link to an image, and update an ACF field with that link. I am attempting to use the ...
1
vote
1answer
46 views

Rewrite Wordpress URL to show CPT meta field data

I'm stuck in need of a rewrite rule. I have set up a custom post type for 'Books', each book has a repeatable field (using ACF Pro) for chapters. I have added a query_var for chapter using the code ...
0
votes
0answers
13 views

Creating a custom form with a repeatable row and conditional showing of fields

Would love some guidance. We tried Advanced Custom Fields (ACF) and hit a snag. Basically in a custom post type, we want to create a repeatable set of items. When an end user adds a repeatable item, ...
0
votes
2answers
2k views

ACF: get_field() returning false [closed]

I have created a custom true/false field with the default value of true. I've set different posts to different values. However, get_field() always returns false: <?php if( have_posts() ): while( ...
0
votes
1answer
20 views

Query Posts based on custom field value

Currently building a site and need to create a 'Schedule' to display a Presenter that is on air at a particular time. Using ACF plugin to enter a time that the presenter goes on air which saves the ...
0
votes
0answers
70 views

frontend ACF issue javascript(s)

I've trying to figure out how to create forms with Advanced Custom Fields, but having an issue. The actual creation of the form is not the issue. It's some js-functions that are not seemed to be ...
0
votes
0answers
41 views

WooCommerce - Complete Order when an action occurs

I'm having trouble with WooCommerce and Custom Post Type/Custom Fields. I have an application where a new WooCommerce order automatically creates a new post (CPT = "audits"). The post has some custom ...
0
votes
0answers
29 views

Can you retrieve ACF data from post status hook?

I'm creating a reporting site where the admin can create reports for their clients. Within this there is a 'client' ACF field in which the admin can select a user to assign the report. I'd like to ...
0
votes
0answers
37 views

Include ACF field in other plugin option page

I'm using Advanced Custom Plugin. I can get the field's output via export option. My field like this: if(function_exists("register_field_group")) { register_field_group(array ( 'id' => ...
0
votes
1answer
81 views

There is no existing custom fields' value in functions.php

I'm using WooCommerce and Advanced Custom Fields plugin. I have a function for calculate my product's discount, like this: function woo_add_cart_fee() { global $woocommerce; $discount = ...
0
votes
0answers
50 views

Is it possible to group ACF Fields for a custom post type?

I have structure like this: District (taxonomy) --municipality (custom post type) - ACF Group (with fields assocation and contact) I have created a group in Advanced Custom Fields where fields ...
0
votes
2answers
90 views

ACF - Get lowest & highest value from field

I am using Advanced Custom Fields to get a list of properties as follows:- <?php $args = array( 'posts_per_page'=> -1, 'post_type' => ...
0
votes
0answers
66 views

get_the_ID Wrongly Getting Child Category ID

I have WooCommerce product categories with parent and its child categories. The get_the_ID() function on the parent category seems to wrongly retrieve one of the child category ID's. How can I ...
0
votes
0answers
27 views

Can't set post permalinks without breaking single page for ACF

I am using Advanced Custom Fields to make sections where a user can post products to a shop page and then have set his owl external URL. This works fine but I've just noticed some problems and I can't ...
0
votes
1answer
63 views

How to set custom post type as post title to avoid 'Auto Draft'

I am using a mixture of Advanced custom fields plugin and Custom post type UI to give my users some extra functionality. The problem I have is that I have serup a testimonials menu and in the list ...
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
27 views

Filter Content on all Post Types

I had this idea to introduce a 'post type footer' using Advanced Custom Fields so that my users could set up common, reusable messages or calls to action and have them appear after the content of a ...
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
2answers
1k views

How to update a custom post title from a front-end form using ACF fields?

So I have a custom post title being written by a front-end (non-admin access) form using AFC fields. What I am after is a way to update the title when the post is updated from the front-end edit form. ...
0
votes
4answers
136 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
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, ...
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 ...
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". ...
2
votes
1answer
1k views

Get specific repeater row (via advanced custom fields) based on Meta Query with Wildcards [closed]

I've used Example 5 of: http://www.advancedcustomfields.com/resources/how-to/how-to-query-posts-filtered-by-custom-field-values/ to query a post by a wildcard. However, my problem is I only want to ...
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
1answer
194 views

How to get file upload value in front-end to put in ACF image field

I am trying to upload image and the image should be inserted in a new post but I can't get the image displayed in the post editor even if the image is successfully uploaded. Here's my upload button: ...
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
248 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
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' ) { ...
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
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
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
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
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 ...