Stiofan O'Connor
Forum Replies Created
-
AuthorPosts
-
Hi Pierre,
You can remove them with the following
remove_action('admin_init', 'geodir_filesystem_notice'); remove_action('admin_notice', 'geodir_filesystem_notice');Thanks,
Stiofan
It has nothing to do with user roles “subscriber, author, editor,admin etc”
It basically a setting for enabling/disabling the users pages, if its disabled, its not going to work 🙂Stiofan
yeah give it a try.
Stiofan
I updated my code here and also on your site.
In this case its not working because its looking for “mixto-restaurant” but the actual url is “mixto-restaurant-1”
If this is wide spread we could try altering the query a bit but if its just that listing then its not really worth it.
Stiofan
Hi Adrian,
What you could do is use the location SEO description and add shortcodes and the text you want.
You can then add the locatino description widget to one of the homepage widget areas.
Then add this code snippet to enable shortcodes to work there:
add_filter('geodir_location_description','do_shortcode');Other than that widget logic might work but i have not tested.
Thanks,
Stiofan
Hi Pat,
function _my_fix_listings_404s(){ if( is_404() ){ $url = $_SERVER['REQUEST_URI']; $slug = basename($url); global $wpdb; $post_id = $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_type IN ('gd_place','gd_event') AND post_status = 'publish' AND post_name = %s", $slug)); if(!empty($post_id)){ wp_safe_redirect( esc_url( get_permalink( $post_id) ), 301 ); exit; } } } add_action( 'template_redirect', '_my_fix_listings_404s' );Stiofan
Yes, basically if you dont have author archives enabled then you can’t view authors and authors cant view their profiles so you need that active.
Stiofan
This reply has been marked as private.OK, thanks for keeping us posted.
What am i checking here? The search seems to work, no 404’s?
Stiofan
if it were me..
I would write a wee snippet that only ran on the 404 page, it would grab the last slug and check if its a real post and if so redirect to the proper url.
Stiofan
“i enabled category in url but then google still gives them without the category in it”
The ones i checked from this search https://wpgeodirectory.com/support/topic/epic-404-on-listings/#post-388616
Now work, so i gess google has a mix and mash of some with and some without, just pick one and stick with it.
Check if there are many links google has to broken urls, you might have to do some redirects.
Stiofan
You have other caching plugins enabled? I can’t test while they are enabled.
Stiofan
What visability options are u currently using? Can you provide wp-admin details in a private reply and i’ll take a look.
Stiofan
This reply has been marked as private. -
AuthorPosts