**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
1answer
21 views

Acf Pro repeater field returns null when call inside foreach

I have a problem with the repeater field in Acf Pro. I want to retrieve fields inside the foreach but it gives me "null" value. Can someone help me? My code: function label_text( $post_id = '' ) {...
0
votes
0answers
20 views

Add column to custom post type based on assigned taxonomy

I'm trying to add a new column to the Custom Post Type I've created. I've also created a custom taxonomy for this CPT, so what I'm wanting to do is display which taxonomy term each post has assigned (...
0
votes
1answer
12 views

ACF Images If/else

<div class="postthumbnail"> <?php $image = wp_get_attachment_image_src(get_field('usercrop'), 'full'); ?> <img class="post-thumbnail img-responsive postpic" src="<?php echo $image[0]...
-4
votes
0answers
17 views

Advanced Custom Fields overloading server?

I'm using the latest version of WordPress and ACF Pro. I'm having a serious issue with one of my sites that uses ACF. Now before I even explain the issue, I will say that I have found for sure that ...
-3
votes
0answers
10 views

ACF required only for specified role

I have a custom field (on a custom post type) that should be required for one role, but optional for another role, from within WP admin. How can this be implemented? Thanks, DC
0
votes
1answer
416 views

Let Users Filter Posts by Custom Fields

I'm using the Advanced Custom Fields plugin to add custom fields to my posts, but was wondering what is the best way to go about creating a filter box for the user to filter through posts. I've ...
-2
votes
1answer
21 views

Using ACF on Posts Page

I'm trying to use ACF Pro to code a headline/page description on a Wordpress page, but it just keeps showing 'Array' in place of the headline/description. I know about the <?php the_field('XYZ', ...
-2
votes
0answers
26 views

Override JS using functions.php flle [on hold]

Is it possible to write a function in the function.php file that would override the following javascript located in a JS file for a plugin in the plugin in directory so I can put my own values in for ...
-1
votes
0answers
8 views

Repeater field that has a wysiwyg field

I'm trying to output a repeater field that has a wysiwyg field So I got two fields that I want to output: a select and a wysiwyg type (select) type_value (wysiwyg) and I get empty. if it is normal ...
0
votes
0answers
10 views

Remove Media tab from image uploader in backend

I am using advance custom fields plugin for creating custom fields in user profile. I only want user to only see upload tab and no "media library" tab. I am using the code: function ...
0
votes
2answers
25 views

Display custom field from the front page on another page

so I am hoping to retrieve a custom field that is already displayed on the "front-page.php" template on an another page.php template of my website. I know how to do that with the post-id way, but what ...
-1
votes
0answers
14 views

How can I implement user profiles and searching using ACF?

I need to create a basic membership site, which allows people to sign up (and pay for a profile) with a number of fields tied to their profile (name, address, logo, etc). A profile can then be ...
-2
votes
1answer
69 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
1answer
442 views

Getting ACF relationship field information

I am trying to use ACF Relationships to associate members to different committees. On the front end, I want to have the committee name and the board members that are associated with them. I have ...
0
votes
1answer
37 views

Making my custom column sortable

I am using custom post type with a relationship field with ACF and trying to get a column of number of times the "location" has been used in posts (this is my custom post type - location). I have ...
-4
votes
1answer
29 views

upgrading ACF (advanced custom fields) on an old site [closed]

I have a site that needs to be updated and it was running an old version of ACF (4.4.1). I had to get a new version of ACF because we don't ahve a good copy of the old. So when i updated my image ...
0
votes
1answer
120 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
21 views

Show get_sub_field value if it exists [closed]

I'm using Advanced Custom Fields in a WP build. I have the following: <h1 class="title"><?php echo get_sub_field('title'); ?></h1> How do I only show this if someone's filled in ...
1
vote
3answers
6k views

How to import CSV into Custom Post Type custom fields?

I have created a Custom Post Type and then used a plugin to create the custom fields for that post type. It will display a type of membership: Name Address Zip Website But I am stuck on how to take ...
0
votes
2answers
2k views

How to query posts by meta keys AND under specific category?

The scenary: I'm working in a review system for WordPress, a game review website. It uses default posts, that when under "review" category, shows the review's meta fields (from ACF plugin). It's ...
0
votes
1answer
25 views

Update post meta - Custom field does not match meta-key

I am trying to update my acf with update-post-meta: //ga_analytics_settings update_post_meta($my_post, 'ganalytics_settings', serialize($ganalytics_settings)); $ganalytics_settings is an array, ...
0
votes
1answer
566 views

Query Custom post type with Taxonomy Custom Field

I have a Taxonomy called Cities. I have created a custom field for this taxonomy, using ACF, called Country So I can create a City and select the Country (select list with predefined options) it ...
0
votes
2answers
531 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 ...
1
vote
1answer
1k 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
1answer
73 views

Visual Composer vs. Advanced Custom Fields [closed]

I use acf for all my webpages. I think i can create a super easy and simple backend with all the fields the customer needs. Now a boss asked me why we are not using visual composer and i cant get a ...
0
votes
1answer
550 views

wp_update_post based function works on existing posts, but not new posts

I have a function that will update the title of the post based on an 'advanced custom field'. It works on existing posts, but not when I create a new post. When I try and save the post and check the ...
1
vote
2answers
991 views

Send Multiple Custom Field Values Through the URL

Basically, I'm trying to follow this tutorial to add an action to the pre_get_posts and create a custom meta_query so I can alter the query within the URL and display babies,children and home books ...
0
votes
0answers
29 views

Filter User Query

I am using the code below to display all of my users on the front end. <?php $args = array( 'meta_key' => 'last_name', 'orderby' => 'meta_value', 'order' => 'ASC', '...
0
votes
2answers
450 views

Translation to ACF relationship field

I'm building a WordPress site that is supposed to end up with a Danish backend. This works fine for core WordPress, but some plugin makes it really hard to make a complete translation. A problem I ...
0
votes
0answers
11 views

WordPress edit.php page not fully loaded?

As seen in picture above the page isn't quite loading properly. I can add a new post, but it just doesn't load TinyMCE and some other WordPress features. The weird thing is, this actually does work ...
0
votes
1answer
20 views

Object of class WP_Query could not be converted to int inside shortcode

I have the following code which is used to display download posts by the custom taxonomy. I am receiving the error Object of class WP_Query could not be converted to int When I have Query ...
0
votes
1answer
34 views

Grouping and paging CPT events by month with custom field date

$start_date = date( 'ym01' ); $end_date = date( 'ymt' ); $meta_query = array( 'key' => 'event_date', 'value' => array( $start_date, $end_date ), 'compare' => 'BETWEEN',...
0
votes
1answer
26 views

Run function when WordPress new multisite is created or ACF field is updated

I have created a function on the main site in my multisite network that loops through each site in the network, pulls the values from their options page in ACF, and saves the data to a JSON file. ...
0
votes
1answer
45 views

Check for image with same filename but different extension

I'm using the following code to show images in an ACF Gallery field <?php $images = get_field('gallery'); if( $images ): ?> <?php foreach( $images as $image ): ?> <figure class="...
-1
votes
1answer
27 views

Advanced custom fields Repeater conditional statement not working [closed]

Even if no value for a field is entered my elements inside my echo still show inside my conditional statement. Thinking that is just checking if the field exists rather then checking if a value is ...
0
votes
1answer
54 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
1answer
46 views

get terms that have post with custom post type between 2 values

I have taxonomy terms for Countries and post type for Destination that have many dates for tour. I want to get all terms that have posts width the Custom Filed (Custom field with Advanced custom field ...
2
votes
1answer
552 views

WordPress custom post type archive with description

I have a common design pattern I'm not entirely sure how to best execute in WordPress. The layout is a listing of post teasers (title, trimmed body, image) on an overview page. Let's say example.com ...
0
votes
1answer
38 views

Link users to a custom post type

I would like to link a user to a custom post type (college). Does anyone know a good way to do this? The ultimate goal is to display links to view and edit their college I've been using Advanced ...
1
vote
1answer
37 views

Using meta_query and custom fields within pre_get_posts to return posts within a numerical range

I'm trying to build a search page for music tracks that lets visitors: Choose the post type Choose a genre Choose a mood Specify a Beats Per Minute (bpm) range wp_dropdown_categories() is working ...
10
votes
3answers
303 views

Filtering multiple custom fields with WP REST API 2

I want to filter posts based on multiple acf custom fields with AND relation. Something like this: $args = array( 'post_type' => 'product', 'meta_query' => array( '...
2
votes
2answers
2k views

Matching Serialized Arrays with meta_query

I've asked a related question previously, but I think I've finally worked out the crux of my issue. I'm using Advanced Custom Fields and have a number of custom fields attached to my post type. I'm ...
1
vote
2answers
42 views

Displaying ACF image field [closed]

I'm trying to display a list of all my custom taxonomy terms with an image field that I have created in ACF. The ACF image field I have is <img src="<?php the_field('brochure_logo'); ?>">, ...
1
vote
1answer
36 views

Get posts with multiple meta values

I have a ACF select field which takes multiple value. Now I want to use get_posts() to get those custom posts. My arguments look like this: $party = 'test1'; $function = 'test1, test2'; $args = array(...
0
votes
1answer
16 views

List sub pages with custom field content converting image ID to URL

I am using the ACF plugin to create static (non-ecommerce) product pages. I am now making a page that lists all the sub pages with product name and the image added to the product_logo custom field. I ...
0
votes
0answers
20 views

ACF Meta Query on Taxonomy Fields

I have some custom fields on a taxonomy. I'd like to be able to pull a list of the taxonomy based on those custom fields. I know it use to be possible using a meta query, but now that the custom field ...
1
vote
2answers
519 views

Query between dates using date picker filter breaks in Wordpress 4.2.1

Original post: Query between dates using Date Picker fields I originally made a post last year on this same subject, but seems the update to WP v4.2.1 has broken my filter. In summary, I am using ...
0
votes
0answers
47 views

Rewrite URL/Slug for a Page using a particular page template using Advanced Custom Fields Post Object

Edited 5/20 -- Rewrote to specify my question: I have a Custom Post Type represented as mysite.com/projects/{project-name}/. I'm trying to set up a rewrite rule for Pages that use a particular page ...
0
votes
0answers
29 views

Create Sub-Pages for Custom Post Type with Advanced Custom Fields

I have a Custom Post Type called "Projects". I have a archive-projects.php that displays all of the projects. Then a single-projects.php to display a single project. Trouble is, I want the display for ...
2
votes
3answers
428 views

Minimising number of queries on a page when using Advanced Custom Fields

I'm currently working on a site where there is extensive use of the popular Advanced Custom Fields plugin. However, as a result the page loading time can be quite slow, especially when using the ...