aabri
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Best approach for a claims process@sebastienserre thanks yes that is correct and if I make the claims CPT with the relationship field relating to my ‘items’ this works but I would like to present the items differently to what ACF does. I.e. I have the post query and would like to add them to the form from that WP query as it allows me to display the items from the post I prefer. I suppose I can do that with some custom JS or jQuery so I add the ID to the form.
The latest release resolved the issue. Thanks.
I tried to reinstall and still can’t save any of the settings and says no triggers defined.
- This reply was modified 3 years, 7 months ago by aabri.
Do you mean set the triggers in settings? Any settings I change and save do not apply for some reason :-/
Forum: Plugins
In reply to: [Yoast SEO] Og image using featured image not working on post creationPlease can I have advice on using the yoast function with the ACF gallery field to set the og:image?
Forum: Plugins
In reply to: [Yoast SEO] Og image using featured image not working on post creationHere is the function I am using to set the featured image:
add_filter('acf/save_post', 'gallery_to_thumbnail',11,11); function gallery_to_thumbnail($post_id) { $gallery = get_field('images', $post_id, false); var_dump($gallery); var_dump($post_id); if (!empty($gallery)) { $image_id = $gallery[0]; set_post_thumbnail($post_id, $image_id); } }
Forum: Plugins
In reply to: [Yoast SEO] Og image using featured image not working on post creationHi,
Thanks for the help.
1- Yes
2- Yes
3- Yes
4- Yes I installed the mentioned plugin and ran the same test, same issue occurs
5- My custom post type is set in my functions file, I’m not using a plugin
Is there a function to update the og:image that I could use maybe?
Forum: Plugins
In reply to: [Yoast SEO] Og image using featured image not working on post creationHi, yes I have the latest version.
Additional info, I am using acf plugin and a custom post type. I am also using a function that tells the featured image to use the first image from an array of images (from the gallery field in acf). This function is working correctly and when a post is created the featured image is set correctly. However to set the og image I have to press update for it to work.