Add this at the very bottom of your theme functions.php:
Notes:
1.- Take care not to leave blank lines after this.
2.- If your theme functions.php doesn't end with ?> skip first line of my code.
<?php
function redirect_to_user_dashboard() {
header('Location: ' . osc_user_dashboard_url());
exit;
}
osc_add_hook('posted_item', 'redirect_to_user_dashboard');
?>
Regards
@teseo
this code works but it has one problem,
test this and see the result: (bender theme)
1. publish a listing. (put a value for searchable custom-fields).
2. now directly go to search.php page.
3. now on the sidebar search, you can see the searchable custom-fields have the search values of recently published listing's custom-fields values.
regards,