Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter br1anp3ck

    (@br1anp3ck)

    Hi Priya, thanks for your response. Is there no code I could maybe add to the functions.php file that would help achieve this?

    Thread Starter br1anp3ck

    (@br1anp3ck)

    Here is a link to an Event Archives page with your code currently added to the functions.php file: https://ux7.c15.myftpupload.com/event-type/speaker-meetings/

    Thread Starter br1anp3ck

    (@br1anp3ck)

    Hi Priya, thanks for your response. I am still having the same problem, when I add your code to my functions.php file, my Event Archives page stops working entirely and only loads a white screen.

    To confirm, I am copying the following code:

    add_filter( 'archive_template', 'wpem_event_archive', 20 );
     
    function wpem_event_archive($template)
    {
    if ( is_tax( 'event_listing_category' ) ) {
     
    $template = get_template_directory() . '/wp-event-manager/content-event_listing_category.php';
        }
        elseif ( is_tax( 'event_listing_type' ) ) {
     
    $template = get_template_directory() . '/wp-event-manager/content-event_listing_type.php';
        }
     
        return $template;
    }

    to the file located at: /wp-content/themes/astra-child/functions.php

    I have edited this functions.php file with many changes before, all of which function properly.

    Without the above code added to functions.php, my Event Archives page loads fine. When I add the above code to functions.php and save it, then reload my Event Archives, it will only display a blank white page, until I remove the code from functions.php, then everything works again.

    This, coupled with the other post I originally linked where another user was having the exact same issue as me, leads me to believe something is wrong with your code.

    Thread Starter br1anp3ck

    (@br1anp3ck)

    If that is too confusing, let me word it differently / offer a different approach to a solution that will also work for me.

    Right now, PPOM ends up uploading files into specific sub-folders based on the Order # and Product ID of the item the upload is attached to.

    For example, the files listed above: o_1fh18amo0kednkm1h341c4m1l4vb.png,o_1fh18amo09l1pgr12g2g9m11f6c.png,o_1fh18amo09lp1eafb0s1hio1m75d.png

    End up being uploaded to:
    -https://8gd.a71.myftpupload.com/wp-content/uploads/ppom_files/confirmed/5704/4577-o_1fh18amo0kednkm1h341c4m1l4vb.png
    -https://8gd.a71.myftpupload.com/wp-content/uploads/ppom_files/confirmed/5704/4577-o_1fh18amo09l1pgr12g2g9m11f6c.png
    -https://8gd.a71.myftpupload.com/wp-content/uploads/ppom_files/confirmed/5704/4577-o_1fh18amo09lp1eafb0s1hio1m75d.png

    5704 is the order number and 4577 is the product number

    Is there any way to change this formula that PPOM uses for saving the files? Ideally, I’d like them all to end up in the /confirmed/ folder, without the 4577- prefix.

    • This reply was modified 4 years, 6 months ago by br1anp3ck.
Viewing 4 replies - 1 through 4 (of 4 total)