**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
23 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
-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
27 views

Override JS using functions.php flle [closed]

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 ...
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
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 ...
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
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
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
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
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
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
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 ...
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 ...
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
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 ...
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
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 ...
0
votes
1answer
29 views

Changing a specific value inside a complex repeater/flexible content field (ACF)

So I have a really complex ACF repeater / flexible content field (essentially a pagebuilder). What I want to do is get a specific sub-sub-subfield value from one post ($source_post) and insert it in ...
0
votes
1answer
36 views

Relationship field problem: Uninitialized string offset: 0 in

My code is: <?php $posts = get_field('designer'); if ( $posts ): ?> <?php foreach( $posts as $post ): ?> <?php setup_postdata($post); ?> <div class="design"> <h4>&...
10
votes
3answers
304 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( '...
0
votes
0answers
62 views

Query between dates using ACF date AND Time Picker fields

I'm looking to be able to query (custom) event posts by date AND time. displaying a range of events on any given days. I should also be able to query events that span across multiple days, whilst ...
0
votes
1answer
21 views

How to add content with a filter when there's no content in the editor

I'm building a plugin to create page sections (with ACF and repeater field) and I want to add the sections at the end of the content. The sections are added to the content, but only when there's ...
0
votes
1answer
32 views

Wordpress Request Post All Post ID in a Loop? [closed]

I would like to ask if there's a way on WordPress to get fetch all of the page's Field?... I am using a Advance Custom Field Plugin and would like to fetch data's from fields inputted over those ...
0
votes
2answers
32 views

Custom fields not showing in custom post type

I'm putting together a basic landing page http://shurity.com/, and in trying to clean up my code, I wanted to replace some static content with dynamic content for the user. The element in question ...
0
votes
1answer
36 views

Update field name without losing the value

So I have this photography website using ACF with flexible content. It has approximately 300 posts. Due to requirements, I need to update the name of some fields. I've tried the following query: ...
0
votes
1answer
39 views

WP Meta Query - mixed AND / OR query doesn't work

I am absolutely boggled by this one. I am creating a search function for a property site - simple enough. Simple queries such as max_price, max_beds, rent_or_buy work ok. But I am trying to create a ...
0
votes
1answer
19 views

Auto populate custom fields by post date

I have an old blog with lots of posts, I created 2 new custom fields "Year" and "Month" using ACF. I would like to auto populate them from the post date after post save/update, is this possible ? ...
1
vote
1answer
56 views

Sorting posts by season

What would be the best way to go about creating something like this (https://www.fiawtcc.com/calendar/) in WordPress? This is a calendar, with posts (containing the event date and event description), ...
-3
votes
1answer
19 views

How to get the attribues (alt and title) of an image import with ACF [closed]

I use the ACF plugin to build oone of my page. Inside this one, i load 4 images. How can I get attached image alt ? I tried with "$alt = get_post_meta( $attachment->ID, '_wp_attachment_image_alt', ...
0
votes
1answer
33 views

ACF scheduled repeater fields

Is there a way to schedule repeater fields to appear on the front end at start date & time and be taken down at end date & time? Is there a way to have those repeater fields deleted from the ...
1
vote
1answer
68 views

How to do a wp_query with two acf-fields, sorting on one of them

I have two Advanced Custom Fields, footnote and date_edited (a datepicker-field). What I want to achieve is to run a wp_query where footnote is not empty. The output I want sorted based on date_edited....
0
votes
2answers
75 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
0answers
19 views

Link to Advanced Search specific results

I have built a search using Advanced Custom Fields which is a lot like this: Advanced search form with filters for custom taxonomies and custom fields however all the results are being displayed on /...
0
votes
2answers
32 views

Get the category fields even if there is no post

I have one small problem, i am showing the custom fields of category on category page. its showing fine. but its not showing if there is no post in that category. i don't know where to use the '...