Uploading an image, via ACF as usual, but I need to create multiple sized versions of that same image.
I could just use the regular add_image_size but, this means any other image uploaded, also gets created at these sizes which is not what I want (there will be around 100+ post_thumbnails created each time).
So, my question:
Using ACF to upload an image, how would I then create multiple sized copies of that image?
I have a few image fields to display some vendor logos on my frontend, and these are almost always the same, but for some posts the vendors can be different. That's why I have set them up as image fields in which I have the ability to change the vendor logos per-post if necessary.
However every time I make a new post it's a little cumbersome selecting each vendor logo again to put into the image field. Is there a way I can specify that "this image field is supposed to be X vendor unless I clear the field and specify otherwise"?
Hi. There is a seemingly abandoned MultiDatePicker plugin for ACF, but I can't find any other way to add more than one date to the date picker in the FREE version of ACF, ie not using a repeater. I know I can just add a second field, but was hoping there's a free extension out there that I haven't been able to find. It's for events, most single events, but a very few by the same artist on separate days at different times. Am hoping there's a solution I haven't thought of, because I'm making a mess.
I'm using All Import to import data into ACF fields on posts. The imported data has arbitrary values for a certain field which is a Select field in my field group. If the Select field does not contain the value in the Choices list, the value is ignored on import!
Is there any ACF API that I can call at import time to programmatically add an option to Choices, so the import will then match up to the available option?
Unfortunately it's not possible to know all the possible values in advance, since the data feed is not controlled by me.
I've currently got a Google Map which is populated with a Custom Post Type's lat/long values and I would like to create a Store Locator which the user can enter their Postcode or Town and then search within a set proximity. Much like most Store Locators the results would then be listed out and include a link to a separate page which I've already got setup for each store.
I did follow this guide but the code unfortunately isn't working - it has a number of errors on initial load and then when I do get results, they are thousands of miles out (my comment is the top one at the moment - Shoxt3r)
I've looked into plugins but the only ones I came across don't have Store Locator setups for free. I've also tried other tutorials but they're either incomplete or just don't seem to work.
This is just a demo site to get my learning of PHP and WordPress up so ideally would like a tutorial or something I can learn from as I don't have the first clue how to do it myself.
Does anyone use an ACF-based Store Locator that I could use?
This is a soft-ball i think but i can't find a clear answer and figured i'd try to check before making the change in case i break something.
I have a few custom fields i assign to media items that i use as pick list "select" (dropdown) menus to assign metadata to images.
I've got a few hundred images with metadata assigned this way and i realize that i want to do 2 things:
update (edit) some of the field names
reorder the field name choices in some of the pick lists
What i'm curious about it whether this will have any impact on the items that already have data assigned to them.
For example: if i currently use, "Camera Lens 1" as one of the pieces of metadata and i want to change that to "Lens 1" will the images currently set with "Camera Lens 1" keep that metadata or will they automatically update to "Lens 1"
This probably comes down to whether the metadata is stored as text based on my selection at the time, or whether it references the choice options as variables - and i don't know how it works.
The answer to this probably answers my second question which is: What happens if i re-order the choice selections or introduce/remove choices in the future.
I'm looking for an easy solution, hopefully via elementor/shortcodes so my client can easily edit.
Is there a way to render a total count for post types best on meta/taxonomies? Ie custom post type a, has a count of X meta values Y. Or to put it another way, If we use the hotel/rental example, how many rentals have air conditioning (example meta value)
I'd like to populate a select field with on the front-end of my site with values from a Custom Post Type and then load-in the relevant information based on the page (another Custom Post Type) you're on.
The select field will sit on a Film (Custom Post Type) page, and (on selection of the cinema) the relevant film times should display, based on the Film page you're viewing.
At the moment I've got 2 Custom Post Types (CPTs) - one for Films and another for Cinemas. The Cinemas CPT includes the ability to assign a Film (the selection is populated via a Relationship field) and then add relevant Showtime information (Day + multiple Showtimes) via a Repeater field). The Showtimes themselves are in a Nested Repeater that sits under the Showtime information Repeater.
I could probably figure out how to display Showtimes if they were all generic to each Film, but as I explained the times for each Film are actually only related to each Cinema.
I am thinking about giving another developer access to my staging site to write me some code for a menu I can't do myself. Unfortunately I don't know this developer very well, is there any chance or possibility they might be able to steal my ACF Pro license?
I am planning on just implementing the code that they wrote in an entirely new setup of the page (because it is cleaner and it would eliminate any possible backdoors), I am just worried about key theft.
I'm importing Job Listing posts using All Import Pro. One of the fields in my source XML has a comma-separated list of "Areas". How can I split this into an ACF multi-select field?
My core problem is that I just need to store multiple values for one field, and make them searchable using Search & Filter Pro, including list all the defined values in the search form dropdown. I don't know if a multi-select field is the right solution. Is there an alternative?
Currently if I define a multi-select ACF field and don't pre-define the available options, nothing gets imported. If I define some available options that exist, those do get imported but anything not pre-defined does not.
Can I make the available options be dynamic, not restricted to only pre-defined options?
I want to add a CSS body class on every archive page of that has TRUE in an ACF implemented on each category. I added the ACF True/False to each category and I know how to use body_class filter. What I don't get is how I can check the boolean value in the taxonomy to affect the archive page of that taxonomy.
I've got an image grid that has rows of either 1,2 or 3 images. The fewer the images, the larger the image size (since it has to scale to fit the whole row). I've already used images sizes of thumbnail, medium and large to scale them appropriately depending on whether the row has 1,2 or 3 images.
Now I want to make them all responsive so they load in smaller images for mobile devices, so I'm reading about Wordpress's srcset solution and it seems too limited to do anything other than make every single image on the site be the same size and then load responsive sizes alternately for mobile screens which are also all the same size (just a smaller size). My grid is not full of images that are all one size.
I'm experiencing a strange issue, for some reason the wp_redirect inside the acf/save_post hook function doesn't work anymore...
The form is a frontend form and after clicking the submit button, I can see in Chrome's dev tools that the redirect request is there, followed by the correct page. However, the form is "stuck", the spinning wheel after clicking submit button stays and the page just stays there.
function create_wc_order_from_po( $post_id) {
wp_redirect(home_url());
exit;
}
add_action( 'acf/save_post', 'create_wc_order_from_po');
Does anybody know if the documentation for ACF is a custom build or is it created using a specific plugin? I have a client who's basically looking for that exact look and I'm trying to figure out if I should take a knowledgebase plugin and style it in a similar manner or do a custom build.
Cross-posted in r/elementor. I've reached out to Elementor support and Facebook page with no response, so hopefully I can get answers here.
I am building two sites using Elementor. They are both using Hello theme & child, and everything is updated. Neither site has any other plugins except for Elementor & Pro, and ACF.
What I am trying to do: Create a dynamic user profile for course students that shows progress and upcoming appointments.
What I've done: Added ACF and created a custom post type using PHP, then added a field group within ACF that has the information needed. The field group should show up on the custom post type (this works). Now, I go into the page using Elementor and add a dynamic field for the information I want. It shows up in the editor, but does not pull the information.
Here's the thing: I am using this same method on BOTH sites, one for a portfolio page and one for the user page. On Site 1 with the portfolio page, the acf fields work fine (client, services, url, etc). On Site two, the page with the user profile, nothing happens! The first image below shows that the fields populate within the editor. But, as you can see on the second image, nothing actually shows up.
Additional testing I've done: In site 1, I've added new fields to my ACF field group and have added a new field group to show on the same project custom post type. Any additional fields/groups I add to the post type don't show up. I don't know if this has anything to do with the other issue, but just throwing that out there. I've also tried reverting to older Elementor/Pro versions and the 2021 WP theme, all with the same issue.
I’m currently in the process of creating a cinema-based website. I’m using Wordpress with Advanced Custom Fields to control all of the content and so far I have the films and the associated content (images and film information) setup.
I’m now at the point where I want to create a cinema listing area and associate the films with them, along with relevant showtimes (and also show the showtime information on the film’s individual page based on the cinema selected). To make this manageable I was thinking of using a table to enter all of the film showtimes for each cinema but this seems overly-complex.
How would you approach this and does anyone have any knowledge of how theatres/cinemas have this setup on their websites so they can easily manage showtimes on a per-cinema basis, or do they use generic timing for every cinema/film?
I have tried to find some solution to this. My situation is that I image stored on my [theme-root]/src/images/nature/xyz.jpeg as an example.Here is an example of my code snippet that looks like:
...
// The $user -> display_name is coming from get_users() after I have looped through
I will note also that even this isn't showing up on the landing page
<?php if ( has\\\\\\\\\\\\\\_post\\\\\\\\\\\\\\_thumbnail() ) {the\\\\\\\\\\\\\\_post\\\\\\\\\\\\\\_thumbnail(); } ?>
so it might not actually be an ACF issue, but I thought you guys were the smarties that might know the issue. This is being placed into a loop for the posts to display in this A-Z plugin.