It does not display invoices in the plugin dashboard
It does not display invoices in the plugin dashboard
*BUMP*
I just upgraded my site to WP 3.1 and now my invoices aren't showing either. It says "No posts found" and shows "All (22)", but the invoices won't show even if I click on Published, Scheduled, or Trash.
*Bump* One more time.
Just people can know this is a real problem, I am also experiencing this issue where when I click on "Invoices", it says "No posts found" where the invoices should be. Though it still shows "All (2)" and "Published (2)". So I am unable to go in and edit previous invoices, even though I am able to create new ones.
Before I upgraded to WordPress 3.1, this Invoice plugin worked perfectly.
OK fixed it.
wordpress3-invoice/core/invoice.php line 150ish:
code
function invoice_number_order( $query )
{
if( !is_admin() )
return $query;
if($query->query['post_type'] == 'invoice')
{
if(function_exists('set_query_var')){
set_query_var( 'meta_query', array( array( 'key' => 'invoice_number', 'value' => false ) ) );
set_query_var( 'orderby','invoice_number' );
set_query_var( 'order','DESC' );
}else{
$query->set( 'meta_key', 'invoice_number' );
$query->set( 'meta_value', false );
$query->set('orderby', 'invoice_number');
$query->set('order', 'DESC');
}
return $query;
}
}
/code
This topic has been closed to new replies.