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

learn more… | top users | synonyms

-4
votes
0answers
20 views

ACF front-end form in modal popup not working [on hold]

I have a built a ACF front-end form to allow logged in users to upload images and add taxonomy tags to each image. Using a standard Bootstrap Modal layout. Modal is working OK and allows the upload ...
0
votes
1answer
23 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
435 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 ...
2
votes
2answers
1k 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 ...
0
votes
1answer
14 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 ? ...
0
votes
1answer
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 ...
-3
votes
0answers
32 views

How to display custom post type post_meta [duplicate]

How can I display my custom post types with their post meta field date of birth, where date of birth matches today's date or current date? $query_args = array ( 'post_type' => ...
-1
votes
0answers
53 views

Query between dates using ACF Date Picker fields

$query_args = array ( 'post_type' => taxonomy, 'post_status' => "publish", "order" => "ASC", "meta_query" => array( "relation" => "OR", array( ...
0
votes
0answers
11 views

ACF Relationship only showing posts instead of custom post types [closed]

I have a site using ACF and custom post types (services, solutions, resources). The way it was working originally (and correctly) is that when you created a post or service or solution, you could add ...
0
votes
0answers
15 views

Adding multiple posts via front-end form [on hold]

I am able to create an individual post via the front-end (no use of dashboard at all) - currently using ACF thats dependent on acf/pre_save_post and wp_insert_post However, I do not know how to ...
1
vote
1answer
48 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), ...
0
votes
1answer
438 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 ...
-3
votes
0answers
15 views

Can the value showed for a Post Object by Advanced Custom Field be changed (custom field instead of post title)? [closed]

I have a Custom Post Type (created with Custom Post Type UI) "Parents-Teacher Interviews Time" with contains advanced custom fields "Teacher", "Time", "Day of the week", and so on. "Teachers" (pay ...
0
votes
2answers
433 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 ...
1
vote
1answer
228 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". ...
1
vote
1answer
908 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 ...
-3
votes
1answer
15 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
516 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 ...
0
votes
1answer
16 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 ...
0
votes
2answers
3k views

Filtering a WP_Query meta_query by numeric values isn't working

That was a very dense title. I have a custom post type "event" which has a Date/Time picker field "event_date" thanks to the Advanced Custom Fields plugin. This Date/Time picker saves a UNIX ...
1
vote
1answer
37 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 ...
0
votes
2answers
48 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 ...
1
vote
2answers
871 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
2answers
44 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
0answers
16 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
26 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 ...
1
vote
1answer
462 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
0answers
17 views

how to refresh woocommerce products

i have a bunch of products in woocommerce that i had to export and fix and then re-import. Everything seemed to go smoothly except for 1 thing. Each of the prouducts had a Advanced custom field ...
0
votes
1answer
45 views

Advanced Custom Fields from Category - IF statement

Please if someone could help ill be very greatful. I know how to use the if statement using Advanced Custom Fields on posts - but this time I want to pull the value from the Advanced Custom Fields in ...
0
votes
2answers
648 views

Setting a custom $query->query_vars['meta_key'] breaks the WordPress menu

First of all, my problem is very similar to this one: http://stackoverflow.com/questions/10629245/wordpress-menu-disappears-when-query-query-varsmeta-key-is-set However, the answer accepted for this ...
0
votes
1answer
21 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
0answers
20 views

Advanced Custom Field in dashboard

I'm looking for a way to add a dashboard widget that has a ACF text and image field in it. I want a client to be able to quickly update a text field right from the dashboard. Any ideas on how to ...
0
votes
0answers
36 views

Search for Custom Post Types with ACF Fields

I've tried a lot of things but back to square one. My latest attempt didn't go so well. I'll try and explain very clearly what I am after. I ended up buying ...
0
votes
1answer
72 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
30 views

Advanced Custom Fields: Sorting custom columns with custom fields sorts only by date

I have a custom post type – “members”. With help of Advanced Custom Fields(AFC) I’ve created a Field Group with 5 fields and assigned that group to my “members” post type. I followed this article to ...
0
votes
0answers
21 views

Can't pick up a field created with Advanced Custom Fields

I have a situation where: I need to create a custom link per image on an image gallery. I did that via ACF. I have created a text field with HTML outputing so that hyperlinks get converted ...
0
votes
1answer
42 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
1answer
28 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
0answers
23 views

Refresh the Customizers preview after editing fields

I'm using ACF fields on a few custom widgets. While using the Customizer to edit fields, they will save on change but the preview will not refresh. Calling wp.customize.previewer.refresh() will ...
0
votes
1answer
33 views

ACF loops false value with repeater and checkbox

I have an ACF repeater field setup on a page and within the subfields I have a True/False checkbox. So far, if the box is checked, it will show the fields. If not then it will not. However, the one ...
0
votes
1answer
22 views

how to add acf value to other plugins shortcode?

Hi I am creating site with ACF and other plugin (WP-Appbox). WP-Appbox allow me to add little download box of app with shortcode. shortcode is as follow. [appbox storename appid]. If I want to show ...
0
votes
3answers
863 views

How to show postmeta in custom columns for the posts screen?

I've got a True/False value added to posts (Exclusive versus Curated) that was added via Advanced Custom Fields. How do I get that value to show up as a column on the Post list (/wp-admin/edit.php) to ...
0
votes
3answers
64 views

ACF allow zero as a value

I would like to have 0 to 5, and "n/a" as possible values, however this code will output "n/a" when I want it to output a zero. How can I get it to output "0"? ("n/a" is the placeholder if no value ...
-1
votes
1answer
27 views

ACF Field to set Publish Date - Post Duplication upon Update

So I am attempting to have a ACF set the date published of a Custom Post Type... and it sort of works. It will set the date of the post correctly the first time, but upon updates it will update the ...
0
votes
1answer
87 views

Sorting get_terms, ACF is automatically removing duplicates

I read over the ACF & WordPress documentation and both do not mention why/when/how duplicate values are removed from an array when sorting taxonomy terms by custom fields. I learned that ACF does ...
1
vote
0answers
564 views

Is there a way to export Advanced Custom Fields data?

I've entered data into ACF using the ACF Options plugin. Is there a way to export all that data I entered? When I use ACF's built in exporter, it only exports the structure. Maybe I'm missing ...
0
votes
0answers
97 views

Add custom fields from Woocommerce Attributes in check out page

I've added some custom fields, using ACF, for attributes in Woocommerce. So when you add an attribute you can add some more info. I achieved to show them in the product page but I can't find a way to ...
0
votes
1answer
33 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' => ...
0
votes
1answer
74 views

Get a list of ACF Repeater-Fields as array

I run a Site for a concert & music club. Events are set within a custom post type called "events". In this i set the date, the name of the event and all other infos about that event. In this ...
1
vote
2answers
27 views

ACF check if variable has http, if else return string

Trying to check if $link has http:// in front of it or not. If someone puts in www.google.com for the link field it acts as a link within the WordPress site, ie: www.website.com/www.google.com. $link ...