• Resolved smash_uk

    (@smash_uk)


    Thanks for the wonderful plugin, it really is great!

    I am using it on a friends website but for vans, how difficult would it be to change cars-for-sale to vans-for-sale?
    I use this to list all sales items as advised on another thread.

    I am quite new to wp and have very limited knowledge of it, would it be difficult to do?

    https://www.ads-software.com/plugins/car-demon/

Viewing 1 replies (of 1 total)
  • Plugin Author theverylastperson

    (@theverylastperson)

    Thanks for the kind words, they’re greatly appreciated.

    There’s is now a commercial PlugIn that does exactly that;
    https://www.cardemons.com/shop/car-demon-not-cars-for-sale/

    For those of you who are interested in the mechanics, the Not Cars PlugIn works by adding an action to init and re-registering the cars_for_sale post type with new labels.

    register_post_type( 'cars_for_sale',
    		array(
    		  'labels' => array(
    			'name' => $cd_for_sale_plural_u. __( ' For Sale', 'car-demon-not-cars' ),
    			'singular_name' => __( 'New ','car-demon' ) . $cd_for_sale_plural,
    		  ),
    		  'public' => true,
    		  'rewrite' => array('slug' => $cd_for_sale_plural.'-for-sale'),
    		  'has_archive' => true,
    		  'supports' => array('title','editor','thumbnail')
    		)
    	);

    Then we grab global $wp_post_types; and update the labels and the url rewrite. We then go in and resave our permalinks and Car Demon should now give you urls like;

    https://yoursite.com/boats-for-sale or whatever you opt to switch it to.

    We also have an admin area that say ‘Boats for sale’ instead of ‘Cars for sale’ making it more logical to manage.

    Make sure you’re running the latest development version. It’s available on the developer’s tab.

    Hope this helps.

    -j

Viewing 1 replies (of 1 total)
  • The topic ‘Modify cars-for-sale to vans-for-sale’ is closed to new replies.