New Listing is Added Message After Submission

Hello,

After testing my set up, I submitted a site from the front end and ended up with a blank screen. It said in the URL (See below) the submission was successful but I'd rather it redirect to another page. How do I do that?

http://mywebsite.com/listings/my-listings/?updated=true&dmsg=New+Listing+is+added!

  • Vinod Dalvi

    Hi @James,

    I hope you are well today and thank you for your question.

    Unfortunately there isn't any plugin option to change it but you can do it by editing line number 104 in the page directory/core/main.php as following.
    Before Editing:
    wp_redirect( add_query_arg( array( 'updated' => 'true', 'dmsg' => urlencode( __( 'New Listing is added!', $this->text_domain ) ) ), get_permalink($this->my_listings_page_id) )
    After Editing:
    wp_redirect( 'http://mywebsite.com/sample-page/' );

    Change the above page URL http://mywebsite.com/sample-page to whatever URL you want to.

    I will move this over to the features & feedback section. This way it can be considered for future development, and we can also see what other community members think about the feature request.

    Best Regards,

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.