patbell101
Forum Replies Created
-
Forum: Plugins
In reply to: [Import Users from CSV] Ony importing first two columnsMy error was using user_pass rather than Password as the column heading. This mean that the password in that field was unencrypted and rendered the user unusable whatever I did after importing. Thsi was my issue years ago I believe. I wish I had read the docs more thoroughly.
I deleted all and reimported and all is fine now
Forum: Plugins
In reply to: [PDF Embedder] A specific PDF will not display on MobileIt was not having a title or another element to define the page width. Not a problem in a P though, just mobile
Actually it looks like a glitch with the screen refresh – going back in after reopening the site the edit is there. The refesh glitch shoing the non edit just needs to be fixed I guess
Ninja asks for a purchase code but I am using the free version which is where the issue of folder renames not being saved arises.
- This reply was modified 1 year, 2 months ago by patbell101.
oh yes it does if I click Upload (just below the fold). D’oh
Thanks
I am using?MailPoet and your addin for it.
Thanks for your reply, I deleted the Buttons concerned and new ones worked. fwiw I believe this problem was related to locally editing Elementor Global widgets.
Forum: Fixing WordPress
In reply to: Build gallery in background?Oh wow! Perfect. Thanks
Thanks. But from what I see it is the main image that changes as a slideshow. I was looking for a 4 image row that autoplayed through the gallery like a carousel I guess
Yes. afaicr restarting the site gave me what I needed
Forum: Plugins
In reply to: [Better Search Replace] Cannot access new site, takes me to old sitesorted. Add
define( ‘WP_HOME’, ‘https://example.com’ );
define( ‘WP_SITEURL’, ‘https://example.com’ );to wp-config.php
Forum: Fixing WordPress
In reply to: Subscriber login goes to profilesolved it with
function ti_custom_login_redirect( $url, $request, $user ) {
if ( $user && is_object( $user ) && is_a( $user, ‘WP_User’ ) ) {
if ( $user->has_cap( ‘administrator’ ) ) {
$url = admin_url();
} else {
$url = home_url( ‘/cool-page/’ );
}
}
return $url;
}add_filter( ‘login_redirect’, ‘ti_custom_login_redirect’, 10, 3 );
This code works as follows:Forum: Fixing WordPress
In reply to: Uploading Olympus images lose titlesPerfect.
Thanks
Forum: Fixing WordPress
In reply to: Uploading Olympus images lose titlesI found this snippet which copies filename to title when uploading, except its the full path – I need to strip the filename without path and extension. ANy help please?
/** * Override the meta title for jpeg/tiff images * * @link https://wordpress.stackexchange.com/a/192779/26350 */ add_filter( 'wp_read_image_metadata', function( $meta, $file, $sourceImageType ) { $image_types = [ IMAGETYPE_JPEG, IMAGETYPE_TIFF_II, IMAGETYPE_TIFF_MM ]; if( ! empty( $meta['title'] ) && in_array( $sourceImageType, $image_types ) ) $meta['title'] = ''; // <-- Edit this to your needs! return $meta; }, 10, 3 );