Hi @krakmh
Not certain if I clearly understand your question. However, you can filter posts based on specific custom field values as outlined in the article below.
https://www.advancedcustomfields.com/resources/query-posts-custom-fields/
Let me know if this is what you are looking at.
Hi @gargi
Thanks for the mail.
I’m afraid your problem is not quite clear. Are you able to save changes on the backend?
Have you correctly added the get_field/the_field method to your frontend template?
Kindly let me know more on the issue so that I may be able to advise further.
Hi @bashari10
That is quite odd.
Are you able to replicate the issue on a clean WP vanilla installtion? Its possible that you have some theme code/plugin conflicting with the ACF plugin.
I would also recommend that you check your WP log for any errors that might be related to the issue.
Hope this helps.
Hi @scatory
From your code, it looks like performer is a sub field. Would you mind sharing a JSON export of the field group to shed some light on the structure of the field group?
Hi @c-champeau
It is possible to get any of the field settings and display them on the frontend. Please take a lookat the get_feld_object() function that is described on this page: https://www.advancedcustomfields.com/resources/get_field_object/
Hi @victorak
Kindly share a copy of the code that you have so far, I would be happy to help in spotting errors.
Hi @ckaden
To understand what is wrong with your code, it is recommended to debug it line by line to check whether it is returning the expected data. Please take a look at the debugging tutorial on this page: https://www.advancedcustomfields.com/resources/debug/
Hi @tonymu
Does the form appear?
What kind of errors are reported?
Are you on the Pro or the free version?
Kindly open a new support thread here so that the internal support team can guide further on this.
There are a number of errors on your code, please try this copy”
<?php /* Template Name: Application ENglish */ ?>
<php acf_form_head(); ?>
<?php get_header(); ?>
<div id=”primary”>
<div id=”content” role=”main”>
<?php /* The loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<h1><?php the_title(); ?></h1>
<?php the_content(); ?>
<p>My custom field: <?php the_field(‘my_custom_field’); ?></p>
<?php acf_form(); ?>
<?php endwhile; ?>
</div><!– #content –>
</div><!– #primary –>
<?php get_footer(); ?>
This will create a form to edit the current post
Hi @fountain
You code looks just fine.
You need to confirm the field name is correct and also do a var_dump of the cat_array variable to ensure that the correct values are returned.
Let me know how it goes.
Hi @vygantelo
Thanks for the mail.
I am afraid there is currently no method to load the field group title.
Could you share more on the specific usage so that I may be able to provide more specific support?
Hope to hear from you soon.
Glad to have been able to help.
Feel free to reach out for any other issue 🙂
Hi @horecny
I am going to mark this as a feature request for the developer’s conideration.
Hopefully such an option will find its way into the plugin’s development roadmap.
To edit a certain post on the frontend, you would need to assign the post_id to the ‘post_id’ parameter of the acf_form(). You can then intercept the saved values within the pre_save_post by checking if the post id is the same as the one edited on the form.
Thanks for the mail.
By Hooking into the acf/save_post hook with a priority of higher than 10, you will have access to both the submitted values and the ones existing in the database.
Using this values, you can access evaluate and create new posts using the
https://developer.wordpress.org/reference/functions/wp_insert_post/
Hope this helps.
Hi @dkeys222
Thanks for the mail.
Unfortunately, its not quite clear on the issue that you are having.
Are you able to return all the rows from the repeater? Are you getting any errors?
Kindly share more details on the problem that you are having so that we may be able to provide more specific support.
Hope to hear from you soon.
Thanks for the mail.
Have you correctly set the acf_form options and using acf_form_head method?
Kindly share with us the sample code that you using with the acf_form so that we can assist in
debugging.
Hope to hear from you soon.
Hi @rob1969
1. Yes, the gallery field would be the best approach to implement he carousel using ACF.
2. The repeater would also be the best option for the frontend listing.
Please note that ACF only works to make sure that the field values are accessible from the frontend using the API. The design and the layout is dependent on your sites design and implementation.
Hope this helps.
Hi @rob1969
The Gallery field would make a great fit for the carousel requirement since you would be needing an array of images which is what the Gallery field API returns.
If the features is custom post type, you could make use of a post object field or a relationship field to select the post that you want to appear on the list.
I believe what you are looking for the is the acf_form functionality.
https://www.advancedcustomfields.com/resources/acf_form/
Once the values have been submitted, you can filter the posts based on the ACF choice as outilned here.
https://www.advancedcustomfields.com/resources/query-posts-custom-fields/
Hope this helps.
Hi @barriec7
You are right the fields will appear on the post edit are on the back office but you could go further and create custom page templates which will add more flexibility to how the page layout will be structured. Please take a look at the following resource page for more info on this: http://www.wpbeginner.com/wp-themes/how-to-create-a-custom-page-in-wordpress/
Hi @run4it
Would you mind sharing a copy of the code that you have so far so that I can help in spotting any errors?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.