southafricanrob
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Store Locator] Add element after n stores in the the resultsAmazing – thanks for the ajaxComplete() tip. Using this I was able to achieve exactly what I wanted – many thanks:
$(document).ajaxComplete(function(event,request, settings){
$("#wpsl-stores li:nth-child(5)").after("foobar");
});Forum: Plugins
In reply to: [WP Store Locator] Create a link to a particular store on the mapHi again,
From my fairly limited SEO knowledge a 301 redirect won’t hurt SEO (so long as not included in sitemap) other than that the stores redirecting won’t have any ranking value, but wouldn’t this be the case anyway if permalinks are turned off?My use case is that only premium stores have their own store page. If permalinks are disabled in the WPSL settings, how are you disabling the permalink? Is it not a redirect of the post URL as I’m doing?
Thanks!
Forum: Plugins
In reply to: [WP Store Locator] Create a link to a particular store on the mapI managed to allow only certain stores to use permalinks like this:
add_action ( 'template_redirect', 'custom_store_post_permalink_redirect', 1); function custom_store_post_permalink_redirect() { global $wp_query; //whatever condition you want to use - in this case custom store meta my_custom_field $conditional_var = get_post_meta( get_the_ID(), 'wpsl_my_custom_field', true ); //if store has my_custom_field value less than 3 then don't enable permalink if (( $conditional_var < 3) && is_singular( 'wpsl_stores' ) ) { $url = get_bloginfo('url'); wp_redirect( esc_url_raw( $url ), 301 ); exit(); } }
Basically redirects all stores where conditions aren’t met to home page. Posting here incase useful to anyone else!
Forum: Plugins
In reply to: [WP Store Locator] Create a link to a particular store on the mapThanks for the idea – it’s a cool workaround!
Alternatively could I use permalinks conditionally? For example only use permalinks on stores from a particular category? I have 1000’s of store listed and ideally don’t want Google indexing all stores permalink / page, which I assume will happen if I enable permalinks globally?
I know changing the plugins core code isn’t ideal but where does you permalink logic happen?
Thanks
RobHi there,
Thanks – it was happening on all posts – I can confirm the update has fixed the error. CheersForum: Plugins
In reply to: [WPAdmin AWS CDN] Multiple Warnings re wp-config.php on AWSI have investigated further and found that it appears wp-config.php is being included multiple times in the wpaws_cdn_content and wpaws_cdn_stylescripts functions in class-awn-cdn.php.
In my case (using Elastic Beanstalk and declaring the constants in the EB environment variables rather than in wp-config.php itself I am getting multiple (±5000) php errors.
Shouldn’t
include($wpconfig);
in these functions rather beinclude_once($wpconfig);
to first check if the file has been loaded ? In my case this resolves the php errors.Thanks for this info. I had rolled back to 3.6.5 but still had same issues, I didn’t realise the image sizes would still actually be saved incorrectly but makes sense. Thanks again for the follow up.
@trongkhanh Not yet unfortunately – Elementor said they can’t provide support for other plugins, I did tell them it appeared to be an issue with them though! If it helps – in the interim I have set up my uploads folder to mount as an EFS drive which is achieving the same result of offloading the media uploads, albeit without the CDN option.
Thanks, I have taken it up with Elementor.
Hi there,
I do use Elementor, disabling Elementor Pro fixed the fatal error although I still get the same error or warnings other pages. I rolled both Elementor and Elementor pro back to older versions (3 versions back) but get the same issue. Is this specifically a conflict with Elementor?Thanks
Apologies I forgot to attach the debug info:
site_url(): https://mytank.co.za home_url(): https://mytank.co.za Database Name: mytankv2 Table Prefix: wp_ WordPress: 6.0.1 Web Server: Apache/2.4.54 () OpenSSL/1.0.2k-fips PHP: 8.0.20 MySQL: 8.0.28 ext/mysqli: yes PHP Memory Limit: 256M WP Memory Limit: 256M Memory Usage: 18 MB Blocked External HTTP Requests: None WP Locale: en_ZA Organize offloads by month/year: Enabled WP_DEBUG: No WP_DEBUG_LOG: Yes WP_DEBUG_DISPLAY: Yes SCRIPT_DEBUG: No WP Max Upload Size: 32 MB PHP Time Limit: 60 PHP Error Log: /var/log/php-fpm/www-error.log WP Cron: Disabled fsockopen: Enabled allow_url_fopen: Enabled OpenSSL: OpenSSL 1.0.2k 26 Jan 2017 cURL: 7.79.1 Zlib Compression: Enabled PHP GD: bundled (2.1.0 compatible) Imagick: Enabled Basic Auth: Disabled Proxy: Disabled Media Files: 40 Offloaded Media Files: 10 Not Offloaded Media Files: 30 Number of Image Sizes: 6 Names and Dimensions of Image Sizes: thumbnail (150x150) medium (400x400) large (1024x1024) 1536x1536 (1536x1536) 2048x2048 (2048x2048) WP_CONTENT_DIR: /var/app/current/wp-content WP_CONTENT_URL: https://mytank.co.za/wp-content UPLOADS: Not defined WP_PLUGIN_DIR: /var/app/current/wp-content/plugins WP_PLUGIN_URL: https://mytank.co.za/wp-content/plugins AS3CF_PROVIDER: Not defined AS3CF_BUCKET: Not defined AS3CF_REGION: Not defined AS3CF_SETTINGS: Defined AS3CF_SETTINGS Keys: access-key-id, provider, secret-access-key Local URL: https://mytank.co.za/wp?content/uploads/2022/08/photo.jpg Offload URL: https://images.mytank.co.za/wp?content/uploads/2022/08/11084911/photo.jpg OME Metadata Version: 12 Custom tables: wp_as3cf_items: Ok Storage Provider: Amazon S3 Use Server Roles: Off Key File Path: N/A Access Keys Set: Yes Access Key ID Define: Not defined Secret Access Key Define: Not defined Bucket: mytank-uploads Region: af-south-1 Block All Public Access: Unknown Copy Files to Bucket: On Enable Path: On Custom Path: wp-content/uploads/ Use Year/Month: On Object Versioning: On Delivery Provider: Amazon CloudFront Rewrite Media URLs: On Enable Custom Domain (CNAME): On Custom Domain (CNAME): images.mytank.co.za Force HTTPS: Off Remove Files From Server: Off Active Theme Name: Hello Elementor Child Active Theme Version: 1.0.1 Active Theme Folder: hello-theme-child Parent Theme Name: Hello Elementor Parent Theme Version: 2.6.1 Parent Theme Folder: hello-elementor Active Plugins: ACF Conditional Taxonomy Rules (v3.0.1) by mattkeys Advanced Custom Fields (v5.12.3) by Delicious Brains Elementor (v3.6.7) by Elementor.com Elementor Pro (v3.6.5) by Elementor.com FluentSMTP (v2.1.2) by FluentSMTP & WPManageNinja Team Flying Pages (v2.4.6) by WP Speed Matters Flying Scripts (v1.2.3) by WP Speed Matters Payment Forms for Paystack (v3.4.1) by Paystack Query Monitor (v3.9.0) by John Blackbourn WP Offload Media Lite (v2.6.2) by Delicious Brains WP Store Locator (v2.2.235) by Tijmen Smit WP Store Locator - CSV Manager (v1.2.12) by Tijmen Smit WP Store Locator - Statistics (v1.1.2) by Tijmen Smit WPAdmin AWS CDN (v2.0.12) by WPAdmin mytank (v1.1) by Rob Drop-ins: db.php - Query Monitor Database Class (Drop-in)
Forum: Plugins
In reply to: [WP Store Locator] Auto-update Latitude Longitude on importI can recommend the CSV importer add on for this plugin, I’ve used it to import 3500 stores with lat and long and no issues.
Forum: Plugins
In reply to: [WP Store Locator] Multiple Start MarkersNo problem. Could you advise how to update the wpsl-gmap.min.js if I add that code above to the unminified file?
I have minified wpsl-gmap.js using an online js minifier tool but your version seems much smaller and seems to have a lot less functions than the unminified version?
ThanksForum: Plugins
In reply to: [WP Store Locator] Delay request for locationThanks – this is very helpful
Forum: Plugins
In reply to: [WP Store Locator] Caching options for WP Store LocatorApologies, sounds completely fair. I’ll create a support ticket. Thanks again