Derek Brown
Forum Replies Created
-
AuthorPosts
-
March 9, 2020 at 2:20 pm in reply to: Search page will not use the default template. No header / no footer / no stylin #534426
96 hours later I have trashed the dev site and re-added the US only filter. I committed the custom header/footer (divi builder) to the home page only and let the geodirectory pages just use the default header and footer. Not optimal, but I did not have time to wait 3 days for someone to log in and figure out why geodirectory pages would not use Divi global settings. Others might appreciate it though if you make your geodirectory system work with one of the top builders on the market.
March 6, 2020 at 3:49 pm in reply to: Search page will not use the default template. No header / no footer / no stylin #534055This reply has been marked as private.March 5, 2020 at 4:54 pm in reply to: Search page will not use the default template. No header / no footer / no stylin #533789Category pages as well (https://theadultromanceconsultantfinder.webstorme.com/romance_consultants/category/mountain-time-zone). Basically anywhere that I use a geodirectory function. Messes up the footer as well. Notice the fontawesome icons no longer show up. and on category pages, the pyramid “roof” is at the bottom instead of the top – like the rows switched!
It’s like any page with a geo directory function negates all global css.March 5, 2020 at 4:27 pm in reply to: Search page will not use the default template. No header / no footer / no stylin #533784This reply has been marked as private.Thanks Michael and back atcha. In the long run, gotta blame myself. I should of used the ol All In One Migration and made a backup. That way, I could have seen the destruction, installed the backup, then installed a dev site elsewhere for the upgrade and “rebuilt” and put everything back together. Lesson Learned.
Thank you Michael! I was getting too angry with this upgrade to respond. I try my best to stay professional as I know how difficult these projects can be. When an update comes, the instinct is to install the update. bigger, badder, better, more secure – right? This was a downgrade as far I am concerned. And contrary as supports answer, there is no way back from an upgrade that completely rebuilds your database. Uuugh.
This reply has been marked as private.Here’s what is happening, and I can not for the life of me figure out why. The image is being uploaded to /2017/11/imagefile.jpg, but the entry going into the database is 2019/04 !?
I would think that 2019/04 would be correct as images are usually updated to a folder that corresponds to the year/month
So, why is your script uploading the image, all images, to 2017/11 ??
Any assistance suggestions would be very much appreciated.
Thanks.
DThis reply has been marked as private.Okay then. Anything? Suggestions? Can’t be done? Anything?????
// Add Featured Image to Post $image_url = $featured_image; // Define the image URL here $image_name = ‘compressor.jpg’; $upload_dir = wp_upload_dir(); // Set upload folder $image_data = file_get_contents($image_url); // Get image data $unique_file_name = wp_unique_filename( $upload_dir[‘path’], $image_name ); // Generate unique name $filename = basename( $unique_file_name ); // Create image file name // Check folder permission and define file location if( wp_mkdir_p( $upload_dir[‘path’] ) ) { $file = $upload_dir[‘path’] . ‘/’ . $filename; } else { $file = $upload_dir[‘basedir’] . ‘/’ . $filename; } // Create the image file on the server file_put_contents( $file, $image_data ); // Check image file type $wp_filetype = wp_check_filetype( $filename, null ); // Set attachment data $attachment = array( ‘post_mime_type’ => $wp_filetype[‘type’], ‘post_title’ => sanitize_file_name( $filename ), ‘post_content’ => ”, ‘post_status’ => ‘inherit’ ); // Create the attachment $attach_id = wp_insert_attachment( $attachment, $file, $post_id ); // Include image.php require_once(ABSPATH . ‘wp-admin/includes/image.php’); // Define attachment metadata $attach_data = wp_generate_attachment_metadata( $attach_id, $file ); // Assign metadata to attachment wp_update_attachment_metadata( $attach_id, $attach_data ); // And finally assign featured image to post set_post_thumbnail( $post_id, $attach_id ); // Otherwise, we’ll stop } else { // Arbitrarily use -2 to indicate that the page with the title already exists $post_id = -2; } // end if do_action( ‘save_post’, $post_id, $post_type, true );
Thank you. This worked. So I had WP Easy Updates installed. Did you upgrade it to WP Easy Updates missing Licence key & Notifications?
This reply has been marked as private.This reply has been marked as private.Okay, so it looks like the problem is that I can not place the shortcode in a text box. I moved it to a custom code block and that worked.
But
The slideshow looks awful! I mean the images for each post are down rendering to 300px, which is good, but you are only showing one at a time?
A proper slider would show 4-5 at a time across the row, and then slide the next set of 4-5 (or slide across moving the one to left off and bringing on a new one from the right or vis versa.
So, I won’t be using this at all. looks totally off balance.
But thanks anyway.
I am having SO much problems and frusrations getting your systems and shortcodes to sit nicely into anything other than the generic template you provide.
I tried Visual Composer, Site Origin, and Divi. Running into road blocks with each. Was hoping for this to be a 1-2 week project before launching, but now it looks like it may be a month and I may have to acquire some help from a coder.
Not what I was expecting to pay for, but hopefully I can make this work for us.Thanks again for your quick responses. I am absolutely positive I will have more questions.
-
AuthorPosts