• Resolved Jean Werk

    (@brightbluegum)


    Hello,

    I’ve set up a WP 4.8.3 test website with:
    – Business Directory plugin (required pages created + default settings)
    – 2021 theme
    – no other plugin
    – a test user with the Subscriber role

    This test user has submitted a listing and the listing is in Pending status, waiting for admin approval.
    When the user clicks the listing title, the 404 error page is displayed which is not great.

    Is there a way to either display the listing preview or disable the link on the listing title in this situation?

    Thanks
    Jean

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Garret L

    (@garret1996)

    Hi @brightbluegum

    Thank you for reaching out about this. I’m Garret from the customer success team and I’ll be happy to help with this.

    When a listing is set to the pending status, the listing isn’t meant to be viewed until approved. This is only visible to the user and admins of the site.

    We can likely improve on this instead of showing a 404 error. I’ve made a note of this and we’ll keep it on our radar as we plan out our roadmap for the future.

    If you have any other questions or concerns, please let me know!

    Best,

    Thread Starter Jean Werk

    (@brightbluegum)

    Thanks for considering my request.
    In the mean time, I’ve corrected this minor issue with this simple jQuery script on my page with the [businessdirectory-manage-listings] shortcode :

    <script>
    jQuery( document ).ready( function( $ ) {
    	$('a[href*="post_type=wpbdp_listing"]').attr('href', '#');
      
    });
    </script>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘HTTP 404 error when opening a listing in Pending status’ is closed to new replies.