badscooter1980
Forum Replies Created
-
Forum: Plugins
In reply to: [Yoast SEO] Breadcrumbs showing wronglySuper, thanks!
Forum: Plugins
In reply to: [Yoast SEO] Breadcrumbs Showing In Odd Order In BlogIt’s not just product categories, but standard pages too.
My URL structure (for example) is;
home/vending-machines/coffee-machines/floor-standing/floor-standing-bean-to-cup-coffee-vending-machine/The breadcrumbs are showing;
HOME > FLOOR STANDING > COFFEE MACHINES > VENDING MACHINES > FLOOR STANDING BEAN TO CUP COFFEE VENDING MACHINEThe subpages (all pages, not product categories) are completely reversed…
Forum: Plugins
In reply to: [Yoast SEO] Breadcrumbs showing wronglyMe too.
My URL structure (for example) is;
home/vending-machines/coffee-machines/floor-standing/floor-standing-bean-to-cup-coffee-vending-machine/The breadcrumbs are showing;
HOME > FLOOR STANDING > COFFEE MACHINES > VENDING MACHINES > FLOOR STANDING BEAN TO CUP COFFEE VENDING MACHINEThe subpages are completely reversed…
Forum: Plugins
In reply to: [Yoast SEO] Breadcrumbs Showing In Odd Order In BlogI’m also having a similar issue.
URL structure is; https://westwaysnew-co-uk.stackstaging.com/vending-machines/water-coolers/table-top/
But breadcrumbs are showing as;
HOME WATER COOLERS VENDING MACHINES TABLE TOPVending machines should be before water coolers. It seems to happen once you get 3/4 levels deep.
Forum: Plugins
In reply to: [Ajax Search Lite - Live Search & Filter] Not Compatible with PHP 7.1+Update: March 21 2020
So, it seems the code was incorrect at this part;
function asl_full_content_in_results($results, $id, $is_ajax, $args) {
I simply removed several parameters, so it looks like this;
function asl_full_content_in_results($results) {
And BINGO! It works on PHP 7.3
For reference, the entire snippet inside my functions.php file is;
add_filter('asl_results', 'asl_full_content_in_results', 1, 1); function asl_full_content_in_results($results) { foreach ($results as $k=>&$r) { $r->flag = apply_filters('the_title', get_field('network_countries', $r->id)); $r->website = apply_filters('the_title', get_field('network_website', $r->id)); } return $results; }
With my edits to the result.php template remaining unchanged at;
<div class='asl_content'> <h3><div class="network-meta"><span class="flag-icon flag-icon-<?php echo $r->flag; ?>"></span> <a href="<?php echo $r->website; ?>" target="_blank"><?php echo $r->title; ?> <i class="fas fa-link"></i></a></div> <div class="network-check"><i class="fas fa-check"></i></div></h3> </div>
Forum: Plugins
In reply to: [Ajax Search Lite - Live Search & Filter] Not Compatible with PHP 7.1+To add, the code I am using below works perfectly in PHP 7, so what is stopping it in 7.1?
// Network dropdown functions add_filter('asl_results', 'asl_full_content_in_results', 10, 4); function asl_full_content_in_results($results, $id, $is_ajax, $args) { foreach ($results as $k=>&$r) { $r->flag = apply_filters('the_title', get_field('network_countries', $r->id)); $r->website = apply_filters('the_title', get_field('network_website', $r->id)); } return $results; }
And this, inside the result.php template;
<div class='asl_content'> <h3><div class="network-meta"><span class="flag-icon flag-icon-<?php echo $r->flag; ?>"></span> <a href="<?php echo $r->content; ?>" target="_blank"><?php echo $r->title; ?> <i class="fas fa-link"></i></a></div> <div class="network-check"><i class="fas fa-check"></i></div></h3> </div>
Screenshot of live site here; https://ibb.co/D1T6YXD
- This reply was modified 4 years, 11 months ago by badscooter1980.
- This reply was modified 4 years, 11 months ago by badscooter1980.
Forum: Plugins
In reply to: [Ajax Search Lite - Live Search & Filter] Not Compatible with PHP 7.1+Hi,
Sorry, I’m still unable to make this compatible.
I followed your instructions layed out in this post https://www.ads-software.com/support/topic/show-entire-content/ which is what my code is based on.
Forum: Plugins
In reply to: [Ajax Search Lite - Live Search & Filter] Not Compatible with PHP 7.1+I have this in my functions.php
// Network dropdown functions
add_filter(‘asl_results’, ‘asl_full_content_in_results’, 10, 4);
function asl_full_content_in_results($results, $id, $is_ajax, $args) {
foreach ($results as $k=>&$r) {
$r->flag = apply_filters(‘the_title’, get_post_field(‘network_countries’, $r->id));
$r->website = apply_filters(‘the_title’, get_post_field(‘network_website’, $r->id));
}
return $results;
}Removing it makes it work, but I need this function to add some ACF data to the search results. What, in the above, isn’t working in PHP 7.1+?
Forum: Plugins
In reply to: [Swift Performance Lite] Not cachingHi Fred,
From my hosting company;
“Thanks for your patience.
I’ve conversed with our system administrators in relation to this and can confirm that on the Linux Platform, caching does not take plac, if we cache content we will insert the ‘x-cache-status’ http response header to be absolutely sure and we cannot see that this is happening here.
We can see that the requests are being made to the webserver, here is a loadbalancer log to indicate this
Feb 22 11:15:42 l4lb-133.ptl.stackcp.net haproxy[27158]: 109.69.82.40:60233 [22/Feb/2019:11:15:42.644] l4proxy-plain~ l7balancers/l7lb9.ptl.stackcp.net 0/0/0/26/29 200 24469 – – —- 533/533/89/41/0 0/0 {www.philltarling.com} “GET /wp-content/plugins/swift-performance-lite/css/styles.css?ver=2.0.6 HTTP/1.1”
Feb 22 11:15:42 l4lb-133.ptl.stackcp.net haproxy[27158]: 109.69.82.40:60233 [22/Feb/2019:11:15:42.643] l4proxy-plain~ l7balancers/l7lb9.ptl.stackcp.net 0/0/0/32/32 200 1114 – – —- 532/532/87/39/0 0/0 {www.philltarling.com} “GET /wp-content/plugins/swift-performance-lite/includes/luv-framework/plugins/codemirror/theme/monokai.css?ver=b8f4f5093140b2c449d28459c6088d12 HTTP/1.1″The server configuration is the same as your other sites and we can only narrow this down for the developers to look into. If there is anything we need to do on our side, please let us know and we’ll see what we can do.”
Forum: Plugins
In reply to: [Swift Performance Lite] Not cachingI’m not sure where you are referring to? There is no ‘cache level’ in the WordPress general settings control panel?
Forum: Plugins
In reply to: [Swift Performance Lite] Not cachingHi,
Interesting, as Zircle.co.uk, plantsforeurope.com and aeromobile.net are on the exact same platform, and all seem to be working just fine.
Forum: Plugins
In reply to: [Swift Performance Lite] Not cachingHi,
Linux, Apache.
There are no other caching plugins active and Curl/HTTP Loopbacks are also enabled.
Forum: Plugins
In reply to: [Swift Performance Lite] Not entirely sure this is working?I also removed the plugin (and settings) and reinstalled it, checked settings and still nothing.
Forum: Plugins
In reply to: [Swift Performance Lite] Not entirely sure this is working?So, to update, I ran this past my hosting company to check if they had anything that might be stopping this from working, and they don’t.
Still hasn’t cached anything since my last post here :/
Forum: Plugins
In reply to: [Swift Performance Lite] Not entirely sure this is working?Yes, it is ticked, always has been.
Still, clearing the cache, updating the page or clicking ‘start prebuild cache’ results in nothing. I have to manually click ‘cache page’ for each one.