Title: paulie77's Replies | WordPress.org

---

# paulie77

  [  ](https://wordpress.org/support/users/pauldeasy/)

 *   [Profile](https://wordpress.org/support/users/pauldeasy/)
 *   [Topics Started](https://wordpress.org/support/users/pauldeasy/topics/)
 *   [Replies Created](https://wordpress.org/support/users/pauldeasy/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/pauldeasy/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/pauldeasy/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/pauldeasy/engagements/)
 *   [Favorites](https://wordpress.org/support/users/pauldeasy/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/users/pauldeasy/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/pauldeasy/replies/page/2/?output_format=md)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problem with Page not found error](https://wordpress.org/support/topic/problem-with-page-not-found-error/)
 *  Thread Starter [paulie77](https://wordpress.org/support/users/pauldeasy/)
 * (@pauldeasy)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/problem-with-page-not-found-error/#post-12812301)
 * Hi [@corrinarusso](https://wordpress.org/support/users/corrinarusso/)
 * Yes I have the original download, I’ll try that first and see how I get on.
 * Thanks again
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problem with Page not found error](https://wordpress.org/support/topic/problem-with-page-not-found-error/)
 *  Thread Starter [paulie77](https://wordpress.org/support/users/pauldeasy/)
 * (@pauldeasy)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/problem-with-page-not-found-error/#post-12812252)
 * Hi [@godseseun444](https://wordpress.org/support/users/godseseun444/)
 * I’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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problem with Page not found error](https://wordpress.org/support/topic/problem-with-page-not-found-error/)
 *  Thread Starter [paulie77](https://wordpress.org/support/users/pauldeasy/)
 * (@pauldeasy)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/problem-with-page-not-found-error/#post-12812249)
 * Hi [@corrinarusso](https://wordpress.org/support/users/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-sale
 * But before there was no properties showing at all and just a message “No Page
   Found”
 * I’m going to change the code that [@godseseun444](https://wordpress.org/support/users/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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problem with Page not found error](https://wordpress.org/support/topic/problem-with-page-not-found-error/)
 *  Thread Starter [paulie77](https://wordpress.org/support/users/pauldeasy/)
 * (@pauldeasy)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/problem-with-page-not-found-error/#post-12809953)
 * hi [@godseseun444](https://wordpress.org/support/users/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/forsale/)
    [https://casafinders.es/forrent/](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.php
 *     ```
       add_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 again
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problem with Page not found error](https://wordpress.org/support/topic/problem-with-page-not-found-error/)
 *  Thread Starter [paulie77](https://wordpress.org/support/users/pauldeasy/)
 * (@pauldeasy)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/problem-with-page-not-found-error/#post-12809802)
 * Hi [@corrinarusso](https://wordpress.org/support/users/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/forsale/)
    [https://casafinders.es/forrent](https://casafinders.es/forrent)
 * and all the subheadings, the subitems on the menu bar.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Autoptimize] Google Maps Problem](https://wordpress.org/support/topic/google-maps-problem-8/)
 *  Thread Starter [paulie77](https://wordpress.org/support/users/pauldeasy/)
 * (@pauldeasy)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/google-maps-problem-8/#post-10440021)
 * Hi Frank
 * contact_location did it,
    thanks again Frank, you’re great !
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Autoptimize] Google Maps Problem](https://wordpress.org/support/topic/google-maps-problem-8/)
 *  Thread Starter [paulie77](https://wordpress.org/support/users/pauldeasy/)
 * (@pauldeasy)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/google-maps-problem-8/#post-10440009)
 * just adding contact_location now
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Autoptimize] Google Maps Problem](https://wordpress.org/support/topic/google-maps-problem-8/)
 *  Thread Starter [paulie77](https://wordpress.org/support/users/pauldeasy/)
 * (@pauldeasy)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/google-maps-problem-8/#post-10439998)
 * Hi 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Autoptimize] Google Maps Problem](https://wordpress.org/support/topic/google-maps-problem-8/)
 *  Thread Starter [paulie77](https://wordpress.org/support/users/pauldeasy/)
 * (@pauldeasy)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/google-maps-problem-8/#post-10439930)
 * sorry 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Autoptimize] Google Maps Problem](https://wordpress.org/support/topic/google-maps-problem-8/)
 *  Thread Starter [paulie77](https://wordpress.org/support/users/pauldeasy/)
 * (@pauldeasy)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/google-maps-problem-8/#post-10439920)
 * wp-content/cache/, wp-content/uploads/, admin-bar.min.css, dashicons.min.css,
   themes/realexpert/js/contact-map.js
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Autoptimize] Google Maps Problem](https://wordpress.org/support/topic/google-maps-problem-8/)
 *  Thread Starter [paulie77](https://wordpress.org/support/users/pauldeasy/)
 * (@pauldeasy)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/google-maps-problem-8/#post-10439894)
 * Hi Frank,
 * I tried that and it doesn’t seem to work.
 * Thanks again
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Autoptimize] Google Maps Problem](https://wordpress.org/support/topic/google-maps-problem-8/)
 *  Thread Starter [paulie77](https://wordpress.org/support/users/pauldeasy/)
 * (@pauldeasy)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/google-maps-problem-8/#post-10439702)
 * Hi 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,
    Paul
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Help seting up custom taxonomies in a meta description template](https://wordpress.org/support/topic/help-seting-up-custom-taxonomies-in-a-meta-description-template/)
 *  Thread Starter [paulie77](https://wordpress.org/support/users/pauldeasy/)
 * (@pauldeasy)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/help-seting-up-custom-taxonomies-in-a-meta-description-template/#post-10437683)
 * Hi 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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Help/Advice needed with a loading glitch](https://wordpress.org/support/topic/help-advice-needed-with-a-loading-glitch/)
 *  Thread Starter [paulie77](https://wordpress.org/support/users/pauldeasy/)
 * (@pauldeasy)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/help-advice-needed-with-a-loading-glitch/#post-10435929)
 * Hi
    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.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[reSmush.it : The original free image compressor and optimizer plugin] Failed to load resource: the server responded with a status of 500](https://wordpress.org/support/topic/failed-to-load-resource-the-server-responded-with-a-status-of-500-4/)
 *  Thread Starter [paulie77](https://wordpress.org/support/users/pauldeasy/)
 * (@pauldeasy)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/failed-to-load-resource-the-server-responded-with-a-status-of-500-4/#post-10432298)
 * Hi Charles,
 * Thanks for the reply. I got it sorted it was the memory in the end.
 * Thanks again.

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/users/pauldeasy/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/pauldeasy/replies/page/2/?output_format=md)