Price Custom Field/Showing Price in GEO Search
-
I am trying to add the price from classified listings to the GEO search results.
I need the ‘custom_field_name’ that is associated with the classified listing price for the function to work.function gmw_add_classified_price_to_results( $gmw, $post ) {
$price = get_post_meta( $post->ID, ‘custom_field_name’, true );
if ( $price ) {
echo ‘Price: ‘ . $price;
}
}
add_action( ‘gmw_posts_loop_before_get_directions’, ‘gmw_add_classified_price_to_results’, 50, 2 );The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Price Custom Field/Showing Price in GEO Search’ is closed to new replies.