Grazie per la risposta andrea ma continuo a non capire 
Questo è il codice della pagina delete.php
Codice PHP:
<?php
session_start();
function PricerrTheme_filter_ttl($title){return __("Delete job",'PricerrTheme')." - ";}
add_filter( 'wp_title', 'PricerrTheme_filter_ttl', 10, 3 );
if(!is_user_logged_in()) { wp_redirect(get_bloginfo('siteurl')."/wp-login.php"); exit; }
global $current_user, $wp_query;
get_currentuserinfo;
$pid = $_GET['jobid'];
$post = get_post($pid);
$uid = $current_user->ID;
$title = $post->post_title;
$cid = $current_user->ID;
if($uid != $post->post_author) { echo 'Not your post. Sorry!'; exit; }
//-----------------------------------------------------------------------------------------------
get_header();
//--------------------------------------------------
$price = get_post_meta($pid, 'price', true);
$ttl = $post->post_title;
$max_days = get_post_meta($pid, "max_days", true);
$location = wp_get_object_terms($pid, 'job_location');
$cat = wp_get_object_terms($pid, 'job_cat');
?>
<div id="content">
<div class="padd10">
<div class="box_title"><?php echo sprintf(__("Delete Job - %s", 'PricerrTheme'), $title); ?></div>
<div class="box_content">
<?php
if(isset($_POST['are_you_sure']))
{
wp_trash_post($pid);
echo sprintf(__("The job has been deleted. <a href='%s'>Go back</a> to your account.", 'PricerrTheme'),PricerrTheme_my_account_link() );
}
else
{
?>
<form method="post" enctype="application/x-www-form-urlencoded">
<?php _e("Are you sure you want to delete this job?", 'PricerrTheme'); ?><br/><br/>
<input type="submit" name="are_you_sure" value="<?php _e("Confirm Deletion", 'PricerrTheme'); ?>" />
</form>
<?php } ?>
</div>
</div></div>
<?php PricerrTheme_get_users_links(); ?>
<?php
get_footer();
?>
e questa è la pagina da dove viene richiamato il DELETE
Codice PHP:
<?php/*****************************************************************************
*
* copyright(c) - sitemile.com - PricerrTheme
* More Info: http://sitemile.com/p/pricerr
* Coder: Saioc Dragos Andrei
* Email: andreisaioc@gmail.com
*
******************************************************************************/
if(!function_exists('PricerrTheme_my_account_area_function'))
{
function PricerrTheme_my_account_area_function()
{
global $current_user;
get_currentuserinfo();
$uid = $current_user->ID;
update_user_meta($uid,'ip_reg',$_SERVER['REMOTE_ADDR']);
update_user_meta($uid,'last_user_login', current_time('timestamp',0));
//-------------------------------------
?>
<div id="content" class="directly-frame">
<!-- page content here -->
<?php
global $wpdb;
$s = "select orders.id oid, posts.ID pid, count(chatbox.id) mess_count from ".$wpdb->prefix."job_chatbox chatbox, ".$wpdb->prefix."job_orders orders, $wpdb->posts posts where
chatbox.rd_receiver='0' AND chatbox.oid=orders.id AND chatbox.uid!='$uid' AND posts.ID=orders.pid AND (posts.post_author='$uid' OR orders.uid='$uid') group by orders.id order by orders.id desc ";
$r = $wpdb->get_results($s);
//echo '<pre>';
//print_r($r);
//echo '<pre>';
if(count($r) > 0)
{
?>
<div class="info_box_m">
<table width="100%">
<?php
foreach($r as $row)
{
$pst = get_post($row->pid);
$lkm = get_bloginfo('siteurl'). "/?jb_action=chat_box&oid=" . $row->oid;
echo '<tr>';
echo '<td width="32"><img src="'.get_bloginfo('template_url').'/images/i_icon.png" border="0" /></td>';
echo '<td>';
echo sprintf(__('You have %s unread message(s) on the order for: <a href="%s">%s</a>','PricerrTheme') , $row->mess_count, $lkm, PricerrTheme_wrap_the_title($pst->post_title, $row->pid));
echo '</td></tr>';
}
?>
</table>
</div>
<?php } ?>
<!-- notifications -->
<div class="box_title3"><?php _e("My Jobs",'PricerrTheme'); ?></div>
<div class="job_info_stuff2">
<div class="padd5">
<div class="font-my-account-info"><?php _e("Active","PricerrTheme"); ?>: <?php echo pricerrTheme_nr_active_jobs($uid); ?></div>
<div class="separator_my-account"></div>
<div class="font-my-account-info"><?php _e("Inactive","PricerrTheme"); ?>: <?php echo pricerrTheme_nr_inactive_jobs($uid); ?></div>
<div class="separator_my-account"></div>
<div class="font-my-account-info"><?php _e("In Review","PricerrTheme"); ?>: <?php echo pricerrTheme_nr_in_review_jobs($uid); ?></div>
</div>
</div>
<!-- ####### -->
<div class="box_content">
<?php
global $wp_query;
$query_vars = $wp_query->query_vars;
$post_per_page = 10;
query_posts( "meta_key=closed&meta_value=0&post_status=publish,draft&post_type=job&order=DESC&orderby=id&author=".$uid.
"&posts_per_page=".$post_per_page."&paged=".$query_vars['paged'] );
if(have_posts()) :
while ( have_posts() ) : the_post();
PricerrTheme_get_post_small();
endwhile;
if(function_exists('wp_pagenavi')):
wp_pagenavi(); endif;
else:
_e("There are no jobs yet.",'PricerrTheme');
endif;
wp_reset_query();
?>
</div>
<!-- page content here -->
</div>
<?php
PricerrTheme_get_users_links();
}
}
?>
Quello che vorrei, siccome sono solo scritte, è da aggiungere o modificare lo stile del bottone.
E per fare cio dovrei richiamare la pagina delete con il tasto. Quello che mi hai detto te puo andare bene?
Se si potresti descrivermi come farlo?
grazie