**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
11 views

Unable to check if plugin is active

I am working on a custom theme using ACF. I would like to check if the plugin is active or not. I am using this code: <?php include_once( ABSPATH . ...
0
votes
0answers
9 views

Check ACF fields in foreach custom taxonomy

I currently have a custom post type page set to pull in data that's attached to a custom taxonomy with ACF: <?php $terms = get_the_terms( $post->ID, 'artists' ); foreach($terms as $term) : ...
0
votes
0answers
16 views

Sort using custom fields when empty [on hold]

I have the following problem: I am working with WordPress to create a homepage for a client, now I am at a specific problem, that there are custom fields and the posts need to be sorted using those ...
0
votes
0answers
11 views

Custom WP MultiSite with Workflow

This is quite a weird question, so here goes. I have this project to take 1 main site and make 200 sub sites off of it. The sub sites will have defined content areas within a page where the sub site ...
-1
votes
0answers
15 views

Use post ID in meta query

Is there a way to reference the post ID in a nested meta query like so: $args = array( 'post_type' => 'type1', 'nopaging' => false, 'orderby' => 'desc', 'posts_per_page' => ...
0
votes
1answer
13 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
26 views

Random images with no duplicates (ACF Gallery) [on hold]

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
17 views

Advanced Custom Fields: Conditional Statement with Select

I've set up a select field labeled "asset_type" with two values: "image" and "video". I then have two fields that rely on conditional logic to be displayed. If "image" is selected from the select I ...
0
votes
1answer
17 views

Custom Post Type Title Using Advanced Custom Fields Repeater [on hold]

I'm a bit new working with this plugin - and Wordpress in general, so forgive me if this question is properly documented somewhere - I just can quite figure out how to Google it. I have an Advanced ...
0
votes
1answer
21 views

Advanced Custom Fields not displaying

my php skills are pretty limited and I am pretty much stuck with the following issue. Why is my Custom Field (placed at the bottom) not showing up after the posts blocks? Here is what my code looks ...
0
votes
0answers
11 views

Order get_posts() results by an ACF repeater sub field property? [closed]

So I understand that I can order get_post queries by a meta value of any kind including ACF fields by using... $posts = get_posts(array( 'post_type' => 'event', 'posts_per_page' ...
0
votes
0answers
9 views

sending an address to auto search in the ACF google map property [closed]

I am desperately trying to send an address string to a post type using Advanced Custom field's Google Map property. The reason for this is that my client needs to capture a full separate address. So ...
0
votes
0answers
6 views

Password protection only on advance custom field download file

How should i protect password when user click on file name and before it starts downloading it asks for password and after correct password downloading will start. I do not want password for whole ...
0
votes
0answers
26 views

Media library - Limit images to custom post type

Is there some wordpress magic/plugin that will make the media library only show images that were uploaded to a specific custom post type? I have a custom post type called "artists", I want, when admin ...
0
votes
0answers
13 views

Tool Chain / Dev Stack options for robust WP webapp development?

I'm making a fairly sophisticated multisite webapp with lots of custom plugins and customs post types, custom fields, and settings. I really like to use the GUI Dev tools, like advanced custom ...
0
votes
0answers
31 views

Select posts with a custom taxonomy as a custom field

I am using woocommerce, so I have the product category taxonomy (product_cat). On a product category page, I would like to display the posts that are in that (product) category. That will be the ...
0
votes
0answers
18 views

mapbox & custom field

I try to implement mapbox for our wordpress project. I'm not sure where to start about this. I try to create advance custom field a repeater which is have a name,short descriptions, url, ...
0
votes
1answer
35 views

Advanced Custom Fields - Add Field to Specific Page [closed]

I have created a custom post type for testimonials. I have each testimonial as a text field titled 'testimonial' using the Advanced Custom Fields. I have a list of pages for services and want to pull ...
0
votes
1answer
33 views

Issue in If else condition [closed]

I'm calling my all pages on one pages as a section. Here is my code: <?php $args = array( 'post_type' => 'page', 'orderby' => 'ASC', ...
0
votes
1answer
29 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
0answers
111 views

Multisite wp_query & switch_to_blog issue

3/17/2015 update So it appears that this is a known issue with ACF and multisite using switch_to_blog. http://support.advancedcustomfields.com/forums/topic/multisite-switch_to_blog-options-issue/ ...
0
votes
0answers
110 views

Advanced Custom Fields, auto-incrementing ID

I'm from a more pure PHP/LAMP-stack background, and am having some confusion about the popular Worpdress plugin Advanced Custom Fields and the way in which is generates unique identifiers. We can add ...
0
votes
0answers
149 views

ACF Relationship Field Search Filtering

I am trying to assign relate posts using the ACF relationship field. It has typeahead search to search by post titles. I would like to add meta_data search to the ACF relationship search. This ...
0
votes
0answers
31 views

wp_insert_post with advanced custum fields repeater

at the moment i stuck a little bit at my new wordpress project. The basics are: The user can create nutrition plans and there he can add some recipes, so i need to build a relationship from user > ...
-1
votes
3answers
42 views

WordPress Loop trouble with ACF [closed]

I'm working on looping through some books for a custom post type with advanced custom fields. One of the ACF's is a checkbox, and I'm wanting to only show the values with this one checked. The current ...
0
votes
1answer
55 views

Can't get the_content to show

I'm using the following code to get posts from a category in a page. This category uses ACF for some fields. However, when I try to output everything, it shows everything but the_content. For better ...
0
votes
1answer
49 views

Create 3 Level Relations with ACF and Wordpress

i have a more or less huge project and i decided to use wordpress. I want to create a nutrition plan. Therefore i use custom post types for recipes and advanced custom fields vor values like kcal and ...
0
votes
1answer
42 views

Only list category if it has a custom field image

i've a problem showin a list categories. $args = array( 'orderby' => 'name', 'order' => 'ASC' ); $categories = get_categories($args); foreach($categories as ...
1
vote
1answer
108 views

How to group posts and get a mixed posts and groups view?

Let's say i need to implement the following in WordPress : I have a CPT named 'song' which are single songs from different artists. Sometimes songs may be grouped by albums, but not always. Then i ...
0
votes
1answer
35 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', ...
0
votes
1answer
15 views

Displaying page list and a custom field

Im trying to display a list of child pages under $parent_id. This is done in a page template inside the loop. You will see that Im trying to also get a advanced custom field value which in this case ...
1
vote
1answer
92 views

Any number in meta key (wp query)

I have such a query. The field modules_%_text is advanced custom fields flexible field where % should stand for ANY ROW number, it seams that it should work like that, however it's not. What i'm doing ...
0
votes
1answer
47 views

ACF field not appearing correctly in loop

There is a loop in my theme that displays posts with the following information: a title, some text, and a price. I have added a custom field to this post type using ACF. The field ID is tour_length. I ...
0
votes
1answer
64 views

Related Posts by taxonomy using Advance Custom Fields Plugin

I’m trying to list related posts using taxonomy with the Advance Custom Fields plugin. I’m using the following code below from the docs that links to all the posts in the taxonomy, but is it possible ...
1
vote
1answer
16 views

Archive filter disappears on no results?

I have been working through this example: http://www.advancedcustomfields.com/resources/creating-wp-archive-custom-field-filter/ That a colleague of mine found for creating a simple checkbox-based ...
0
votes
0answers
31 views

How build search with filleting custom taxonomy and custom fields

I wanna explain about my search box, actually what i want to make. Ive a search input and few check boxes to filter the search result. i need to search like this : [Country1] AND ( [venue1] OR ...
1
vote
1answer
83 views

Minimising Database Queries when using Advanced Custom Fields

I'm working on a page which lists staff members for a large company and trying to minimise the number of times I'm forced to query the database as it gets quite complex and slow. 'person' is a ...
0
votes
0answers
42 views

Trying to uswp_localize_script with Advance Custom Fields Repeater

I have an external javascript file that I am trying to change dynamically: Here is the Javascript that I want to be dynamic slides : [ {image : ...
0
votes
1answer
338 views

Add routes between multiple ACF google maps markers [closed]

I dug up this code from the ACF examples for Google maps markers: .acf-map { width: 100%; height: 400px; border: #ccc solid 1px; margin: 20px 0; } </style> <script ...
0
votes
1answer
97 views

Guest Author - How to display posts on /author/ archive page

I have used the Advanced Custom Fields plugin to create all the data elements for a company leadership directory page and management bio pages. On the site blog, management will not be posting ...
0
votes
2answers
50 views

ACF accessing a field from the query, but not in post

I'm not sure if this is possible - but checking before re-writing the template. I've extended wp_query to allow for a geocode/location search to be performed. This is working in itself and returning ...
0
votes
1answer
132 views

advanced custom fields plugin last input field in new posts

I have a problem with front end update on post + advanced custom fields plugin it does not clear the input on new post. It does insert or update the form correctly but when you got there for first ...
0
votes
0answers
106 views

Geo location query inside wp_query?

I am building a simple property search website using Wordpress. One of the requirements is for a search tool to search for properties available for sale / to rent based on number of bedrooms etc. ...
0
votes
1answer
40 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
41 views

How to acquire an ACF image using get_previous_post and get_next_post

I am using the WordPress functions 'get_previous_post' and 'get_next_post' to retrieve the title and permalink of the adjoining posts to the one the user is viewing, which works okay. But when I try ...
0
votes
1answer
44 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 ...
1
vote
0answers
71 views

Order and group posts by acf by month and year

How can group posts by month and year by a separate headline? Example (output with this date format): Dezmber 2014 - 4. Dez 2014 - 5. Dez 2014 I have a custom field (datepicker) "event_date". ...
0
votes
1answer
103 views

WordPress dynamic AJAX query

Aim - I've trying to run a query based on which category is selected from the dropdown. I figure the best way to do this, is to dynamically use AJAX and pass the category value held by a variable to ...
0
votes
1answer
122 views

ACF Shortcode bringing in my shortcode is adding unnecessary line breaks

At the VERY core, my question is - how to remove linebreaks on a single ACF field that is inserted with the ACF shortcode. I have a lot of "shortcodes within shortcodes" here so I will walk this ...
0
votes
1answer
62 views

Stuck in the query loop

I created a two loop into my WordPress page. It should get the category name and should load all the child under the Category name. Like this ____ Cat1 ______ product 1 product 2 product 3 ____ ...