scamp
Forum Replies Created
-
AuthorPosts
-
March 17, 2016 at 1:44 am in reply to: How can I customize title of custom post type listing/detail page. #141456
Ok – I got this to work.
Copy the listing-detail.php file from geodirectory-templates to a folder called geodirectory in your child theme.
Change the line do_action(‘geodir_details_main_content’, $post); to something like do_action(‘geodir_details_main_content_hmf’, $post);
In your child theme functions.php file copy the following:
function geodir_action_page_title_hmf()
{
global $post;
$class = apply_filters(‘geodir_page_title_class’, ‘entry-title fn’);$class_header = apply_filters(‘geodir_page_title_header_class’, ‘entry-header’);
$my_city = $post->post_city;
$my_state = $post->post_region;echo ‘<header class=”‘ . $class_header . ‘”><h1 class=”‘ . $class . ‘”>’ . stripslashes(get_the_title()) . ‘ – ‘ . $my_city .’, ‘ . $my_state . ‘ </h1></header>’;
}
add_action(‘geodir_details_main_content_hmf’, ‘geodir_action_before_single_post’, 10);
add_action(‘geodir_details_main_content_hmf’, ‘geodir_action_page_title_hmf’, 20);
add_action(‘geodir_details_main_content_hmf’, ‘geodir_action_details_slider’, 30);
add_action(‘geodir_details_main_content_hmf’, ‘geodir_action_details_taxonomies’, 40);
add_action(‘geodir_details_main_content_hmf’, ‘geodir_show_detail_page_tabs’, 60);
add_action(‘geodir_details_main_content_hmf’, ‘geodir_action_after_single_post’, 70);
add_action(‘geodir_details_main_content_hmf’, ‘geodir_action_details_next_prev’, 80);This will show the Listing title – city, region
You can edit geodir_action_page_title_hmf to add in Country as well.
March 17, 2016 at 1:13 am in reply to: How can I customize title of custom post type listing/detail page. #141423I would also like to be able to add the location to the title on the Listing Detail page. Can this be a future feature?
It seems logical if we can edit the Category listing page title we should be able to edit the Detail Page Listing Title.
Thanks
Hi – just checking int o see what the latest is on the conversion tool.
Thanks
I would like to convert my GeoTheme site over to GeoDirectory… any update on the geo_exporter script?
Thanks
May 11, 2014 at 8:15 am in reply to: How to totally change the current theme to be GeoDirectory theme? #1761Hi Manilaboy – please email me at sara at babiesandtoddlers.com.au
thanks
Sara
I have not decided on a theme yet – looking at several magazine type ones – but also waiting to look at the new framework and see if I should build my own.
S
The overall value is in the geodir_post_review table for each comment – but the value in the geodir_gd_place_detail table for the post is null.
I don’t want multi ratings at the moment, so maybe the field overall_rating in the geodir_gd_place_detail table is only for when you have multi ratings enabled??
Thanks
S
-
AuthorPosts