Questions tagged [acfpro]

ACF PRO is the professional version of ACF (Advanced Custom Fields), a plugin for WordPress

ACF is a WordPress plugin for WordPress edit screens and custom field data.

References

341 questions
0
votes
0 answers

ACF Pro, three way relationship, Front end error

For example let's take three post types: A = Speaker, B = Event Name, C = Venue A is related to B B is related to A but A is not related to C but B is related to C While creating posts in B, I choose both relationship fields. i.e. A and C When I try…
0
votes
1 answer

ACF Filed show anywhere?

hoping to get a bit of direction here. I have an ACF Field Group assigned to show on a Insights CPT. Obviously the location rules control which editor it shows in, in this case it shows If post type is equal to Insights and Post Template is equal to…
0
votes
0 answers

Wordpress; getting posts from a different site in a multisite within a filter

I am trying to populate an ACF select with posts from a different site in multisite. This code works in the context of a single site (ie by removing switch_to_blog) but doesn't work with the switch - no error simply returns no posts. Is there a…
Chris Pink
  • 1,558
  • 1
  • 15
  • 28
0
votes
1 answer

Registering field for acf block does not work

I created a block with acf_register_block_type which shows the block in editor which is complete fine. I did that this way, //custom block with acf function mab_register_acf_block_types() { acf_register_block_type( [ 'name' =>…
0
votes
0 answers

Advanced Custom Fields Deleting Row from repeater

I have a repeater with around 270 rows in it, I want to delete a specific row by index using "delete_row()", I can do that easy enough but with 270 rows, this function really seems to hang. Is this normal behavior? Is there a custom mysql query I…
Caleb Prenger
  • 1,537
  • 4
  • 13
  • 13
0
votes
0 answers

Matching Woocommerce product status to custom field

I am trying to set product status to draft/publish depending on the value of a custom field. for example CF = Blank then draft, CF = draft them draft, CF = publish then publish This has gotten me fairly close though its breaking other parts of…
Callan138
  • 1
  • 1
0
votes
1 answer

ACF PRO take different menus in pages with different taxonomies

I would like to get a different main menu for pages that have different taxonomies. PAGE COMPANY-1 (Taxonomy: COMPANY-1) menu-1: Who we are COMPANY-1 Where we are COMPANY-1 Contacts COMPANY-1 PAGE COMPANY-2 (Taxonomy: COMPANY-2) menu-2: Who we…
LSWEB
  • 1
  • 1
0
votes
1 answer

Text entered in ACF fields not rendering in front page(index.php) - Wordpress

Guys I am facing a issue where i have created the field entered the content in the wordpress however text in not rendering in the front page. News there are other fields…
0
votes
0 answers

Advanced Custom Fields how can I register Select options programmatically

I can register a Year field programmatically for ACF with code like the following that has a 33% width of the container: if( function_exists('acf_add_local_field_group') ): acf_add_local_field_group(array ( 'key' => 'group_1', 'title' =>…
0
votes
0 answers

Wordpress - can two themes be run on one site?

I have a highly customised new site being built using the Visual Composer theme and child theme. This is an upgrade to an older site using a different theme and development base, Nucleo 2015 Base Theme and child theme. In the old site there is…
0
votes
1 answer

WordPress: Force Republish Posts to Update Content

I'm currently working on a custom post type using ACF. Essentially, you fill out a form and upon submission, it creates a new post and the details are then visible via shortcode in a map. Each submission uses it's own shortcode, in it's own popup…
0
votes
0 answers

Trying to populate a text field with the update_field function (on frontend acf_form)

I want to fill a field (onto acf_form ) from the url. but I can't get it to work, can anyone see what I'm doing wrong? My code: acf_form (array( 'post_id' => 'new_post', 'form' => true, 'return' => '%post_url%', 'field_groups' =>…
user2041174
  • 51
  • 1
  • 5
0
votes
0 answers

Wordpress Advanced Custom Fields - Update Field on Button Click

I am working on a user generated content site using advanced custom fields and I need to create a button that will update a relationship(user) field. Use case I have events set up as a post type on the website. I would like to allow users to click…
0
votes
3 answers

Masonry layout issues on first load

I'm using the Masonry-layout jQuery in combination with Bootstrap 5 as per docs from Bootstrap. I have used this before without any problems in ACF repeater fields. Now I'm using it in an ACF gallery. The problem is that on first load of the page,…
quinox
  • 43
  • 4
0
votes
0 answers

Using Twig with ACF Flexible Content - Having trouble getting variable to work for tax_query

Im not that great with Twig. So I'm sure I am doing something stupid... Im trying to be able to select a custom taxonomy with ACF inside a flexible content page builder and pull in the posts from CPT "Featured Work." If I remove the tax query, it…