pstretch
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Store Locator] PHP Warning: Undefined array key 1This is the /wpsl-markers/ directory in the child theme:
Forum: Plugins
In reply to: [WP Store Locator] PHP Warning: Undefined array key 1There are no code modifications in the child theme relevant to WP Store Locator. Yes, the PHP warnings are seen after duplicating the \wpsl-markers\ directory into the child theme.
Forum: Plugins
In reply to: [WP Store Locator] Child ThemeYes, the child theme is setup as per normal process. There are no code modifications relevant to WP Store Locator.
Why does the child theme need its own copy of the default \wpsl-markers\ directory? Shouldn’t it use the default directory in the parent theme?
Forum: Plugins
In reply to: [Image Prioritizer] fetchpriority with WebP and AVIF imagesI use CompressX plugin to create the WebP and AVIF images from the original jpg and png. This is connected to Cloudflare via API.
The site uses LiteSpeed Cache plugin, also connected to Cloudflare via API. This doesn’t create WebP and AVIF but is set to serve them in place of original images.
Forum: Plugins
In reply to: [Image Prioritizer] fetchpriority with WebP and AVIF imageshttps://warescouts.org.uk/<link data-od-added-tag="" rel="preload" fetchpriority="high" as="image" href="https://warescouts.org.uk/wp-content/uploads/2025/12/two-cubs-leaping-into-water-jpg.jpg" media="screen and (782px < width)"><div data-od-xpath="/HTML/BODY/DIV[@id='page']/*[4][self::DIV]/*[2][self::DIV]/*[1][self::DIV]/*[1][self::DIV]" class="home-welcome-background" style="background: url('https://warescouts.org.uk/wp-content/uploads/2025/12/two-cubs-leaping-into-water-jpg.jpg.webp') no-repeat center; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; height: auto;">Forum: Plugins
In reply to: [Gallery by FooGallery] Galleries on News Posts = Not usedThis is now resolved in 1.7.7.
Thank you
Forum: Plugins
In reply to: [Gallery by FooGallery] Gallery usage with custom post types with v1.7.7Perfect, that’s got it working.
Thank you.
Forum: Plugins
In reply to: [Gallery by FooGallery] Galleries on News Posts = Not usedI’ve looked into this further and can confirm that the problem occurs when the post_type in wp_posts is custom i.e. post_type = news and post_type = events.
These two custom post types are defined in the template’s functions.php file and appear in the admin menu.
It looks like this has also been raised in https://wordpress.org/support/topic/usage-not-used-in-custom-post-type/
Forum: Plugins
In reply to: [Gallery by FooGallery] Galleries on News Posts = Not usedHere’s two examples of recent news articles with a FooGallery embedded but these galleries show as ‘Not Used’ in the gallery list.
https://stansteadabbottsscouts.org.uk/latest-news/jaguar-pack-visit-to-willowthorpe-care-home/
https://stansteadabbottsscouts.org.uk/latest-news/scouts-march-march-on-dartmoor/
Thanks for helping.
Forum: Plugins
In reply to: [Gallery by FooGallery] Galleries on News Posts = Not usedIt works okay with Pages, but not with News articles.
WordPress 5.1.1–en_GB
FooGallery 1.7.6Is there anything I can try or that you need to know?
Thanks
I’m seeing 404 errors for the same URL too: /app/themes/yoast-theme/fonts/FontAwesome.woff2
Forum: Plugins
In reply to: [LiteSpeed Cache] Disable creating WebP imagesI’m not yet convinced of the value of the WebP images. I know that I can disable them being served but this still wastes valuable disk space with files that then aren’t used.
Forum: Fixing WordPress
In reply to: PHP warning in logsIt ends with a semicolon.
I’ve now tried dropping a copy of wp-load.php into the
/home/xxxx/public_html/wp-content/themes/scout-websites-group/includesdirectory and making the include call it from there. Not an ideal solution but it works for now without using absolute references.Forum: Fixing WordPress
In reply to: PHP warning in logsIf I temporarily change the include function to an absolute path the errors stop, but I still can’t see anything wrong with the relative path reference.
Could it be something to do with the include_path? I thought that the a path in the include function overrides include_path (http://php.net/manual/en/function.include.php) but maybe there’s something subtly wrong with my code.
Forum: Fixing WordPress
In reply to: PHP warning in logsI wondered that but the number of steps in the relative path looks correct to me i.e. back to the WordPress root where wp-load.php is.