Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • You can add the following code to your theme’s functions.php file, but you just have to keep in mind that conflicts can happen easily…

    First, we will remove the slug from the permalink:

    function na_remove_slug( $post_link, $post, $leavename ) {
    
        if ( 'listings' != $post->post_type || 'publish' != $post->post_status ) {
            return $post_link;
        }
    
        $post_link = str_replace( '/' . $post->post_type . '/', '/', $post_link );
    
        return $post_link;
    }
    add_filter( 'post_type_link', 'na_remove_slug', 10, 3 );

    Just removing the slug isn’t enough. Right now, you’ll get a 404 page because WordPress only expects posts and pages to behave this way. You’ll also need to add the following:

    function na_parse_request( $query ) {
    
        if ( ! $query->is_main_query() || 2 != count( $query->query ) || ! isset( $query->query['page'] ) ) {
            return;
        }
    
        if ( ! empty( $query->query['name'] ) ) {
            $query->set( 'post_type', array( 'post', 'listings', 'page' ) );
        }
    }
    add_action( 'pre_get_posts', 'na_parse_request' );

    You will need to refresh your permalinks by going to Settings -> Permalinks and clicking the save button.

    Hello,

    For something like this you would be looking at a custom API integration that leverages the IDX Broker API when people signup on your website to create them as a lead within IDX Broker so they can log in using their email address.

    To register a new user in WordPress when someone signs up in IDX Broker could also be done with a custom API endpoint within your WordPress website that could be triggered using Zapier or another sort of webhook.

    All of these items would require some custom development to accomplish.

    IDX Broker has a large number of Developer Partners that could be able to assist you with something like this: https://idxbroker.com/developers/search

    I hope that helps provide you some insight there.

    Hello Mark,

    I would suggest instead to create a saved search within the IDX Broker dashboard and then create a showcase widget using the built in shortcode system within the plugin.

    The URL’s you are referring to are widgets that are created within the IDX Broker dashboard and don’t have anything to do with the WordPress plugin. To edit those widgets and correct the search results you need to edit the search criteria from within the IDX Broker dashboard.

    Hello Ann,

    Looks like the issue with the property type display has been resolved for you. This is part of the IMPress Listings plugin. Let me know if you still need help with this ??

Viewing 4 replies - 1 through 4 (of 4 total)