1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Escape Tags /"

Discussion in 'HTML & Website Design' started by JohnS0N, Feb 24, 2010.

  1. #1
    For some reason wordpress is putting escape tags (\") around my URLs and therefor making them unusable, 404 pages. I'm trying to figure it out for the past hour, but can't seem to find a proper reason why I get this error.

    http://www.clearcreekfinancial.com/ - Look at below -> H3 - Where to start -> the links below each display as example:

    http://www.clearcreekfinancial.com/\"http://www.clearcreekfinancial.com/what-is-a-good-credit-score-and-why-is-it-important\" - instead of just - http://www.clearcreekfinancial.com/what-is-a-good-credit-score-and-why-is-it-important

    as is written in the code. I don't get this error on my similar website at:

    http://www.personal-payday-loans.info
     
    Last edited: Feb 24, 2010
    JohnS0N, Feb 24, 2010 IP
  2. s_ruben

    s_ruben Active Member

    Messages:
    735
    Likes Received:
    26
    Best Answers:
    1
    Trophy Points:
    78
    #2
    Check the permalink. Go to Settings->Permalink and set it "Default" or change the "Custom Structure".
     
    s_ruben, Feb 24, 2010 IP
  3. JohnS0N

    JohnS0N Notable Member

    Messages:
    1,581
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    210
    #3
    I have the custom structure at "/%postname%", but that's not the issue, since this exact link structure works on the other website.

    EDIT: It would also be good to mention that this happens only in that section. The links work good in the header, footer and elsewhere on the blog/website.
     
    Last edited: Feb 24, 2010
    JohnS0N, Feb 24, 2010 IP
  4. s_ruben

    s_ruben Active Member

    Messages:
    735
    Likes Received:
    26
    Best Answers:
    1
    Trophy Points:
    78
    #4
    Can you write here that part of the code, which makes it? Because it makes wrong link

    <a href=\"http://www.clearcreekfinancial.com/what-is-a-good-credit-score-and-why-is-it-important\">
     
    s_ruben, Feb 24, 2010 IP
  5. JohnS0N

    JohnS0N Notable Member

    Messages:
    1,581
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    210
    #5
    Yeah exactly. The php somehow makes the link wrong.

    As you can see the index page is completely different, than the pages/posts are. This is the complete page, where this code can be seen:

    However, the value is set inside my admin control panel. The value being:
    Where To Start
    Code (markup):
    for feature box 1 title,
    <ul>
    <li><a href="http://www.clearcreekfinancial.com/what-is-a-good-credit-score-and-why-is-it-important">Whats a Good Credit Score</a></li>
    <li><a href="http://www.clearcreekfinancial.com/what-is-the-minimum-credit-score-for-a-mortgage">Minimum Credit Score For Mortgage</a></li>
    <li><a href="http://www.clearcreekfinancial.com/what-is-considered-a-good-credit-score">What Is Considered a Good Credit Score</a></li>
    <li><a href="http://www.clearcreekfinancial.com/what-is-a-good-credit-score-range">Good Credit Score Range</a></li>
    <li><a href="http://www.clearcreekfinancial.com/tips-on-how-to-fix-my-credit">How To Fix My Credit</a></li>
    <li><a href="http://www.clearcreekfinancial.com/obtaining-a-mortgage-with-a-600-credit-score">600 Credit Score Mortgage</a></li>
    <li><a href="http://www.clearcreekfinancial.com/main-methods-in-building-your-credit-score">Building Your Credit Score</a></li>
    <li><a href="http://www.clearcreekfinancial.com/learn-how-to-raise-a-credit-score">How To Raise Credit Score</a></li>
    <li><a href="http://www.clearcreekfinancial.com/what%e2%80%99s-my-credit-score-how-to-determine-a-credit-rating">Whats My Credit Score</a></li>
    </ul>
    Code (markup):
    - for feature box 1 content

    etc. etc. for the feature box 2, 3 and 4...

    I can't see anything wrong with the code...


    <div id="wrapper" class="container_12" >
            	 
        <div id="content" class="grid_8">
    	
    	<?php if ( !get_option('bizzthemes_footerbox1_hide')) { ?>	
                 
            <!-- planbox1 start -->
                 	
    		    <div class="feature_box grid_4 aleft fspacer">
    			
                
                <?php if ( get_option('bizzthemes_box1_img_url') != "") { ?>	
    		
                            <img src="<?php echo get_option('bizzthemes_box1_img_url'); ?>" alt=""  />
                    
                        <?php } ?>
                
                	
                    <div class="feature_box_content">
                    
    				<?php if ( get_option('bizzthemes_box1_title') != "") { ?>	
    		
    		             <h3> <?php echo get_option('bizzthemes_box1_title'); ?>  </h3>
    	
    	            <?php } ?>	 
                        
    				 
                        					
    				    <?php if ( get_option('bizzthemes_box1_content') != "") { ?>	
    		
    		               <p> <?php echo get_option('bizzthemes_box1_content'); ?>  </p>
    	
    	                <?php } ?>
    					
    					</div>
    					
    					 
                                                                            
                     
                    
    			</div>
                    
    		<!-- planbox1 #end  -->
    		
    	<?php } ?>
        
    	<?php if ( !get_option('bizzthemes_footerbox2_hide')) { ?>	
    	
            <!-- planbox2 start -->
                 	
    		    <div class="feature_box grid_4 aright fspacer">
    			
                
                <?php if ( get_option('bizzthemes_box2_img_url') != "") { ?>	
    		
                            <img src="<?php echo get_option('bizzthemes_box2_img_url'); ?>" alt=""  />
                    
                        <?php } ?>
                
                	
                    <div class="feature_box_content">
                    
    				<?php if ( get_option('bizzthemes_box2_title') != "") { ?>	
    		
    		             <h3> <?php echo get_option('bizzthemes_box2_title'); ?>  </h3>
    	
    	            <?php } ?>	 
                        
    				 
                        					
    				    <?php if ( get_option('bizzthemes_box2_content') != "") { ?>	
    		
    		               <p> <?php echo get_option('bizzthemes_box2_content'); ?>  </p>
    	
    	                <?php } ?>
    					
    					</div>
    					
    					 
                                                                            
                     
                    
    			</div>
                    
    		<!-- planbox2 #end  -->
            
            <div class="clearfix"></div>
    		
    	<?php } ?>
        
    	<?php if ( !get_option('bizzthemes_footerbox3_hide')) { ?>	
    	
            <!-- planbox3 start -->
                 	
    		    <div class="feature_box grid_4 aleft">
    			
                
                <?php if ( get_option('bizzthemes_box3_img_url') != "") { ?>	
    		
                            <img src="<?php echo get_option('bizzthemes_box3_img_url'); ?>" alt=""  />
                    
                        <?php } ?>
                
                	
                    <div class="feature_box_content">
                    
    				<?php if ( get_option('bizzthemes_box3_title') != "") { ?>	
    		
    		             <h3> <?php echo get_option('bizzthemes_box3_title'); ?>  </h3>
    	
    	            <?php } ?>	 
                        
    				 
                        					
    				    <?php if ( get_option('bizzthemes_box3_content') != "") { ?>	
    		
    		               <p> <?php echo get_option('bizzthemes_box3_content'); ?>  </p>
    	
    	                <?php } ?>
    					
    					</div>
    					
                     
    			</div>
                    
    		<!-- planbox3 #end  -->
        
    	<?php } ?>
        
        
        	
        
    	<?php if ( !get_option('bizzthemes_footerbox4_hide')) { ?>	
    	
            <!-- planbox4 start -->
                 	
    		     <div class="feature_box grid_4 aright">
    			
                
                <?php if ( get_option('bizzthemes_box4_img_url') != "") { ?>	
    		
                            <img src="<?php echo get_option('bizzthemes_box4_img_url'); ?>" alt=""  />
                    
                        <?php } ?>
                
                	
                    <div class="feature_box_content">
                    
    				<?php if ( get_option('bizzthemes_box4_title') != "") { ?>	
    		
    		             <h3> <?php echo get_option('bizzthemes_box4_title'); ?>  </h3>
    	
    	            <?php } ?>	 
                        
    				 
                        					
    				    <?php if ( get_option('bizzthemes_box4_content') != "") { ?>	
    		
    		               <p> <?php echo get_option('bizzthemes_box4_content'); ?>  </p>
    	
    	                <?php } ?>
    					
    					</div>
    					
    					 
                                                                            
                     
                    
    			</div>
                    
    		<!-- planbox3 #end  -->
        
    	<?php } ?>
                  
        </div> <!-- content #end -->
        
    	<?php if ( !get_option('bizzthemes_reviewbox_hide')) { ?>	
    	
        <div id="sidebar" class="grid_4"> 
    			
    		<?php if ( get_option('bizzthemes_review_title') != "") { ?>	
    		
    		    <h2><?php echo get_option('bizzthemes_review_title'); ?></h2>
    	
    	    <?php } ?>
    		
    		<blockquote>
    		
    		<?php if ( get_option('bizzthemes_review_blockquote') != "") { ?>	
    		
    		    <p><?php echo get_option('bizzthemes_review_blockquote'); ?></p>
    	
    	    <?php } ?>
    		
    		<?php if ( get_option('bizzthemes_review_cite') != "") { ?>	
    		
    		    <cite>- <?php echo get_option('bizzthemes_review_cite'); ?></cite>
    	
    	    <?php } ?>
    		
    		</blockquote>
    		
    		<?php if ( get_option('bizzthemes_review_button_image') != "") { ?>	
    		
    		    <a href="<?php echo get_option('bizzthemes_review_button_url'); ?>"><img src="<?php echo get_option('bizzthemes_review_button_image'); ?>" alt="" /></a> 
    	
    	    <?php } ?>
                                      
        </div> <!-- sidebar #end -->
    	
    	<?php } ?>
                
     </div>  <!-- wrapper #end -->
    Code (markup):
     
    JohnS0N, Feb 24, 2010 IP
  6. s_ruben

    s_ruben Active Member

    Messages:
    735
    Likes Received:
    26
    Best Answers:
    1
    Trophy Points:
    78
    #6
    Change the code
    echo get_option('bizzthemes_box1_content'); 
    Code (markup):
    to
    echo stripslashes(get_option('bizzthemes_box1_content'));
    Code (markup):
    Do it with echo get_option('bizzthemes_box2,3..._content'); too.
     
    s_ruben, Feb 24, 2010 IP
    JohnS0N likes this.
  7. JohnS0N

    JohnS0N Notable Member

    Messages:
    1,581
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    210
    #7
    Actually there is something wrong with the code... figured it out. Although I don't know why this exact same code works on the other website...

    What I did is added the stripslashes function and make it like:

    <?php echo stripslashes(get_option('bizzthemes_box1_content')); ?>

    instead of the former <?php echo get_option('bizzthemes_box1_content'); ?>
     
    JohnS0N, Feb 24, 2010 IP
  8. JohnS0N

    JohnS0N Notable Member

    Messages:
    1,581
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    210
    #8
    Lol, thanks, looks like we both figured it out at the same time. Some reps+ are going to you anyway.

    However, the question still bugs me why does this same code work on the other website? (no stripslashes is included in the code, however it works anyway)

    http://www.personal-payday-loans.info/
     
    JohnS0N, Feb 24, 2010 IP
  9. s_ruben

    s_ruben Active Member

    Messages:
    735
    Likes Received:
    26
    Best Answers:
    1
    Trophy Points:
    78
    #9
    Maybe it is because the Wordpress versions are not the same. Maybe the theme versions are not the same.
     
    s_ruben, Feb 24, 2010 IP
  10. JohnS0N

    JohnS0N Notable Member

    Messages:
    1,581
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    210
    #10
    The theme versions are the same, only the css is different.

    But it could indeed be the wordpress version, and if that's the case I have a solution at hand once I update.

    Cheers ;)
     
    JohnS0N, Feb 24, 2010 IP