New home › Forums › Pro Add-on › ACF Integration: limit import by post category (or other taxonomy)?
Tagged: ACF, categories
- This topic has 2 replies, 1 voice, and was last updated 3 years, 3 months ago by Perry.
-
AuthorPosts
-
June 15, 2020 at 3:08 am #59679[email protected]Participant
We need to show several different datasets (and maps). I would like to be able to create maps from ACF fields on posts, as per your docs page, but I can’t seem to limit the posts that those fields are imported from?
For example, if I had two categories (hypothetical):
– Venues
– Restaurants… I would like to be able to import data into a map, ONLY from the Venues category. And similarly, import data into another map, only from the Restaurants category.
Further, I’d like to be able to set up a schedule, or at least trigger the re-import when posts in the relevant categories are saved.
I’m happy to write some code to do this… are there are hooks you can point me to that might help?
June 15, 2020 at 7:32 am #59686PerryModeratorHi Adam
Thank you for getting in touch.
Unfortunately we don’t support filtering imports right now, however we will add this to our feature request list if that would help.
We do have this experimental plugin which will allow you to filter based on post category
https://github.com/CodeCabin/wp-google-maps-force-wordpress-category-tree
You could use our plugins shortcode attributes to show one category on one page, and one category on another page.
I see you mention triggering re-import upon save, if you use live integration (as opposed to scheduled imports) then our plugin will pull data directly from your posts, there’s no need to re-import.
If we’ve misunderstood anything or you still have technical questions please let us know how we can help!
Kind regards
– PerryJune 16, 2020 at 4:08 pm #59717[email protected]ParticipantThanks Perry, I’ll check out the plugin.
add this to our feature request list if that would help.
Yes please! Since we have several datasets with thousands of data points each, I think it’s probably going to be a bit slow to just munge them all into one and show/hide categories based on the shortcode…?
Can you please clarify how to use live integration?
- This reply was modified 3 years, 3 months ago by [email protected].
- This reply was modified 3 years, 3 months ago by [email protected].
June 17, 2020 at 7:20 am #59731PerryModeratorHi Adam
You can read our documentation on that here
Documentation – Advanced Custom Fields Integration
If you have any questions please do feel free to ask!
Does that help?
Kind regards
– PerryJune 18, 2020 at 4:07 am #59776[email protected]ParticipantThanks Perry. The team has decided they need to use a Google Sheet to manage data, so unfortunately “live integration” doesn’t seem to be an option right now. Not directly related to the original question in this thread, I realise, as I was asking about importing from WP Posts.
June 18, 2020 at 7:45 am #59783PerryModeratorHi Adam
No worries!
Our Pro add-on support scheduled Google sheets imports, if that helps.
Is there anything else we can help you with?
Kind regards
– Perry -
AuthorPosts
- You must be logged in to reply to this topic.