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

learn more… | top users | synonyms

1
vote
2answers
524 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 ...
0
votes
1answer
31 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
0answers
64 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 ...
3
votes
3answers
7k views

Get value in custom field with taxonomy [closed]

I have custom field my_cf for Taxonomy/Term. How can I get and output value with custom field for taxonomy/term? I've tried using: $variable = get_field('my_cf', 'basic'); echo $variable; ...
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>&...
0
votes
1answer
41 views

Ordering get_terms with ACF not displaying all terms

I'm making a shortcode to return all the terms in this taxonomy. The terms are sorted with krsort by the custom field 'height' made from ACF. I'm following this answer from here. The problem is it's ...
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
33 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), ...
1
vote
1answer
273 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". ...
-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 ...
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
70 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
76 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
2answers
61 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
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 '...
0
votes
1answer
53 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
737 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
39 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
29 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
67 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 http://www.designsandcode.com/wordpress-...
0
votes
1answer
160 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
59 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
24 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
48 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
31 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
49 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
89 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
42 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
1k 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
74 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
45 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
121 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
624 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
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
226 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
61 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 ...
1
vote
1answer
36 views

Filtering from advance custom field data

I want to achieve a schedule plan in my front-end. I cannot view information based on the Day. For example in the backend, a row is for Tuesday but its rendering on the column of monday in the front-...
0
votes
1answer
88 views

Different body image backgrounds on different pages, posts and categories

I am trying to implement the ability to choose a different body background image to different posts, pages and categories. I am using Advanced Custom Fields to add an image field to every post, page ...
0
votes
1answer
90 views

ACF Relationship - Get Parent's Post Object

I've a few post that have ACF relationship field set up : - Post A - Post A1 - Post A2 - Post A3 Post A have a relationship that link to : Post A1,A2 & A3... Post A1,A2,A3 have their own post ...
0
votes
3answers
40 views

Custom fields vs. Custom post types for a Portfolio Website

The Problem : I need to make a website of my Portfolio using Advanced Custom Fields and Custom Post Types UI plugins. Approach 1: Make a seperate post type for each Portfolio type (photgraphy ...