Acf image url not working Teams. I have a form, which has an upload ($_FILES['watch_photo']) field. Follow answered Feb 3, 2021 at 1:44 Advance Custom Field slider is not working. I've tried the array and the image I Welcome to the Advanced Custom Fields community forum. How to add Lightbox to the ACF Image field 6. Please keep in mind that the shortcode will only work for a simple value like text. Is this not working correctly on your site? the field name, and I can alter it accordingly. I can replicate the issue when creating an excel in teams, opening it in teams, adding a url to a cell and trying to open the url. Programmatically adding images from a URL to WP then adding to repeater field. ACF Photo Gallery Field on WordPress Custom Post Type tutorial. There is one case where it would fail, and that’s if there is no image for ‘large’ and this can happen if the uploaded image is smaller than the dimensions set for ‘large’. To do so, go to I have an acf image field that I want to automatically fill with an image's url that I get from an API. I don't see anything wrong with the code. See example below (based on affiliate_image ACF field return format URL) i choose Image Upload with Custom Fields. You can always leave it as it is and slightly modify your code: You can always leave it as it is and slightly modify your code: I'm having trouble switching an ACF Image field from the default fullsize to the thumbnail image in the HTML output. The WordPress® trademarks are the intellectual property of the WordPress Foundation, and the Woo® and WooCommerce® trademarks are the intellectual property of WooCommerce, Inc. In my templates I can't even select a ACF URL type field from the list, when trying to display the field's value in a template. It is showing me the image id rather than the actual image. What is not working? What is your desired outcome and where do you Everything is working apart from the image uploader. I’m using Divi. Unfortunately, my code does not work, the acf field in my admin still empty. After that, the upload/selection of an image won’t fail anymore. I wish I could tell you exactly how to do this with Once you do that use the code reference I mentioned above and it should work. php: add_theme_support( 'post-thumbnails' ); add_image_size( 'homepage-th Skip to main content. Commented Oct Uploading an image to ACF is not as simple as it looks. Hi! Brilliant, thank you! If you could help with building the filter, that would be great! It’s an ACF image field, Return Format: Image Array, bentangible; October 24, 2022 at 11:32 am; I’m not super familiar with Elementor Custom Skin but it sounds like you’ve made a product loop, but your ACF image field is located on a taxonomy term which means that the image itself isn’t accessible from the product loop and you’d instead need a taxonomy term loop to get that data. The header images on pages are still there, but I can’t add the new images and remove/edit the ones that are in place already. By default, the ACF functions the_field() and get_field() return custom fields directly from the current post. Description Using Dynamic Tags for ACF Images is broken I have a wordpress project that is using ACF fields to pass images/video into a carousel. The same thing can happen with any field type that is more than a simple text value. banjer; You have to set in ACF to get ID of image not URL or array. 12 I'm using the acf plugin for adding custom fields in my posts. Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Hope you could sove your problem, the only thing is that it wont show the link, just the title but clickable to the custom url fiel. Share. I need it But on my code , get_field('field_name', post_ID); not working Instead of this, if I echo get_sub_field('field_name', post_ID), it show the lastest post id's image galleries – Xuanmin Zhu. Looks great but its not saving the image-url, everytime i get only the ID. EDIT: Here's the HTML: I want these images to be editable via the editor in WP. Even though I use the exact same process for text, urls etc. Nothing Recent changes to the core acf_field class have caused a conflict with some 3rd party field types (such as the image crop and component field types) that extend core ACF fields (such as the image and repeater field types) causing the core fields to render twice. All pages use the same template for the footer box, but only home shows the title in the link. 3+ (but hasn't been updated for a very long time) and all the examples are using jquery 1. Important Notice for New Users of ACF Photo Gallery Field. The ACF field groups created in the UI worked perfectly but they disappear when I try to create them within my plugin :/ Don't know if tinybigstudio; November 6, 2013 at 6:56 am; Hi, I´m trying to implement the gallery add-on together with the Magnific Pop up http://dimsemenov. Multiple images or files in a single field will be separated by the pipe ( | ) character. Let me know if the field ID consists of an image ID and URL or just a URL. My custom image field name is homepage_full_width. It is showing no href link. I tried ACF URL, ACF text, ACF phone. I am successfully adding the images to the media gallery but I am having trouble getting them added to each ACF field. As for the custom fields (Using ACF Plugin), you're using the_field(), which automatically echoes the retrieved field value. Its most likely that the 3rd party plugin has released an update to solve this issue, but if not, please add an Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers; Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand; OverflowAI GenAI features for Teams; OverflowAPI Train & fine-tune LLMs; Labs The future of collective knowledge sharing; About the company To use this within your custom theme, open an image tag, call the function and pass 3 parameters: The image ID (I’m getting this from an ACF image field which returns an ID); The image size (I’ve used a custom image size, added via the add_image_size ); The max width (In this case the max width this image is 640px); It will return the src, srcset and sizes Make sure you are returning 'URL' and not an 'ARRAY' for image and URL fields in ACF. You can always leave it as it is and slightly modify your code: There's something not working properly with ACF URL fields in Elementor. You may try this simple function to extract URL value from the custom field's meta. I tried, but its not working for me yet. Ps. Then access variable data based on what you have set the ACF fields to return with array, ID or URL. I want the large image on the right to change to the ACF image applied to each cell when each one is hovered over. So I’m looking for a solution that the URL of the image after select ACF field “IMAGE” or field “FILE” the url of it is autoposted in the “TEXT” field. WordPress ACF Random image from Repeaterfield. Also, in the current version of ACF Pro, the choices now are “Image Array”, “Image URL” or “Image ID” there is no longer an “Image Object” choice when creating a field. Can you confirm that the image field return type has been set to URL in your field settings? The code should also be within the posts loop and if not, you should assign a post id parameter like so: Recent changes to the core acf_field class have caused a conflict with some 3rd party field types (such as the image crop and component field types) that extend core ACF fields (such as the image and repeater field types) causing the core fields to render twice. John Huebner; April 27, 2016 at 3:33 am; If an image field is always returning the image ID rather than another value as set in the field setting then this is a symptom of a missing or incorrect field_key in the database, or of something that is interfering I'm trying get an image URL from an ACF with a custom image size to echo out into JSON. Follow answered Feb 3, 2021 at 1:44 This code example demonstrates how to create a flexible content field using ACF. Changed rating to 1 star. Thanks. The field value is just 0124357673 and has to become tel:0124357673 The link is set to acf url field "subscriber-dropbox" and in the editor, when cursor hovers over, the button rolls and shows "https: The image is displaying, but I'm only seeing the last image in the repeater, and not the specific image that matches the slide I'm currently seeing. If it’s not working then you should contact support over on WPAI. In order to do so, I am trying to use the update_field functi Skip to main content. . 13. John Huebner; September 1, 2016 at 3:38 am; @egr103 If you are returning an image ID then what you’re doing should work, try echoing the value to see what’s there. Commented Oct 11, 2017 at 12:20. I setup an additional field post_grid_featured_image_converted to store the converted image URL in ACF Custom fields for media such as image, video or files uploaded to the media library are saved as meta in the form of an array. The following line is adding the images to the media library and returns the ID of each image And it works as I need it, besides that it is not working with ACF repeater (or in general having multiple comparison sliders on one page, which is what I need) I suppose it's because of the IDs that are needed for the JS, but I don't have enough experience to adjust the code to have it working. png I'm trying to access the picture with If I put the prefix in Elementor "BEFORE" part, it also doens't work with a simple ACF text field. The function wp_get_attachment_image only gets an image that was uploaded to wordpress, it doesn't output an image in the content of the post. I have looked into saving the image into our database using a wordpress function then grabbing the attachment id and passing off to ACF. Would be really nice to have some answers for this. thanks. sc/lap21j. Share Improve this answer I have created ACF Fields for Wordpress User page Text and image When I try to display on single. I have created an ACF field for images in taxonomy = post category. bentangible; October 24, 2022 at 11:32 am; I’m not super familiar with Elementor Custom Skin but it sounds like you’ve made a product loop, but your ACF image field is located on a taxonomy term which means that the image itself isn’t accessible from the product loop and you’d instead need a taxonomy term loop to get that data. wordpress; wordpress-theming; advanced-custom-fields; acfpro; Share. Ok, that was fun but now it’s time to step the complexity (and usefulness) up a notch with Image ID. I also tested with the image file type set to File Object, File URL and File ID for the 'Return Value'. The other methods, using basic object, customized display object, and URL, did not work. Display ACF image field inside foreach loop. I have tried all three different output formats too. I've tried the array and the image I This is set to be an image, and allows the user to add an image. com/plugins/magnific You are now an expert in the lowly Image URL ACF option. The obvious approach is to add 2 ACF fields: ACF Image and ACF URL. I also created a page with Divi Machine Archive Loop Module with the Custom Loop Layout as in the in the attached screenshot. Uses of the WordPress®, Woo®, and WooCommerce® names in this website are for Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers; Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand; OverflowAI GenAI features for Teams; OverflowAPI Train & fine-tune LLMs; Labs The future of collective knowledge sharing; About the company But when I try to show image of a user with a code. So I figured I’d reported here incase its a It's not working. The ACF Docs for the load_field function all revolve I am trying to update image fields within a group in ACF via the update_field function I am successfully adding the images to the media gallery but I am having trouble getting them added to each ACF . alt-text; title; caption; description; Probably not a good practice but for the record if you were to use one of these fields as the source for your This is probably a really simple PHP problem on my part (still learning PHP), and I apologize that this probably isn't an ACF issue more but rather my not knowing enough PHP, but I don't understand why this isn't working. ACF Image URL not working in search results. Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, Bricks Version: 1. What you need to do is use a title bock instead. Open a Does not work inside ACF fields groups. Use this anywhere you don’t need fine control or alt text, something like a background image would be a good fit. This function will take a little while to create so I am looking for potential otherways of handling How to get the URL from an image with custom image size to use as a background-image from AFC? Register size in functions. It should be a fully qualified URL. Not entirely 1 WP Engine is a proud member and supporter of the community of WordPress® users. It defines two layouts: “Text Block” and “Image Block”. Since your img is inside of a Strange thing is that when I add an URL in the "fallback" input field, that actually works. and it didn’t work. Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers; Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand; OverflowAI GenAI features for Teams; OverflowAPI Train & fine-tune LLMs; Labs The future of collective knowledge sharing; About the company When you receive the response, see the ACF item which contains ACF photo gallery name and array of images. Hey, Why does the ACF custom Image Field doesn’t allow adding images from URL? but there’s option to add this while writing post and on page editor (even both below Importing into an ACF Gallery field is only possible with our ACF Import Add-On, which is a paid plugin, so we wouldn’t be able to answer questions about it on this forum. For example, I have another sub field in AFC called column_1, which I retrieve using How to get acf's gallery images url from post page id in wordpress. There could be The text block on Elementor won’t work for ACF url fields. 4. If you are working with a form the provides image uploading or you’re just coding something that needs to storage an image in an file wp_get_attachment_src() does not fetch any data about an image besides the URL, height and width. To use them to get fields from other places, such as taxonomy terms, options pages or - in your case - media attachments, you 1 WP Engine is a proud member and supporter of the community of WordPress® users. Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers; Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand; OverflowAI GenAI features for Teams; OverflowAPI Train & fine-tune LLMs; Labs The future of collective knowledge sharing; About the company I am trying to update image fields within a group in ACF via the update_field function. Thats a Problem by getting image url for other plugins cause than i get only a number I choose Img-Url (in German Bild-Url) I dont know what im doing wrong or something but its not working Version: 4. Have a nice day. You might want wp_get_attachment_metadata() however I think you would be better off changing your ACF field to return an Image Object (actually an array) instead of the Image ID (as I assume you have it now). If you crop the image in the admin interface, and if your template calls for an intermediary image size like 'large', and if that intermediary is not found, probably because the original didn't have enough pixels to make a 'large', Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers; Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand; OverflowAI GenAI features for Teams; OverflowAPI Train & fine-tune LLMs; Labs The future of collective knowledge sharing; About the company Hello John! Thanks for the code. Can you please help me in making the function work with an image url? Thank you. 1. Details below. Yesterday everything worked fine – I could upload the images, and today I don’t see the Image Upload button in my page editor. i have to upload 3 images into post as custom fields. Improve this answer. By default it tries to pull the ID of the page get_field() is on. Is it because ACF pro is not activated? Is there any other way to do this? Thanks in advance . The most I've got a custom field set up using Advanced Custom Fields - the field is named "Company Logo" and is an image field which is returning an image url. Here is the code which outputs the image url correctly in a loop. But how do I turn them into one ACF Block for the image with a custom link? Do I really need to register a new rest field (as described in your stickied post)? In any case I cannot get it to work. array, url, and id. Use this anywhere you don’t need fine control or alt text, something like a background image would be Image field should return image url, not id or array. Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted What's happening is that each time you instantiate a new background image in the inline-block css it overrides the next one. Where did I do wrong? Advanced Custom Fields has a useful total of 3 different ways to work with images and a rather less useful total of 0 clear explanations for how to use them. I found a solution and its only for sometime till updates by author, simple javascript code editing – hope the author of the plugin takes this into consideration – for today and we us as community can contribute and live by it forever. To customize your export file, select fields from Available Data > ACF and drag and drop them into the export editor. James; December 20, 2016 at 1:53 pm; Hi @silencesim. Exactly as @Stender commented, attempting to store variables using ACF the_sub_field() will not work. Im working with ACF pro where I have selected Image URL as output format but I get the image ID. I'm not worried about the register form, I accept that the user won't upload the image when registering, but I need them to be able to edit/upload the image when editting their info. Then: Remember that if you registered the image size The problem begins here: I want to show another image when the @media <768px is triggered, so I tried to add and change the background value with another ACF Image Field or even another fixed img directly from the media and it's not working I still have the original image shown on screen. Follow edited Oct 5, 2021 at 9:41. All settings failed to invoke the PHP resulting in no HTML output. This is what I have been doing and it seems to work most of the time but I can't get it to work this time. The “Team” page is using the following code to pull select ACF fields for each team member from their bio page. Would anybody be able to shed any On the ACF Field, click the wrench icon and select the key (custom field) you want to display. When I use an image url the function works properly. There should be 5 images (therefore 5 rows in the repeater) but the repeater only contains one row with the last image. It basically takes all relevant information so it is re-usable in the I am using Wordpress ACF plugin and I have custom products section and I put a custom field for featured image and it's working perfect. But when I try to ‘connect’ that Image ACF field with the Webflow Image Element in Pinegrow using the ‘Display ACF Field’ action, it does not work. Link here Siegfried; November 7, 2019 at 8:05 am; The more I use ACF, the more I like (and understand) it but now I’ve got a small problem. I literally was only able to get this to work by rolling back to an older version All reactions. Hot Network Questions Why was Jesus taken to Egypt when it was forbidden by It is one of two things. The URL is showing instead (see attachment, the CF is just under the product price). That being said, you can switch back to the older version of Elementor. php template it is not working. 0. This is what I have: If you select image array or image url it does not change anything, the latest update broke the image content type and now it only shows image id. Solution 2: Switch Back to the Older Version of Elementor. Do I need a flex slider plugin installed first, in order to render the [] To clarify the above, but ACF image field is set to object, and it is called test_image. Also, I know jQuery 3 has removed a lot of stuff as support for the older browsers has been dropped ACF Image in Repeater not working. I just double-checked and resaved the pages. Issue 2: When using "image widget", no image shows when "ACF image field". So, if you want to use the image field in the shortcode, you need to set the image field Return Value option to “Image URL”. s I've got a custom field set up using Advanced Custom Fields - the field is named &quot;Company Logo&quot; and is an image field which is returning an image url. Commented Oct 25, You can set the Image URL in ACF field like this from admin. If you are installing the ACF Photo Gallery Field for the first time on your WordPress website, we’d like to inform you that this plugin will no longer be maintained as of October 2024. A few instructions: add 'Advanced Custom Fields: Extended' plugin to your site (you can easily create options pages using this plugin, or if you wish you can add them manually via the functions. ACF Image field essentials 2. Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers; Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand; OverflowAI GenAI features for Teams; OverflowAPI Train & fine-tune LLMs; Labs The future of collective knowledge sharing; About the company Trying to create an image that can be reused multiple times on different pages throughout the site through it's url. The output of this function will be an array. Theme: OceanWP (but also happens with all others I've tested, Twenty Seventeen, etc) Issue 1: When using any widget with "link" option (icon, button, etc), using dynamic ACF URL field data from options page does not work. On the ACF Field, click the wrench icon and select the key (custom field) you want to display. but unfortunately didn't work. Open a new forum thread If an image field is always returning the image ID rather than another value as set in the field setting then this is a symptom of a missing or incorrect field_key in the database, or of something that is interfering with ACF formatting the value as you want. I created a custom ACF Field called 'url' under the user registration data section which will carry the facebook homepage of the user . I'm trying to programmatically add images from a URL to the Wordpress media library (that part works) and then adding each image to a repeater row of ACF. When I select Image Array, same thing happens, I only get image id. When I create a ACF field “FILE” then the result on frontpage is the url of the selected image file, but it’s not working with Nextscripts autoposting. Not For Lack of Trying You are now an expert in the lowly Image URL ACF option. All the content links work absolutely fine, just so long as its text based. udaythec; March 22, 2022 at 10:15 am; Hi Nick, I have the I added a ACF repeater field called "Eye Condition Type" with the variable "ect" above are the values of the repeater fields: text, text area, image, url when trying to display @VasimVanzara i use 2. As we mentioned above, it’s probably a bug on the newer version of Elementor that you can’t add a custom field to a page. The image module is not populating the image that I set on ACF field. Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers; Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand; OverflowAI GenAI features for Teams; OverflowAPI Train & fine-tune LLMs; Labs The future of collective knowledge sharing; About the company Installation. php file by referring to the ACF documentation) Once installed, go to 'Custom Fields' > 'Options Pages' and create an options page So I have installed ACF plugin to insert extra field. The image is uploaded to the ACF field, but I just get a gray square instead of the uploaded image. here's my code to submit post from frontend using ACF, all of this are working fine in desktop but when I tried to post using phone the image appears in media library but not in CPT, does anyone here acf allows you to store image url also, you can handle your custom avatar upload via media_handle_upload() function in wordpress and insert the url into acf field – Piyush Rawat. Skip to main content . Did you get any feedback form someone who asked you? Since there is a minor typo (post_grid_featued_image) i was wondering if it ever worked. In this case you need to tell it what taxonomy and term you are specifically targeting. I've tried the array and As the topic suggests, when you attach an image, you only get media id on the response, which is fine if that is what you want. Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their Make sure you are returning 'URL' and not an 'ARRAY' for image and URL fields in ACF. I've got a custom field set up using Advanced Custom Fields - the field is named &quot;Company Logo&quot; and is an image field which is returning an image url. 5. 1. You could do something like this: The image link we are pulling is a simple jpg but you can't obviously load the url into the media library. Try Teams for calls, but image does not seem to be a field even though get_sub_field('still_image_url') and get_sub_field('image_link') are already pulling in the respective data I have used ACF plugin to add custom post meta box image field. Of course, if you prefer to work with the image array that ACF returns, that’s fine as well. Follow edited Oct 19, 2017 at 20:55. Am I missing something simple here or is what I am trying to do not possible with all import and ACF image fields? John Huebner; November 21, 2021 at 11:24 am ; The URL for the image should work. Now, when in PHP, I am trying to retrieve the input the user adds. Specifically "image" and "url" --Bug Report. How can I display my image? snippets of code, questions and answers I'm trying to get an image asset shown on the front-end using the wp_get_attachment_image WordPress function, but it doesn't seem to work with my options page on ACF. Adding links within ACF Image Caption. ACF Images not showing converted webp paradoxdigital (@remowebdesigns) 1 month ago Hey, Not sure if this isn ACF issue or a WebP Express issue, but when displaying images on the frontend, which are Everything works perfectly Except for the image field. Each layout has its own set of sub-fields. When I click on the ‘add image’ button it bring up the select image modal window but when I click on the ‘select files’ button nothing happens. How to use Elementor dynamic tags with ACF Photo Gallery Field plugin tutorial. Also, where have you saved Might be ACF bug but it most definitely looks like menu_image return format is set to Image ID, not Image URL. ACF can return any of three things for an image acf_photo_gallery is a helper function that takes in ACF_FIELD_NAME and POST_ID will query the database and compile the images for you. How can i display post thumbnail image using this custom field image. ACF Image field support in Themes and Builders 5. Simply does not saving any selected images. When I add the 'create carousel/slider' code shown in the documentation to my template file, the output is just the full-size and thumbnail-size images, unformatted as a list. Duplicates and ACF Image field 4. As for ACF accepting invalid (non-URL) data in oEmbed type inputs, you can write a custom validator to raise an error, if needed by implementing a filter: acf/validate_value. I’m trying to import several images to a custom field (ACF Gallery) via CSV by image URL, I tried to use the ‘url,url’ format but it’s not working, I guess uploading it to WordPress and putting the image ID would work but there are a lot of images and I can’t upload them to WordPress, it must be an external URL. I have looked around and came to put this function together. Modified 7 right. James; December 29, 2017 at 3:22 am; Hi @suresh. I need to copy the image-url from the options page to the featured image of a new post. Installation and basic usage tutorial. Try Teams for free Explore Teams. I wish I could tell you exactly how to do this with By default in Wordpress attachments like images have four editable text fields available:. The reason I’m not using a Logo module is because that didn’t work either, so then I tried the image module and that also does not work. Prerequisites I have searched for similar issues in both open and closed tickets and cannot find a duplicate. user12208384 user12208384. css - storage - other_images - image2. In the admin panel where the field groups and fields are defined, you have to set the preview image of each image field to “thumbnail”. advanced-custom-fields; Share. Currently using ACF to create an image field on a page where the file is located, from there using an ACF shortcode placed in the scr="" to output the image. I have two ACF fields hero_image and thumbnail_image. That being said, you can switch back to the older version of I started having the same problem today. At the moment it's only adding the last image to the first row. Example is below "acf": { "header_image": 45, }, IMAGES NOT SHOWING UP If you have set this to ‘Image Array’ or ‘Image ID’, your above code will not work. Code snippets for I installed the Gallery add-on, and created/populated a new gallery field in ACF. 2024. However when I try to use it in index. Trying to pull alt and title tag for a image via ACF using the image array. com for example) So how did your discussion turn out? :) I'm encountering the same problem as the OP: I exported my ACF field groups to PHP, created a function from the code, put it into my site-specific plugin file and hooked it with the acf/init action. Follow answered Oct Hi There I am trying to make a background image be choose able via an ACF rule in my block editor via WordPress. I have included my attempts, though I have very limited php/js knowledge so it's likely not even close. After sending the request it returning 201 (post is created) but extra field value remaining empty(not updating). This CPT is then related to another CPT via the Relationship field. Steps to reproduce. As a side note, I have tried different ways to retrieve the image by changing to Image URL, Image ID (in the ACF custom editor) and so on, but no luck, so I returned to the original format I tried to get the image the The issues was that I created a group called "about" and the "cards" were nested in that group and to access that field I needed to use "about_cards". all image ACF settings are same for both post and user image field. But you are hiding it with your: #post-img a { display:none; } This is simply telling every a inside of #post-img, that it should not be shown. ACF field: slajder Subfield with img repeater: obraz_slajdera Page id: 721 ACF fields are automatically detected by WP All Export. These are set to appear on all pages and posts including custom post types. Stack Exchange Network. Here is my code: <?php I did some further digging and found my problem. 2 All system requirements are good. I have created a Divi Library with ACF Image module with the settings in the attached screenshot. I would like to guess that it is making Hello. I have created an image field that allows the user to upload an image; I also want to give them the Here is my folders structure: - var/www/project - public - images - image1. 701 4 4 I added a ACF repeater field called &quot;Eye Condition Type&quot; with the variable &quot;ect&quot; above are the values of the repeater fields: text, text area, image, url when trying to display what possibilities are there with the FIFU plugin to have normal images, created from ACF fields to use a external Image URL? I only saw the featured image working and in the Pro Version there are also no hints that its working with it. Also, where have you saved the image data? to a post, or something else? do you have “the Return Value” set to “image url”? –> if you switch to “Image id” what do you get? jimario; April 3, 2014 at 12:33 pm; Might be ACF bug but it most definitely looks like menu_image return format is set to Image ID, not Image URL. You can use, in other hand, the get_field() function, which just returns the value of the field. And a href does not appear in the code. I have an image upload field on a CPT and have selected the “image URL” for saving, that’s what I want to use in my templates, not an array. php; wordpress; advanced-custom-fields copy and paste this URL into your RSS Each table cell on the left is an ACF field that consists of a title, description, link and image. Now I want if there is no featured image inserted then show a default image, I am using the following code but its not working. I've setup a new ACF group just if image attachments as described in the ACF knowledge base. Browse through ideas, snippets of code, questions and answers between fellow ACF users. I have written a loop which outputs these images and works. Greg36. This occurs when trying to open a url to another file or website (www. Luckily both WordPress and ACF make this really easy: I know alot of people are not able to get the plugin ACF Photo Gallery Field – work including me, for uploading images at the backend. The problem I’m having is that I use Search & Filter Pro for search results, and in the template that displays the results that method and code does not return the URL. Updated 05. Except the uploaded image is even smaller than 150×150 pixels (the standard size of the WordPress thumbnails). Put the tittle you want and select the custom field for the url on the url field on the title block. Thread Starter harjapaa (@harjapaa) 11 months ago. The issue still exists against the latest stable version of Elementor. Image fields export the URL to the image or file. Also, if a lot images was added, sometimes spontaneously losing all of them when saving the post. I have changed Return Format, but not work. 8 - i can add acf field to wordpress widget and my pure wordpress widget without acf field it works in elementor but if i have acf field in any wordpress widget that field not showing in live elementor editor – I'm trying to create a custom field that when the editor loads, the pages/posts featured image url would be populated in the post if it exists. google. This works fine. Its most likely that the 3rd party plugin has released an update to solve this issue, but if not, please add an Issue seems to only affect new teams user. Classic teams users do not have this issue. 4. I would suggest writing inline background image on the element for each slide, this will stop the css from overwriting each other. Ask Question Asked 7 years, 3 months ago. This ACF field type is compatible with sorry, the "button" was specific to the footer box. Sorry When you use ACF with posts you can just use get_field() as you are, but when you use it with anything else such as taxonomies, users or options, you need to give ACF a hint about how to look it up. You need to add the ID or options to the get_field() as a parameter or you need to adjust the return format. I have a banner gallery assigned to every page using a Repeater Field with a fallback to the gallery assigned to the home page if no images have been uploaded to the individual page. First of all: You are using the PHP and ACF correctly, and the thumbnail should be populated. In my case, it's not even working appending ?acf_format=standard at the end of request. Probably the coolest feature of Image ID is that this one will generate the srcset attribute for I'm trying to programmatically add images from a URL to the Wordpress media library (that part works) and then adding each image to a repeater row of ACF. I cannot get this to work for the life of me I must be missing something stupid any help will help here is what I have at the moment. I’ve attached a screenshot for your reference. The first bit of code was copied/adapted from a previous project (where it works) because trying it this way didn’t work in the previous project. Uses of the WordPress®, Woo®, and WooCommerce® names in this website are for 1. it just shows me image id, not image. Does anyone know how to add and external link to an image that has been uploaded to a post/page? This would not be a gallery. Everything works ok in the back end however. 0. I am also new to ACF. You have to output the content of the post for your example image. Many thanks to all the people in ACF’s support forums, StackExchange, and StackOverflow who provided the original answers to all of these questions. Improve this question. I have added an image field typ in ACF Pro and I have chosen that field in the dynamic selection in the image element in Brizy, but the uploaded image does not show. (1):The image will be used as the avatar, I won't use the regular WordPress avatar. I have included the acf_form_head(); at the top of the page. But the Image does not become a clickable image to the ACF URL. Basically put, this is effectively for my website’s “meet the team” page. Compatibility. Commented Oct 11, 2017 at 12:46. I’m doing this on a header template, not sure if that could be it. Not a wordpress guy, but seems like wordpress prevents expanding/executing shortcodes with parameters within html attributes, maybe this could work as workaround if you can put php code there: As you can see, the title and description output just fine, however the image field does something weird when added to the code and essentially makes everything disappear in the browser when used. All fields are working except the image which is set to return an I’m using it on the User Profile page so that authors can upload a profile photo, but having trouble getting it to display in the bio area because it’s just echoing the image ID, not What setting do you have for the return format of the image field? If you have set this to ‘Image Array’ or ‘Image ID’, your above code will not work. The images in the else statement work, but as soon as I add an image using the ACF backend on the particular page, I just get the broken image symbol and no image displayed. png - style. php its not showing nither image or text is showing below is screenshot for refrence. Use cases of the ACF Image field 3. Use get_sub_field() instead to store returned ACF field data to your variables. https://prnt. This time it did. find answers and collaborate at work with Stack Overflow for Teams. I'm trying to show the ACF repeater image in the dynamic slider in oxygen via the PHP function from the specified page id. I’m building a simple “Links gallery” using ACF. Are you sure - it just says 1. asked Oct 5, 2021 at 9:32. I think It's better to use query_posts() as you can use The Loop default structure. On a set of logo images in my media library I've added URL's to the images by filling in the ACF field (the full web address, including https The image in custom field is not showing. when i have taken them as a text field and paste their URL to custom text fields these are working fine and showing up on my frontend. I have a var for an Organization's county, but I only want to display it [] Pro tip – you might save some performance if you choose to return only the image ID for your image field instead of an image array in your ACF field settings. Not sure why it's returning with false when I'm trying to query back the data. so what is actually the question? please edit the question and clarify what is it you are actually asking – Mark Kaplun. – Peter. TrishaM; May 3, 2016 at 4:39 am; Greetings. I've redsun; November 5, 2014 at 8:28 am; I have a similar issue having just updated to 5. So I installed ACF and added Image Fields. Okay, ignore my message, I've fixed your code. smli zsrj lwxqz ezmth qcuufk vjpys nhd brxaznb mdftbd pjgqde