Derek Brown

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 27 total)
  • Author
    Posts

  • Derek Brown
    Expired Member
    Post count: 28

    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.


    Derek Brown
    Expired Member
    Post count: 28
    This reply has been marked as private.

    Derek Brown
    Expired Member
    Post count: 28

    Category 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.


    Derek Brown
    Expired Member
    Post count: 28
    This reply has been marked as private.
    in reply to: Directory Admin Area Lookup Filters Gone? #482191

    Derek Brown
    Expired Member
    Post count: 28

    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.

    in reply to: Directory Admin Area Lookup Filters Gone? #482189

    Derek Brown
    Expired Member
    Post count: 28

    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.

    in reply to: How to create shortcode from Standard Field #480398

    Derek Brown
    Expired Member
    Post count: 28
    This reply has been marked as private.
    in reply to: What is the hook to add featured images? #480363

    Derek Brown
    Expired Member
    Post count: 28

    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.
    D

    in reply to: What is the hook to add featured images? #480214

    Derek Brown
    Expired Member
    Post count: 28
    This reply has been marked as private.
    in reply to: What is the hook to add featured images? #479904

    Derek Brown
    Expired Member
    Post count: 28

    Okay then. Anything? Suggestions? Can’t be done? Anything?????

    in reply to: What is the hook to add featured images? #479586

    Derek Brown
    Expired Member
    Post count: 28
    // 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 );
    in reply to: Entering License keys results in an error? #450834

    Derek Brown
    Expired Member
    Post count: 28

    Thank you. This worked. So I had WP Easy Updates installed. Did you upgrade it to WP Easy Updates missing Licence key & Notifications?

    in reply to: Entering License keys results in an error? #449178

    Derek Brown
    Expired Member
    Post count: 28
    This reply has been marked as private.
    in reply to: Entering License keys results in an error? #449035

    Derek Brown
    Expired Member
    Post count: 28
    This reply has been marked as private.
    in reply to: List Slider Not Working – Just A Spinning Icon #402388

    Derek Brown
    Expired Member
    Post count: 28

    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.

Viewing 15 posts - 1 through 15 (of 27 total)