Reply To: Index table problem

Ernest Marcinko
Ernest Marcinko


Can you please provide temporary back-end and FTP details to take a look at your configuration and debug through the search code?
If the configuration is correct, it might be a yet unknown issue.
To safely provide FTP and back-end access edit your first post in this thread, or upload a .txt file with the details. Both methods are safe and visible only to me an you.

For the in-stock status I can only think of a custom code solution. I’ve quickly put together a small code snippet for you, that might work. Try putting this code somewhere into your themes functions.php file in your theme directory:

add_filter( 'asp_pagepost_results', 'asp_stock_status_titles', 1, 1 );
function asp_stock_status_titles( $pageposts ) {
  foreach ($pageposts as $k=>$v) {
    // Get the stock status
    $stock_status = get_post_meta( $v->id, '_stock_status', true);
    if ( $stock_status == "" ) continue;
    // Add stock status string
    if ( $stock_status == "instock" )
       $pageposts[$k]->title  .= " - In Stock";
       $pageposts[$k]->title  .= " - Out of Stock";
  return $pageposts;
Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)