**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
123 views

How to change the background color of my header dynamically based on a Custom Posts types color value?

I've been able to figure out how to include the custom field i'm referencing within an inline style within a div that wraps my header. The problem is that it's in my header and so when a particular ...
0
votes
1answer
169 views

If you're calling a dynamic css inline style does that div have to be in the loop?

In the code below i reference "the_field( 'bg_img' )" within my first container div. The reason i do this is because i created a custom field (within a CPT) that allows the admin to change that ...
0
votes
2answers
404 views

How to query the content of a specific custom post type?

I have created a custom post type called "Single Neighborhood" in it i have 5 custom fields: Background Color (color picker) Background Image (image upload) Latest news (WYSIWYG editor to list ...
0
votes
2answers
56 views

If i have custom post type with 5 custom fields do i have to create a new loop to reference each one?

One custom post type that i've created has 5 custom fields that display specific content for a template that displays them in different areas on the page. My question is if i would have to create ...
0
votes
0answers
311 views

ACF: What hook can I begin to use get_field()

So I have a nifty trick for my theme "modules" in which case I scan my modules directory (THEME_MODULES_DIR) and create an array of the module directories found. That array is then used to pass as the ...
0
votes
1answer
74 views

Multiple loop issue - pull one featured and then continue the loop

I am writing a custom multiple loop to be used on a custom category template page. The loop should put one post that is checked as featured in admin, in a separate div, and continue the loop ...
1
vote
2answers
2k views

How to customize a divs background dynamically using Advanced Custom Fields Plugin?

I've gotten as far as creating custom post types, custom fields and linking those to templates on this first time WordPress project i'm working on, but i seem to have run into a problem i'm not easily ...
0
votes
1answer
63 views

Fetch data from a WP page with same name as current username

Ok, so this sounds a little complex, but in theory should be easy. What I'm trying to achieve: ACF data is pulled from a WP page which has the same name as the current logged in user. Basically I ...
0
votes
2answers
69 views

Custom post type adding additional markup

I'm creating a template but every time I add a new custom post type (in this example neighborhood) it keeps injecting a new <ol> and <li> here is the code I currently have and I'm using ...
0
votes
1answer
120 views

Advanced custom fields - If/ while field problem

The way I am trying to set this up is that if a link has not been chosen then only the image will be displayed, but if a link is chosen as well as an image then I want the link to be wrapped around ...
-1
votes
1answer
807 views

Use Advance Custom Fields to fill text widget [closed]

I have a custom WYSIWYG field setup in Advance Custom Fields Plugin and I want to show that content in a text widget on the sidebar / widgets. I've tired the shortcode and the php code but no luck. ...
0
votes
1answer
292 views

Advanced custom fields - pulling data in from another page

Hello I am using advanced custom fields and I am trying to pull data from multiple pages and display it on another I set up a relationship field called "data", and then on page X where the ...
3
votes
3answers
253 views

Compare two numeric custom fields

I use Advanced Custom Fields and have a custompost-type "matches". This post-type contains two fields "goals-made" and "goals-against". I want to query wordpress to show only the matches that were ...
1
vote
1answer
203 views

WP_User_Query pulling ACF to loop

I'm using following code to display my users on template <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $paged -= 1; $limit = 100; $offset = $paged * $limit; $args = ...
0
votes
0answers
325 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
1answer
2k views

Advanced Custom Fields: query posts filtered by multiple field values

I have the following: custom post type: q-and-a custom taxonomy: q_and_a_category taxonomy terms: design, engineering, project-management I'm creating three separate pages that filter the custom ...
0
votes
2answers
144 views

Advanced Custom Fields repeter field expiration

I'm developing a small online-courses website for a friend and got stuck with ACF repeater field! Here's my code to display the course dates table: <?php $rows = get_field('dates'); $i = 1; ...
0
votes
0answers
122 views

One-time bulk MySQL copy post_date values to Advanced Custom Field (date field)

Disclaimer First of all let me say this is probably mostly MySQL related and unfortunately I'm nearly a total newbie on database language and commands. The problem Situation is a site running ...
0
votes
2answers
517 views

Query based on custom fields start and end date

I have a custom post type called Events, with 2 custom fields, start date and end date. These fields are stored using a timestamp in the database. I want to create a custom query based on these 2 ...
2
votes
3answers
1k views

Advanced Custom Fields - Get custom fields from parent page

I'm using Advanced Custom Fields making it easier for my client to manage his content. On all of my child- and parent pages i would like to have the same header image and sidebar information. ...
0
votes
1answer
219 views

Adding a ACF fields to a WooCommerce Attribute

I am trying to add some ACF fields to the WooCommerce Attribute Creator, but I cannot find which rule to add it to. I can find attributes I have already created (in Taxonomy Term Add/Edit), but it ...
0
votes
1answer
599 views

Advanced custom field boolean value in custom post type

I'm using the Advanced Custom Field (ACF) plugin in a Custom Post Type (CPT). I have field group in ACF that contains a Image field and true/false field called 'home_offer'. I'm using this ACF in a ...
0
votes
0answers
185 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 ...
1
vote
4answers
194 views

wordpress ajax relationship query

Using the relationship field from Advanced Custom Fields I link artists to events. Both these artist and events are custom post types. For each event, the post IDs of the related artists are stored in ...
-1
votes
1answer
102 views

Custom taxonomy meta fields

I'm trying to make an anime site like myanimelist.net but in spanish with links of the episodes at the bottom. I created a post type called anime, and some custom taxonomies associated with it: ...
0
votes
1answer
117 views

Advanced Custom Field User Help URL

Hi I'm using ACF or Advanced Custom Fields which i saw here a while ago.. What i want is to output a second featured image in the homepage.. Question: 1 <div class="jpl-widgets-d" ...
0
votes
0answers
42 views

Custom Fields & Posts

I've got one template, which I use on many different pages. The problem is that I want to show different posts according to their "pagename" category. Ex. "About" is going to show "About category" ...
0
votes
1answer
235 views

How to Generate html tags using shortcodes?

I am using a widget and adding this: <div id="testimonials"><h4>[acf field="testimonial" ] <strong>[acf field="name" ]</strong></h4> <h4>[acf ...
0
votes
0answers
83 views

Filter a custom field based on selection of another custom field (ACF)

I have 3 custom post types with Advanced Custom Fields: Student Class Homework Assignment Homework has a custom field that is a 'relationship' with Class. This is because specific pieces of ...
0
votes
1answer
91 views

How to detect when a file has been uploaded?

I'm trying to analyze a file after it has been uploaded using a custom file upload field (ACF). Is there a way to do this using a hook? If not using a hook then maybe theres a Javascript event?
0
votes
1answer
74 views

Copying custom field value in to title

I'm using wordpress as a cms, so on my custom post types, I don't need the title and only use custom fields. The title however is still used, and receives the value "Auto Draft", which I don't want - ...
0
votes
1answer
1k views

Set default date in datepicker of the advance custom field

I am using advance custom field in my wordpress project. In it i have added 2 datepickers as custom fields into page. Now the main problem is whenever i add new page both the datpicker by default ...
1
vote
0answers
34 views

Specific routing for CPT

I'm developing site for art gallery. A have Artist CPT (internal name artsin_artist) which is defined in my functions.php like following: register_post_type('artsin_artist', array( 'labels' => ...
0
votes
2answers
753 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'. ...
1
vote
1answer
529 views

How to order by just the Time Field in Advanced Custom Fields

I'm using Advanced Custom Fields to create a class schedule. I need to get the time field to sort correctly to display the class schedule in the correct order. Currently it is not, and I don't ...
1
vote
3answers
3k views

Advanced Custom Fields plugin : displaying a YouTube video

On my page, I have many fields text area fields containing text, and one WYSIWYG field containing a YouTube video (I need it to be WYSIWYG because otherwise only the URL of the video would show, not ...
0
votes
2answers
243 views

Advanced Custom Fields plugin : displaying a field while omitting the p tags

In Advanced Custom Fields plugin, is it possible to display a WYSIWYG editor field in which p tags are omitted?
4
votes
1answer
424 views

Unable to get Preview of Uploaded image within a Custom Meta box

I first followed the steps in this tutorial. Added the Image Uploader, tried it out but I realized it's an older version of the WP Uploader... So I then found this post, and now my uploader is ...
0
votes
1answer
111 views

Getting “Invalid argument supplied for foreach()” Warning

I am on the last step in a tutorial that I followed here , called "Using the data". I tried using// $album_repeatable = unserialize($post_meta_data['album_repeatable'][0]); echo '[ul ...
0
votes
1answer
82 views

the_post_thumbnail unless video id is added

I have 2 choices on the edit post page to insert an video ID from either vimeo or youtube. The user needs to select, with a select field (channel), if he wants to embed video from one or the other. ...
0
votes
1answer
88 views

My Query is getting the wrong data

I am trying to populate a select box to get the categories created in my ACF post type, when clicked these will filter available jobs via their category. The post type can be seen here - Post Type ...
0
votes
1answer
130 views

get_category only returning details for 'uncategorized'

I'm using the ACF Taxonomy field add-on to select a category and (hopefully) return details for that category, e.g. slug, title etc. The custom field get_field('category_test') returns the category ...
0
votes
1answer
2k views

How to get the get the select values created by ACF plugin in wordpress

Basically I want to display the select box so admin can select the option while creating or editing a category to display the category in front page with image or not. I use advanced custom plugin to ...
0
votes
1answer
33 views

Custom Post-type not returning the right child_of

Situation I am using the Advanced Custom Fields plugin to give Custom Post Types a checkbox. If this box is checked, it should be returned by this Query. The Query works this far. The issue The ...
1
vote
0answers
313 views

How to fetch the data from Advanced Custom post when we search specific keyword or field name related to the post?

Actually i have created a custom post type and fetch the data from "Advanced Custom Fields" plugin after then connect to a custom search-form to search only the post data.It works good. But now i ...
0
votes
1answer
180 views

Custom field within shortcode

I'm currently using the 'WP Simple Paypal Shopping Cart' plugin to get up a simple paypal e-commerce site, it's super easy to use, but to save the client having to write shortcode, I've set up custom ...
1
vote
1answer
3k views

Where are custom field values stored in the database

I am using the advanced custom fields plugin for posts. I would like to know where custom fields are stored. I checked the wp_posts table. However, I could not find the posts with custom fields. I ...
1
vote
1answer
609 views

Conditional statement for parent, child and grandchild pages

I'm trying to figure out how to set up a conditional statement to check if the parent, child or grandchild is being displayed. This is what I've got so far: <?php if ( is_page( 'about' ) || '29' ...
0
votes
1answer
292 views

advanced custom fields: repeater field within conditional statement [closed]

I'm trying to figure out if it's possible to have a custom field within a conditional statement. e.g— if ( is_page( 'about' ) || '29' == $post->post_parent ) { //custom field goes ...
1
vote
1answer
3k views

Using OR conditions in meta_query for query_posts argument

I have searched high and low for this but I cant seem to locate anything. I am trying to filter some results and when I make an args array like this and pass it to query_posts I noticed that the ...