Relevenssi for Custom fields
-
Hi Mikko,
I have a custom post that is filled with custom post types:
function change_restaurant_booking_columns( $cols ) {
$cols = array(
‘cb’ => ‘<input type=”checkbox” />’,
‘title’ => __( ‘Booking Ref’, ‘trans’ ),
‘rest_booking_status’ => __( ‘Booking Status’, ‘trans’ ),
‘rest_booking_amount’ => __( ‘Total Fees’, ‘trans’ ),
‘rest_booking_contact’ => __( ‘Contact Details’, ‘trans’ ),
‘date’ => __( ‘Date’, ‘trans’ )
);
return $cols;
}
add_filter( ‘manage_restaurant-booking_posts_columns’, ‘change_restaurant_booking_columns’ );// [Restaurant-Booking] columns contents in the column view
function change_restaurant_booking_columns_content( $col, $post_id ) {
switch ( $col ) {
case ‘rest_booking_status’:
$status = get_post_meta( $post_id, ‘_restaurant_booking_status’, true );
if ( $status == 0 ) echo ‘Unpaid/Pending’;
if ( $status == 1 ) echo ‘Paid’;
if ( $status == 2 ) echo ‘Used/Claimed’;
if ( $status == -1 ) echo ‘Cancelled’;
break;Something like that is what makes a a page on the admin. What i want to do is being able to search inside custom fields. For example if you enter Anne, it should show me the booking related to Anne.
is this possible with your plugin? How?Thank you very much
- The topic ‘Relevenssi for Custom fields’ is closed to new replies.