Questions tagged [advanced-custom-fields]

Advanced Custom Fields is a free WordPress plugin which acts as a GUI layer for custom fields. Custom fields are native to WP and appear on pages, posts and custom post types, however the native custom field interface is not very user friendly. ACF uses field groups to attach fields to edit screens.

Advanced Custom Fields is a free WordPress plugin which acts as a GUI layer for custom fields. Custom fields are native to WP and appear on pages, posts and custom post types, however, the native custom field interface is not very user-friendly. ACF uses field groups to attach fields to edit screens.

More information and good documentation are available on the official website. The plugin can be downloaded from the WordPress plugin repository or installed from within the WordPress admin.

Useful Links

4522 questions
1
vote
1 answer

Ignoring posts in wordpress already used in a loop

Currently using ACF Repeater for WP to show some posts within a category but if I add the same repeater I want it to keep a log of what post ids have been used so it can exclude them from the new loop. The only problem is my current code works fine…
Kyon147
  • 738
  • 2
  • 11
  • 28
1
vote
2 answers

ACF Image in Repeater not working

For a custom WP theme I am creating I am using ACF. I need to have a repeater that outputs images. I have it set to image object and using the correct code. In fact I tried it without a repeater and it works perfectly. Its only within the repeater…
natmed91
  • 47
  • 2
  • 4
1
vote
0 answers

Advanced Custom Fields - All the input fields in my repeater object are disabled?

I've got a flexible content field with multiple repeaters nested within. The flexible content is shown via conditional logic when a check box is checked. For some reason all of the text fields in the repeaters are disabled. I didn't put the license…
Sharklazer
  • 41
  • 5
1
vote
1 answer

Can i write custom bulk action for my custom fields in wordpress? if yes, what are the ways to do that?

I am working on wordpress website where i am generating Landing Pages dynamically. I have used custom fields such as price, background image etc. on these landing pages. Now i want to create a custom bulk action for those pages where I can update…
aniket sawal
  • 77
  • 1
  • 7
1
vote
1 answer

Advanced Custom Fields Repeater With 2 Loops

I am setting up a photo gallery, with a main image and 6 thumbnails under it. Upon hovering the thumbnail, the main image will change. Simple stuff. The problem I am having is that when the page loads, the main image is the image from the first…
ansarob
  • 825
  • 2
  • 13
  • 32
1
vote
0 answers

Filtering portfolio with php

I am working on a portfolio page and since i don't want to repeat the code, i have 1 database for all my portfolio pieces. I have 2 categories, Work and Freetime. Both categories have their own page. Under these 2 categories, i have a couple…
user2314339
  • 395
  • 1
  • 6
  • 16
1
vote
2 answers

Order by numeric Advanced Custom Field

I want to order by an Advanced Custom Field numeric field, however I can't seem to get it to work: $args = array( 'posts_per_page' => 20, 'category_name' => 'staff-' . $wp_query->queried_object->post_name, 'meta_key' =>…
Graham Barnes
  • 235
  • 2
  • 6
  • 18
1
vote
2 answers

How to add advance custom field just after the post

I am using Genesis framework and I want to add advance custom field just after the post, I did some code but the field is not coming just after the post. Here is the code: add_action('genesis_entry_content', 'add_content_after_content'); function…
user4514748
1
vote
1 answer

Querying Advanced Custom Fields; want to paginate the results

Not sure if this pertains specifically to Advanced Custom Fields, but I'll keep this short. I'm relatively new to PHP and want to know the best way of approaching this task. Also, this is a WordPress (4.1.1) environment. I'm sending a query for all…
Joey O
  • 315
  • 2
  • 17
1
vote
2 answers

WordPress MetaSlider & Advanced Custom Fields integration

I'm building a website in WordPress using the Advanced Custom Fields plugin alongside metaslider, I want the user to be able to select a metaslider from a dropdown list by using a custom field. I know that you can add a slider in via the WYSIWYG…
Alex Turner
  • 148
  • 10
1
vote
1 answer

Advanced Custom Field - Displaying a youtube video on a Woocommerce template

I have set up a custom field which you add the end of a youtube link in through a text widget in wordpress from there a function adds this to an iframe in the url. Below is the function adding this to the page:
Spade
  • 105
  • 2
  • 11
1
vote
2 answers

Javascript plugin appending duplicate data in Wordpress

I'm using a currency conversion plugin called curry.js that's being called on a custom Wordpress page with bootstrap tabs and advanced custom fields. As WP loops through each tab it's appending to the list of currencies so that when you open the…
1
vote
0 answers

WordPress ACF absolute crop

On my front page I want to display a grid with different images. To make it easy to change these images, I'm using Advanced Custom Fields. However it doesn't work to really crop these images. I have put the following code in my template file:
1
vote
1 answer

.toggle() applying to everything in ACF repeater

$( ".employee-big" ).click(function() { $( ".info" ).toggle( "slow" ); }); //these are repeaters so class gets repeated
so i have divs that when you click on it it shows the…
BritishSam
  • 1,070
  • 8
  • 24
1
vote
1 answer

Wordpress Custom Post Type Query Issue

After scratching my head for almost 2 hours, I am unable to resolve the puzzle. Anyone who could help me , I will be highly thankful to him. I have created a custom post type 'Properties' in wordpress. I am trying the following code to list the…