veganwebagency
Forum Replies Created
-
Forum: Plugins
In reply to: [LiteSpeed Cache] Disable frontend cache + minify for adminsThanks a lot! Worked like a charm. ??
Forum: Fixing WordPress
In reply to: Newest version (6.3) doesn’t work with PHP 8.0.xAs I wrote, I disabled all plugins and installed a default theme. ??
Tested it again today and now it suddenly works. I’ll check the test website to see if this is the case for a few days before I update all the other websites.
Thanks
- This reply was modified 1 year, 7 months ago by veganwebagency.
Forum: Plugins
In reply to: [Members - Membership & User Role Editor Plugin] key “active” is uncheckedForum: Plugins
In reply to: [Members - Membership & User Role Editor Plugin] key “active” is uncheckedSame here. Would be great if you could fix it.
Forum: Plugins
In reply to: [Yoast SEO] Change og:image to acf fieldHi Maybellyne
Thanks for the links, worked for me now.
Here is my final code:
function change_opengraph_image_url($url) { if (get_field('social_media_image_choice') && !is_archive() && !is_404()) : $url = wp_get_attachment_image_src(get_field('social_media_image'), 'size_1200_630')[0]; return $url; elseif (get_field('header_active') && !is_archive() && !is_404()) : $url = wp_get_attachment_image_src(get_field('header_image'), 'size_1200_630')[0]; return $url; else : return $url; endif; } add_filter('wpseo_opengraph_image', 'change_opengraph_image_url');
Forum: Plugins
In reply to: [Yoast SEO] Change og:image to acf fieldHi Maybellyne,
Exactly.
Optimally it would query the following in that order:
#1 Is an og:image placed on the page / post under Yoast SEO -> Then take this one.
#2 Is a header image placed with ACF -> Then take this one
#3 If neither is placed, then take the default image under Yoast SEO settings.`So in code it would be something like:
if ($yoast_ogimage) { // Take og:image from Yoast SEO page / post settings } else if (get_field('header_image')) { // Take headerimage as og:image } else { // Standard Yoast SEO og:image }
Best Regards,
Chrigi- This reply was modified 3 years, 3 months ago by veganwebagency.
Forum: Plugins
In reply to: [Simple Custom Post Order] WooCommerce Product OrderHi Beatrice,
Thanks for the response. ??
Possibly it is then a plugin conflict.
We’ll check it out.
Best Regards
ChrigiThanks, I contacted you there.
- This reply was modified 3 years, 11 months ago by veganwebagency.