**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
946 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 ...
-2
votes
0answers
12 views

Woocomerce vendords saving via ACF

I am trying to post to wc vendors using acf fields but I am not sure as to what hooks that I require to action. Once the vendor has been registerd it needs to send an email. I also need to be able to ...
-5
votes
0answers
40 views

IE 11 & Edge Adding Empty Paragraphs in Editor [on hold]

UPDATE: I've bandaged this by using the following jQuery to remove paragraph tags with   inside of it, however, I am still searching as to why in the editor additional line entries are being ...
0
votes
0answers
21 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', '...
-1
votes
0answers
25 views

How to make random order ACF gallery?

My code is: <?php $images = get_field('gallery','option'); if( $images ): ?> <div id="slideshow"> <?php foreach( $images as $image ): ?> <img src="<...
0
votes
2answers
435 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
413 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 ...
0
votes
1answer
18 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
16 views

Send user notification email containing post meta

I created a custom post type using the Custom Post Type UI Plugin and some custom fields using Advanced Custom Fields Plugin. I am trying to send a notification to the admin using "...
0
votes
0answers
21 views

How I add input in wrdpress page to upload file to custom post in the woocommerce product control panel? [on hold]

I have page in the site the sellers can use to upload the downloadable products using this code to upload the premium product <tr class="trigger-type-virtual"> <th>&...
0
votes
1answer
33 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
0answers
22 views

How to use get_posts on a secondary loop

I feel like I am missing something terribly obvious. I have set up my secondary loop and it returns the_title() and the_post_thumbnail() as expected, but I am also using the Advanced Custom Fields ...
0
votes
1answer
22 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
38 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
22 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
39 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
43 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 ...
1
vote
1answer
523 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
32 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 ...
0
votes
0answers
36 views

Creating a custom post template via plugin

I am using advanced custom fields and I am looking for an easy and fast way to create a custom post template. That means, I know in advance that my template might change a lot and I do not want to ...
1
vote
1answer
26 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
255 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
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 ...
0
votes
1answer
516 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
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
35 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
27 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
13 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
2answers
507 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 ...
0
votes
0answers
18 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
496 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 ...
2
votes
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
0answers
42 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
24 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
421 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
25 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
50 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
26 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
544 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
35 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
30 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
27 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
27 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
33 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
18 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 ? ...