Hi guys,
I’ll be looking into this shortly.
In the meantime, are you able to help out with this issue?
Please upgrade to v4.1.7 and edit the ‘core/controllers/input.php’ save_post function. Some simple debugging will reveal why the acf/save_post action is not being run. Perhaps one of the if statements is failing?
Is the issue with your code:
$instance['87']
Shouldn’t it jst be 87?
As in
<?php the_field('facebook_url',87); ?>
Hi @Darpan
Sorry, I am still confused.
Footer is not a page, but yes it is included on every page. That is the role of a footer.
Can you please re explain your issue clearly?
Hi @Darpan
Sorry mate, I’m not following what the issue is.
You have a page for all your social data. This is acting as a ‘static’ page and has an ID of 87, arn’t you trying to always show the ‘static’ social data from p 87 on all page’s footer?
Hi @hennell
May I ask which version of ACF are you using?
This error has been fixed in the latest few updates
Hi @LeffDesign
Can you confirm that you have registered your custom field type correctly in the register_fields action?
It sounds like your field type is being created before ACF plugin is loaded.
Hi @Ailsa_C
This is not an issue regarding ACF or an inability to load data, but a question on how to use HTML and CSS to create a design.
This question would be best asked on another forum such as stackexchange as this forum is for issues regarding ACF.
I agree that you are using ACF to create the HTML, but I don’t offer free support foru basic CSS / HTML help.
Thanks for understanding
Cheers
Elliot
Hi @kenchase
Perhaps you could share your code to help identify the problem and solution?
Thanks
Elliot
Hi @Darpan
To load data from a specific page, you need to use the $post_id parameter to target the location of where the data is saved.
You can read more about this here:
http://www.advancedcustomfields.com/resources/how-to/how-to-get-values-from-another-page/
Does this help?
Hi @rafael401
I don’t think you need a post type for rooms.
Just have a post type for buildings and renters. Then connect a renter to a building with a ‘metadata’ of ‘room’ = ‘whatever’.
Because the connection information is setup in your functions.php, you could dynamically create the room choices!
Hope that helps.
Hi @rafael401
The relationship field will only be able to save data about a post_id, so unfortunately what you want to do is not possible with this field.
Essentially, what you are describing is a relationship from a render to a building with metadata on the connection. The metadata states the room in the building.
I think a solid solution will be to use the posts 2 posts plugin instead of the relationship field.
It is a very flexible plugin which requires good PHP knowledge, but has good documentation so it’s not too hard to get started with it.
That plugin will allow you to create these connections with the extra ‘meta’ data on each connection.
Hope that helps.
Hi @harini
Thanks for the detailed description of the issue.
I believe the the solution is quite simple, and is the fact that you care using the wrong $post_id parameter to load data from a taxonomy term.
Please read over this article and pay special attention to the post_id param:
http://www.advancedcustomfields.com/resources/how-to/how-to-get-values-from-a-taxonomy-term/
Your post_id param should be
'category_' . $category_id
Thanks mate.
I’m actually using font awesome (but also a sprite sheet for some icons)
I’ll add the x2 sprite today!
Hi @Jaace
I would look into checking that the ACF JS is being included on your page. You can check this in the HTML source and also by using firebug to test if ‘acf’ is a JS object
Thanks for the code!
Lookign forward, what would be the best way to integrate this into the options page?
Do you think a filter to enable / disable the options page parent?
Thanks for the feedback. I agree completely!
ACF 4.2.0 will include 100% compatibility with images and custom fields. This will allow you to attach meta data to images much better than you can at the moment.
With this, the gallery field will recieve an update to allow for editing of the extra attachment fields!
Hi @evzin
1. Yes, the multi-site license allows you to use the add-ons in all web projects you work on. You can also incude the add-ons within premium themes, however, this may change in the future with an introduction of a developer license.
2. Yes, all add-ons will recieve updates
3. ACF is required for the add-ons to function. Think of it as a limb needs a body to work.
4. Yes and No. The flexible content field can replicate all of the repeater field functionality except it’s user experience. A client will be much happier using the repeater field to upload images / files at it supports multiple file uploads / quicker to add rows. Also, the code is simpler in the templating.
5. You may us the message field to add HTML to the options page!
Thanks mate,
I like both the ideas. I’ll have a look at adding these in.
Hi @zquintana
Great work on the code. Would you mind editing that reply and marking it as the topic solution?
Thanks mate
This isn’t natively built in, but there is a work around I have used before.
In the gallery field, upload an image to be used as a ‘video placeholder’. Then place the video data into the image’s description or caption.
That data will be loaded by ACF for the image which you can use the output the video!
Currently the image and file fields have an option for the lobrary to be restricted to ‘uploaded to’.
This will soon be added to the gallery field.
P.S. May I ask why you did not set this topic as a question, but as a post?
It sounds like a question to me
Hi @darkwoods
I don’t understand the requirements of your data setup. How doe sub category relate to the categories?
Perhaps you could use nested repeater fields? Each category can have a repeater for a sub category.
Thanks for the feedback, I’ll look into adding in the 4rd param for get_fields
A few tips:
In the future, if your topic is a question, please do not mark it as a post. Can you please edit this topic and set it as a question so it can be marked solved once complete.
I would use the get_posts function which accepts the WP_Query args to find the posts. There are args that allow you to search for custom field values. There is even documentation on the ACF site that talks you through how to query posts based on custom field values.
On that note, did you not search before posting this question?
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.