Changing the listings_category slug


Is it possible to change the listings_category slug to something else that is neater, such as

business_listing, listing, or even just removing that altogether?



  • Kimberly
    • Champion of Loops


    The portion of of the plugin that sets this is in the core.php

    * Create the default Directory pages.
    * @return void
    function create_default_pages() {
    /* Create neccasary pages */

    $directory_page = $this->get_page_by_meta( 'listings' );
    if ( !$directory_page || 0 >= $directory_page->ID ) {
    $current_user = wp_get_current_user();
    /* Construct args for the new post */
    $args = array(
    'post_title' => 'Listings',
    'post_status' => 'publish',
    'post_author' => $current_user->ID,
    'post_type' => 'page',
    'ping_status' => 'closed',
    'comment_status' => 'closed'
    $parent_id = wp_insert_post( $args );
    add_post_meta( $parent_id, "directory_page", "listings" );

    the function starts on line 335. I am not sure if it will work to change this, as I think it is tied in to the post type… but you, sir, are more code savvy than I, so I imagine you will know how to handle that :slight_smile:

    You could however use an .htaccess rule to rewrite ‘listings’ to something else.

    Let me know if this is helpful! I’ll leave open just incase :slight_smile:



Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.