**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
2answers
769 views

How to update a custom post title from a front-end form using ACF fields?

So I have a custom post title being written by a front-end (non-admin access) form using AFC fields. What I am after is a way to update the title when the post is updated from the front-end edit form. ...
0
votes
1answer
401 views

Accessing Advanced Custom Fields with Repeater using jQuery instead of PHP

I am using Advanced Custom Fields (with repeater) and am currently using the following code to access the fields, i.e.: <?php if( have_rows('postage_prices') ): ?> <ul ...
0
votes
0answers
9 views

WP Group posts by year(desc) > month(desc) > date(asc)

I have a custom category template to group posts by a custom field 'event_date'. 2 things I cannot figure out, correctly: grouping by year and month, and having those in descending order, while the ...
0
votes
2answers
1k views

Displaying an ACF list of users

I've created a custom field using ACF to display the editors of a page (this may be a comma separated list of a few) including a link to their archive, but all I'm getting is a plain text 'Array'. ...
0
votes
1answer
565 views

How can I output the custom fields wrapping with HTML

I am trying to publish custom fields created using the plugin "Advanced Custom fields". I am able to display them on posts and custom post types as raw output. But I want to wrap html around the ...
0
votes
0answers
17 views

How to show single post from custom post type with shortcode

I know the topic have been around before, and have read extensively on the subject, without finding a complete solution. My goal is to have a shortcode that calls a single post, from my custom post ...
0
votes
0answers
9 views

ACF gallery hook?

When updating a gallery with a new image or deleting an image, is there a hook which gets called? With a standard image field there's add_filter('acf/update_value/type=image', 'my_acf_update_value', ...
0
votes
0answers
19 views

hide tab when it empty ( advance custom filed )

this is my code if( $javo_custom_item_tab->get( 'custom', '' ) == 'enable' ){ $javo_detail_item_tabs['custom'] = Array( 'tab_id' => 'item-custom' , 'class' ...
0
votes
0answers
14 views

Sort custom post type by multiple custom fields

I have 4 text fields in a custom post type. How can I sort the posts by this order of text fields: brand_fbn - model_fbn - year_fbn - plate_number? This is my code, which isn't working: $ins = new ...
0
votes
1answer
23 views

Wordpress ACF delete image from media library

I'm trying to use update_value filter hook of Advanced Custom Fields to write a function that when a user deletes an image from the field it will be deleted from the media library of WP as well. So ...
0
votes
1answer
17 views

Custom Post Type with Configurable Sidebar via ACF

I am using a custom post type (CPT) trainings on one of my client's sites. I've also added a CPT called sidebars, which can get linked into trainings or pages via the "relation" field type. To get an ...
0
votes
1answer
48 views

ACF repeater field usage

I have a Custom post type "event" it has a repeater field "event_session" that has 4 subfields "session_start", "session_title", "session_description", "session_speaker" (a post object relationship ...
0
votes
0answers
29 views

When can a template skip the loop?

I've reached another point with WordPress where something simple is stumping me. In working with an older theme, I have some page templates that do not call the loop. They simply use ...
-1
votes
0answers
28 views

How to show ACF Input fields in front end [closed]

I want to show ACF custom field in front end. I don't want to show ACF Field value. Also i don't want to show entire ACF form. I just want to show single input field at front end and want to save that ...
0
votes
1answer
30 views

Using ACF Custom Field value in a URL with do_shortcode() [closed]

I am using the ACF custom fields and video.js plugins and I want to add the custom field value inside the url for the youtube video that is inside of do_shortcode() So far this is what I've come up ...
1
vote
2answers
34 views

Returning ACF custom field from publish_post

I'm trying to return a custom field as soon as a post gets published. I'm using the publish_post (or {status}_{post_type}) action, but it looks like the custom fields are created after the hook. My ...
1
vote
1answer
928 views

Get specific repeater row (via advanced custom fields) based on Meta Query with Wildcards

I've used Example 5 of: http://www.advancedcustomfields.com/resources/how-to/how-to-query-posts-filtered-by-custom-field-values/ to query a post by a wildcard. However, my problem is I only want to ...
0
votes
0answers
18 views

Using upload prefilter to add image to custom field - problem with saving

I'm developing a plugin with which a pdf can be uploaded and from each page a jpeg version is generated and added to a custom field (advanced custom fields gallery). I'm using the ...
0
votes
0answers
60 views

Calculate the total of 2 meta values and ORDERBY

I've configured products in WooCommerce to use a point system (either 0 or 1) using Advanced Custom Fields and would like to order the products by these values - there are 9 options in total per ...
0
votes
1answer
16 views

How not to strip leading zero in advanced custom fields

I have custom field for phone number but the leading zero is not saved in db I tried to format the field as number and text but the zero is not showing
0
votes
1answer
18 views

Custom post tag images not displaying with ACF

Using ACF i've added a custom image field to a particular set of custom post tags. The problem I have is that I cannot get the images to display. Yes, I have added an image to the tag and updated. ...
0
votes
0answers
8 views

Loop using selection field to display content ACF

I 'm trying to create a loop to show only the contents of a multiple choice selection I have in the ACF ! I tried to do the consultation via WP_QUERY as explained in the ACF site , more does not work! ...
0
votes
2answers
491 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
1answer
103 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 > ...
0
votes
0answers
20 views

Can you check if a post WYSIWYG field has an image in it?

I'm using Advanced Custom Fields and a WYSIWYG field type. Can you determine via php if that field has an image in the content OR is there a better was to evaluate this. For example, if I upload an ...
0
votes
1answer
772 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
365 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
0answers
17 views

WpEcommerce + ACF Display Image [closed]

code below display the image but for some reason, when i create a new sub category under the category , the image source returns an empty value or no image is displayed. it seems to be calling the ...
0
votes
0answers
20 views

ACF Google Maps field not triggering on CSV Import

I have a csv of 7000 businesses that i just imported into wordpress. Each business has an address field, that i successfully imported into the ACF Google Maps field. The problem is the map itself will ...
0
votes
0answers
36 views

Bulk Edit Media Including ACF/Custom Fields

I have two main questions but here's the scenario. I run a festival website. Photographers will upload photos to the site. They will need to relate it to an Artist and an Event, so when viewing the ...
0
votes
1answer
55 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
1answer
734 views

Fatal error: ob_end_flush()

Ive just imported a page via xml. It has a bunch of ACF Repeater Fields (about 100). When I attempt to edit the page I see the following error: Fatal error: ob_end_flush() [<a ...
0
votes
0answers
12 views

Definition based access of Advanced Custom Fields

In combination with custom post types, I use a lot of advanced custom fields. Say, I have at least the following custom field groups with their respective custom fields. Contact Person contact_type ...
0
votes
1answer
24 views

display content in ascending order

I am using https://wordpress.org/plugins/advanced-custom-fields/ plugin for custom fields. I successfully displayed pages content on my single page using below code: <?php if ( have_posts() ) : ...
0
votes
2answers
1k views

Filter custom post types by custom field using AJAX

I have a few custom post types (books, films etc) created with WP-Types. I then have a custom field called Genre, created with ACF. If a user selects "Books" from the dropdown on the frontpage, he ...
0
votes
1answer
374 views

Export Users and their Advanced Custom Fields

I've google it but i am still looking for a solution. Is there a plugin or method to export wordpress users with their advanced custom fields? I don't want to export ACFs structure but users' data.
0
votes
2answers
395 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
0answers
45 views

salary range filter doesnt work when value higher than 75 000

I' having a big issue to create a salary range filter... I have one custom post type job - with a custom taxonomy for the salary. The salary are all put as a range' exampple: 20 000 - 40 000 using ...
0
votes
1answer
17 views

Relationship field search not retriving posts in admin

I have a site with 5000+ posts and a theme option page with a relationship field on it. The infinite scroll and Taxonomy filter function of the relationship field works, but the search doesn't. ...
0
votes
0answers
27 views

ACF only getting specific custom field data

I'm new to this so bare with me if this doesnt conform to the usual standard. Basically I have recently been employed in a new office that builds customised wordpress sites for its clients, I am no ...
0
votes
3answers
5k views

Custom Taxonomy Images with Advanced Custom Fields

I've created a custom Taxonomy for a Custom Post Type, and created five or so terms within the taxonomy. I've created a single image upload and assigned it to the custom taxonomy, and uploaded images ...
0
votes
2answers
88 views

Advanced Custom Fields Show After Password [closed]

I am new to ACF , so far I managed to add a new custom field and did this Visitor can enter application no. and password to get its application statuses which admin has added. I have used ...
0
votes
1answer
79 views

SOLVED - How can you query posts by advance custom field when the value is a serialized array?

Bottom for resolution Im going crazy I think. I cannot figure this out for the life of me. I have an advanced custom field that is a select box. The select box has multiple values and allows for ...
1
vote
1answer
955 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
0answers
12 views

ACM for category page

I have created a little selection using Advanced custom fields to trigger different fonts for different postings. Basically I can select between German and Italian: If I select a post to be German ...
0
votes
1answer
26 views

Advanced Custom Fields Query with Different Values of the Same Key

I have a custom post type set up with Advanced Custom Fields. I would like to display and order my posts in groups. The groups are states of the United States, so I have 50 groups. Should I perform ...
0
votes
0answers
25 views

ACF Post Object: Wrap every three post objects

How would I go about wrapping every three ACF post objects in a div? <?php if ( get_field( 'featured_posts' ) ): ?> <?php $index = 1; ?> <?php $totalNum = count( ...
0
votes
1answer
36 views

Page returning ID from array, how to return the correct values for post in acf wordpress

Im having a little trouble returning the correct value with the relationship field. My end result is to use the relationship field to add selected locations to a drop down in gravity forms. I can ...
1
vote
1answer
148 views

How do I add advanced custom fields / meta fields to Elasticsearch? [closed]

I am using the plugin ElasticPress. I'd like it to index some extra (advanced custom) fields. The only info I can find is this comment by one of the developers: [...]if you would like to add ...
0
votes
0answers
35 views

Update Custom Fields once post's modified

I have a particular custom post type, called person, and want to display them on a Faculty page. There is a particular order I would like these people displayed on the page, and don't want them ...