**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
2answers
5k views

Advanced Custom Fields - Disable Users to Edit Custom Fields

I don't really know how to explain this, so this will most probably not make much sense. Basically, I made a custom field (drop-down selection) for the Add/Edit User page, and I want to be the only ...
0
votes
2answers
650 views

Remove Advanced Custom Fields plugin for client?

I just have a quick question... I am using the Advanced Custom Fields plugin on a site for a costumer, just to get a little more power into it.... but I wouldn't want the client to be poking around in ...
0
votes
1answer
51 views

Custom fields issue [closed]

I installed the plugin Advanced Custom Fields and created few custom fields , but I'm not able to add any content in it. How is this done?
0
votes
1answer
752 views

How can i count the images that are atacht to NextGEN Gallery

How can i count images form NextGen Gallery, the NextGen Gallery is insite a custom field. Custom field for NextGen Gallery is " poze " I search for it, i found this NextGen - Display Image Count ...
0
votes
1answer
835 views

Querying posts by latitude and longitude to build a Google Maps with several markers

I have 4 different post types and 4 differey taxonomies Each term for each taxonomy stores a marker (url to a png icon). Each post has coordinates attached with Advanced Custom Fields and I'll ...
0
votes
3answers
9k views

Custom Taxonomy Images with Advanced Custom Fields

I've created a custom Taxonomy for a Custom Post Type, and created five or so terms within the taxonomy. I've created a single image upload and assigned it to the custom taxonomy, and uploaded images ...
0
votes
3answers
910 views

Website loading slowly - Advanced Custom Fields images

I'm currently using get_field with Advanced Custom Fields plugin (see here) to get a single image for search results. The end result is that these pages are loading slow, as I believe this is due to ...
0
votes
1answer
2k views

How to get both image attachment ID and url

I am using advanced custom fields repeater-field to get the image url like this: <?php the_sub_field('billede'); ?> But I also want to get the attachment ID for the image, to be used for ...
0
votes
2answers
2k views

While loop inside another while loop

OK, so I've read like 20 different articles about using a while loop inside another while loop, but still can't get this to work, and I'm about to burst from frustration. My scenario: using the ...
0
votes
1answer
40 views

Advanced Custom Fields Image Field returning ID instead of URL [closed]

I'm using ACF to add custom fields to a User. I'm trying to output these fields to the front-end. I was able to pull all fields, but when I was trying to get the img it wouldn't pull. Here's my code: ...
0
votes
2answers
66 views

How to display post list in a table layout (multiple queries in single loop)

I am setting up an events page for my website. This page is using a loop to display a list of acts performing at different venues month-by-month. When a viewer comes to the page, they use a simple ...
0
votes
1answer
35 views

ACF - How to set the menu order for the relationship field

So, I've got a relationship field where I select a certain amount of posts to show on the home page. What I am trying to achieve is to apply the menu order of the posts as they are in the back end so ...
0
votes
1answer
132 views

If Custom Field is empty don't display div

I'm looking for a better way to hide a div when a custom field is empty. I've figured out how to hide the div but I have quite a few custom fields and I'd rather not write the code for each one. (...
0
votes
1answer
47 views

Group by custom field value (start and end times)

I have the following loop that is outputting a schedule for a conference. At the moment it's looping through a custom post type, grabbing the info, then outputting it in a block. So essentially each ...
0
votes
2answers
53 views

Custom post types, disable fields

I have a plugin that is syncing data from a third party service into a custom post type. The idea is that the post type acts as a slave to the third party service, so any changes there overwrite any ...
0
votes
1answer
29 views

Using two loops in one Wordpress template

Hi I am attempting to use two loops in my WP template as I am using advanced custom fields to display info from a custom post type (college) I have tested my code (label 'loop which doesn't work' ...
0
votes
1answer
34 views

meta query not retrieving posts

I am attempting to use get_posts() to retrieve posts that have certain topics attached to them, in my custom post type named 'leaders' Here is my query. $args = array( 'post-type' => 'leaders'...
0
votes
1answer
23 views

Unkown meta_value in ACF

I'm using ACF, but I wonder the meta_value means? Below is a snippet from my database: meta_id post_id meta_key meta_value 9394 4661 _carousel_0_image field_5683f27fd880e So what ...
0
votes
1answer
120 views

Display List Of Posts Containing a Relationship Field Value [ACF]

I have a post type called 'Writers' and another post type called 'Documents'. I use the Relationship field in Advanced Custom Fields to link a list of Writers (post objects) to a Document. This means ...
0
votes
1answer
363 views

How to update custom taxonomy meta using ACF update_field() function or any other wordpress function

I'm trying to update the Advanced Custom Fields meta value associated with a custom taxonomy term $term_status = wp_update_term( $rate_id, 'rate', $term_data ); $term_id = $term_status['...
0
votes
1answer
58 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
1answer
112 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
1answer
99 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
339 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
1answer
41 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
1answer
146 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
46 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
1answer
980 views

How to disable field on Advanced Custom Fields? [closed]

I create Repeater field table for Advanced Custom Field plugin, I set location show on User, but I want User only views not edit. and Admin will edit. So, how to disable field edit on User?
0
votes
1answer
151 views

ACF Relationship - Exclude pages not created by author

I have pages that I would like to exclude in a ACF relationship field. My field name is products and the following code excludes the pages with id 9, 10 or 11. add_filter('acf/fields/relationship/...
0
votes
1answer
131 views

Get ACF fields in relationships of returned post

I know to get the ACF fields of a post it's self but I'm having trouble getting relationships within those results to return ACF fields as well. example: $args = array( 'post_type' => ...
0
votes
1answer
218 views

Google Places API With ACF [closed]

I'm creating a site that has a Venue custom post type, and one of the custom fields (using advanced custom fields) is the hours of operation for the business. I was going to manually find this ...
0
votes
1answer
328 views

Show only the future event (Advanced Custom Fields)

I’m trying to make event ticker with Advanced Custom Fields and I want to show only events that are happening on the current day or in the future. But I don’t know how to hide past events. Could ...
0
votes
1answer
273 views

WP_Query custom field pass the post id

I'm using WP_Query with ACF(Advanced Custom Fields) I'm building a news portal, and I'm trying to pass related stories from 1 post which is top_story = true. In another WP_Query I want to print the ...
0
votes
1answer
153 views

Get all the posts where meta field with multiple choice has several values checked

I apologize beforehand for any confusion, I'm just 2 days with WP. So, I use Advanced Custom Fields to add formatable custom fields to posts of partucular type. One of fields is checkboxes with ...
0
votes
1answer
434 views

Random images with no duplicates (ACF Gallery) [closed]

I have a gallery field created with Advanced Custom Fields. My code spits out all the images on a page. So far so good. I would like all the images to load in random. I tried to use shuffle() and ...
0
votes
1answer
151 views

Conditional custom redirect

I want to achieve the following: On a post or a page, I can define an optional custom redirect URL (possibly as an Advanced Custom Field) If I view this post/page with a specific added URL parameter ...
0
votes
1answer
53 views

ACF no print data [closed]

I've a problem with Advanced Custom Fields Plugin I create a custom field named: bgcolor I want to print the value in category.php, this is my code: $color = get_field('bgcolor', 'category_'....
0
votes
1answer
167 views

ACF Unexpected T_CONSTANT_ENCAPSED_STRING [closed]

I'm running the Advanced Custom Fields Pro plugin. When I implement the following code for the repeater field, I get this PHP error: Parse error: syntax error, unexpected ...
0
votes
1answer
148 views

Get A Custom Field From A Custom Taxonomy Of A Custom Post Type [closed]

This has probably been answered before but I'm stumped so I'll ask anyway. I have a custom post type called products. I then have a custom taxonomy called product-category. I've set up a custom field ...
0
votes
1answer
633 views

ACF if / else checkbox [closed]

Hi I've got this code that's looking to see if a checkbox is ticked in a custom post type and then displaying the relevant link <?php if(in_array("Yes", get_field('news__item--external') )){ ?>...
0
votes
1answer
473 views

Admin approval for editing user profile

I was looking for a plugin but to no avail. Anyway, I'm building a custom Wordpress theme using ACF Pro (which works perfectly) and have added a lot of different custom fields for each user (like ...
0
votes
2answers
727 views

Export Users and their Advanced Custom Fields

I've google it but i am still looking for a solution. Is there a plugin or method to export wordpress users with their advanced custom fields? I don't want to export ACFs structure but users' data.
0
votes
1answer
181 views

Insert a field with PREG_REPLACE – strange behaviour

I'm trying to insert a custom field (from the Advanced Custom Fields plugin), and I need to place it within a div which I'm wrapping around an img, right before the img-tag. So basically this is the ...
0
votes
1answer
257 views

Blank content php code not parsing advanced custom fields gallery add-on [closed]

I have blank contents where the content for the act gallery code is. I think there is an issue with the code. < ?php /* Template Name: Images scroll */ ?> <?php get_header(); ?> <...
0
votes
2answers
2k views

Filter custom post types by custom field using AJAX

I have a few custom post types (books, films etc) created with WP-Types. I then have a custom field called Genre, created with ACF. If a user selects "Books" from the dropdown on the frontpage, he ...
0
votes
1answer
81 views

Included posts on a page searchable

With Advanced Custom Fields (ACF) I added a 'relationship field' to the pages that can select posts from a custom post type. The chosen posts will be come part of the page. Searching with wordpress ...
0
votes
1answer
4k views

Populating content dynamically via AJAX and Advanced Custom Fields [closed]

I am using a repeater field from Advanced Custom Fields to create multiple photo galleries. There are 4 pages and each page has multiple image galleries. Because of this, I want to reduce load by ...
0
votes
1answer
231 views

prevent HTML output if custom field is empty [closed]

I am using the ACF plugin for custom fields. I am using this to add a second content area to my website. I have a peice of JS that says if this div is present then add a class to the page-content ...
0
votes
1answer
1k views

Remove duplicated values from a loop

I have a loop that outputs <option> fields for a <select> group. It contains many cities' names for many travel packs that I am publishing. The trick is that I need avoid repeated values. ...
0
votes
1answer
229 views

Custom Sidebar in Editor (not Widget) for Custom Post Type in Genesis

I've created a custom post type for employee Profiles. The one thing I can't (yet) figure out is how to make custom sidebars for each of the employee's profiles. I have figured out 2 ways to get ...