paulie77
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Problem with Page not found errorYes I have the original download, I’ll try that first and see how I get on.
Thanks again
Forum: Fixing WordPress
In reply to: Problem with Page not found errorI’m going to edit the code now and I’ll let you know how it goes.
Thank you so much again for all your help and advice!
Forum: Fixing WordPress
In reply to: Problem with Page not found errorHi @corrinarusso ,
Thanks again for all the advice. Originally on the site there wasn’t any pages set up for “For Sale” or “For Rent” but when the “For Sale” tab was pressed it would go to casafinders.es/forsale and all the properties for sale would be listed on a different page template that didn’t have a widget area.
I was trying to figure out a workaround so today I created 2 pages “For Sale” & “For Rent” and just changed the links on the menu bar urls for example:
before the url was : casafinders.es/forsale/apartment
and I replaced it with: casafinders.es/forsale/?type=apartment&sortby=for-saleBut before there was no properties showing at all and just a message “No Page Found”
I’m going to change the code that @godseseun444 edited and hopefully it will work for the time being. I think I’m going look for another theme that might suit better.
Thank you so much again for all your help !
Forum: Fixing WordPress
In reply to: Problem with Page not found errorhi @godseseun444 , thanks for the reply,
The only thing I did was update some plugins, the woocommerce database needed to be updated too. I have since installed a back up from a month ago but the problem still persists.
I’ve done all the usual things of deactivating all plugins and changing the theme, resaved the permalinks but that didn’t work.
https://casafinders.es/forsale/
https://casafinders.es/forrent//forsale/ and /forrent/ don’t seem to exist. If I click on “For Sale” on the menu bar all the subheadings don’t work either.
I can’t find anything with the slug “forsale” or “forrent” on my wordpress dashboard. I used a string locator and found them in CSS, taxonomy.php and functions.php and 1 custom.php. I had some custom work done when I was setting it up originally so these pages I’m having trouble with now would work. I’ve included it here just in case there’s something wrong in it, to be honest I can’t make much sense of it !
.
Custom work done om the functions.phpadd_action( 'init', 'wpse26388_rewrites_init_sale' ); function wpse26388_rewrites_init_sale(){ add_rewrite_rule( 'forsale/page/?([0-9]{1,})/?$', 'index.php?pagename=forsale&paged=$matches[1]', 'top' ); add_rewrite_rule( 'forsale/([^A-Z]+)/page/?([0-9]{1,})/?$', 'index.php?pagename=forsale&property_type=$matches[1]&paged=$matches[2]', 'top' ); add_rewrite_rule( 'forsale/([^A-Z]+)/?$', 'index.php?pagename=forsale&property_type=$matches[1]', 'top' ); } add_action( 'init', 'wpse2638_rewrites_init_rent' ); function wpse2638_rewrites_init_rent(){ add_rewrite_rule( 'forrent/page/?([0-9]{1,})/?$', 'index.php?pagename=forrent&paged=$matches[1]', 'top' ); add_rewrite_rule( 'forrent/([^A-Z]+)/page/?([0-9]{1,})/?$', 'index.php?pagename=forrent&property_type=$matches[1]&paged=$matches[2]', 'top' ); add_rewrite_rule( 'forrent/([^A-Z]+)/?$', 'index.php?pagename=forrent&property_type=$matches[1]', 'top' ); }
and then sort-listing-custom.php
<?php $lastSlug = get_query_var('property_type'); $slug = get_post_field( 'post_name'); $fixslug = ''; switch ($slug) { case 'forsale': $fixslug = 'for-sale'; break; case 'forrent': $fixslug = 'for-rent'; break; default: $fixslug = ''; break; } ?> <div class="property-sort"> <div class="sort-title"> <span class="sort-by"><?php _e( 'Sort By: ', 'realexpert' ); ?></span> <?php $sortby=''; if($fixslug == ""){ $all = 'current'; }else{ $all = ''; $current = ''; } if(isset($_GET['view'])){ $view = '&view='.$_GET['view']; }else{ $view = ''; } $terms = get_terms( 'property-status' ); if(isset($_GET['type']) && $_GET['type'] != ''){ $type = $_GET['type']; }else{ $type = 'all'; } echo '<a href="'.get_site_url().'/properties">'.__( 'All', 'realexpert' ).'</a>'; foreach( $terms as $term ){ $linkSlug = ''; if($fixslug == $term->slug){ $current = 'current'; }else{ $current = ''; } switch ($term->slug) { case 'for-rent': $linkSlug = 'forrent'; break; case 'for-sale': $linkSlug = 'forsale'; break; default: $linkSlug = $term->slug; break; } echo '<a class="'.$current.'" href="'.get_site_url().'/'.$linkSlug.'/'.$lastSlug.'">'.$term->name.'</a>'; } ?> </div> <div class="grid-view hidden-phone"> <?php if((isset($_GET['type']) && $_GET['type'] != 'all') || (isset($_GET['sortby']) && $_GET['sortby'] != 'all') ){ $view = '?type='.$_GET['type'].'&sortby='.$_GET['sortby']; }else{ $view = '?'; } ?> <a href="<?php echo get_permalink().$view.'&view=list'; ?>"><img src="<?php echo get_template_directory_uri().'/images/view-list.png'; ?>" /></a> <a href="<?php echo get_permalink().$view.'&view=grid'; ?>"><img src="<?php echo get_template_directory_uri().'/images/view-grid.png'; ?>" /></a> </div> </div>
Hopefully it’s something simple that I missed.
Thanks againForum: Fixing WordPress
In reply to: Problem with Page not found errorHi @corrinarusso thank you for the reply, I actually had a problem over the weekend and the site was completely suspended for going over the cpu limit. It is back up now but I haven’t been able to figure it out
https://casafinders.es/forsale/
https://casafinders.es/forrentand all the subheadings, the subitems on the menu bar.
Forum: Plugins
In reply to: [Autoptimize] Google Maps ProblemHi Frank
contact_location did it,
thanks again Frank,
you’re great !Forum: Plugins
In reply to: [Autoptimize] Google Maps Problemjust adding contact_location now
Forum: Plugins
In reply to: [Autoptimize] Google Maps ProblemHi again,
nope, still not working. I flushed cache, deleted internet history and even restarted my computer just in case.
Is it difficult just to insert an image of the map into the contact page like you suggested to someone else ?
Thanks again
Forum: Plugins
In reply to: [Autoptimize] Google Maps Problemsorry it’s this one frank
seal.js, js/jquery/jquery.js, property_location, themes/realexpert/js/property-map.js, themes/realexpert/js/contact-map.js
Forum: Plugins
In reply to: [Autoptimize] Google Maps Problemwp-content/cache/, wp-content/uploads/, admin-bar.min.css, dashicons.min.css, themes/realexpert/js/contact-map.js
Forum: Plugins
In reply to: [Autoptimize] Google Maps ProblemHi Frank,
I tried that and it doesn’t seem to work.
Thanks again
Forum: Plugins
In reply to: [Autoptimize] Google Maps ProblemHi again,
I have another little issue, the code you gave me worked great and sorted out the problem with the map not showing on the property page. I just noticed today that the map isn’t showing on the “contact us” page. Is there another code I need to add to fix this ?
I have this code added already:
seal.js, js/jquery/jquery.js, property_location, themes/realexpert/js/property-map.js
Thanks again,
PaulForum: Plugins
In reply to: [Yoast SEO] Help seting up custom taxonomies in a meta description templateHi Md Mazedul Islam Khan,
I don’t think the properties posts are assigned to properties custom taxonomies.
Could you point me in the right direction of where and how I do this ?
I’ve been looking online and I’m a lot more confused than when I started.
Thanks again
Forum: Fixing WordPress
In reply to: Help/Advice needed with a loading glitchHi
Thanks for the reply.
Sometimes it loads just fine and sometimes it loads with the glitch. When I clear the cache it seems to work but after a while the glitch comes back.Hi Charles,
Thanks for the reply. I got it sorted it was the memory in the end.
Thanks again.