WordPress.org

Ready to get started?Download WordPress

Forums

Remove Permalink (2 posts)

  1. Munruss
    Member
    Posted 1 year ago #

    Hello! I had hired a web designer, and she built my site. All went well until she received full payment, and now communication is something of the past. Anyway, I am looking for help with two issues I am having.

    Please take a look at my website http://www.lakedeerfield.net

    In each section, I want to make sure when I click on a posting, the permalink is off. Here is the code from index.php:

    <?php get_header(); ?>
    <!--
    <div class="container">
    <div class="slidebox">--><!--
    <div class="flexslider">
    	<ul class="slides">
    		<?php
    		/*	$slide = get_option('orio_slide_cat');
    			$count = get_option('orio_slide_count');
    			$slide_query = new WP_Query( 'category_name='.$slide.'&posts_per_page='.$count.'' );
    			while ( $slide_query->have_posts() ) : $slide_query->the_post();
    		*/?>	
    
    <li>
    			<a>"><img class="slideimg" src="<?php // bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php //echo get_image_url()?>&h=350&w=960&zc=1" title="" alt="" /></a>
    		</li>
    		<?php //endwhile; ?>
    
    </div>--><!--
    </div>
    </div>-->
    
    <div class="container">
    <div id="sidebar-menu">
    <h2 style="text-align: center; margin-top: 30px;margin-bottom: 0;font-size: 30px;margin-right: 17px;"><!--<img src="<?php bloginfo('template_url'); ?>/images/welcome.gif" alt="Welcome to Lake Deerfield" width="124" height="37" />-->
    Welcome</h2>
    <?php wp_nav_menu( array( 'container_id' => 'submenu', 'theme_location' => 'primary','menu_id'=>'web2feel' ,'menu_class'=>'sfmenu','fallback_cb'=> 'fallbackmenu' ) ); ?>
    <h2 style="text-align: center; margin-top: 30px;margin-bottom: 0;font-size: 30px;margin-right: 17px;"><!--<img src="<?php bloginfo('template_url'); ?>/images/members.gif" alt="Lake Deerfield Members" width="124" height="37" />-->Members</h2>
    <?php wp_nav_menu( array( 'container_id' => 'submenu', 'theme_location' => 'secondary','menu_id'=>'web2feel' ,'menu_class'=>'sfmenu','fallback_cb'=> 'fallbackmenu' ) ); ?>
    
    <div class="clear">
    
    </div>
    
    <? if (is_user_logged_in()) { } else { ?>
    <div class="loginusers">Login</div>
    
    <? } ?>
    
    <?php sidebarlogin(); ?>
    <? if (is_user_logged_in()) {  } else { ?>
    <!--<form><input type="button" name="login" value='Login Now' id="loginNow" onClick="parent.location='<? bloginfo('url'); ?>/login-form/'"></form>
    <div class="lost_pass"></a><a>/wp-login.php?action=lostpassword">Lost your password?</a></div>
    <div class="clear"></div>-->
    <div class="signup"><a>/sign-up/">First time user</a></div> <? } ?>
    <div id="sidebar-menu-bottom"></div>
    </div>
    
    <div id="content">
    <div id="home-content">
    	<?php $welcome = new WP_Query( 'pagename=welcome' );	?>		
    
    		<?php if ( have_posts() ) : while ( $welcome->have_posts() ) : $welcome->the_post(); ?>
    		<div id="home-title"><h3 class="title"><?php the_title(); ?></h3>
    		<p style="border-bottom: solid 1px #ffcc00; margin-top: -10px; margin-right: 40px; width: 362px; float: right; margin-bottom: 0;"></p>
    		</div>
    
    		<div class="clear"></div>
    		<?php the_content(); ?>
    
    		<?php endwhile; endif; ?>
    		<?php wp_reset_query(); ?>
    <div class="clear"></div>
    
    <div id="left-part" class="box-outer">
    <div class="box">
     <h3 class="heading"><!--~ Im a Box ~ -->News</h3> <div id="aa">
    <?php query_posts( 'posts_per_page=5&cat=5&showposts=1' ); ?>
    		<?php if ( have_posts() ) : while (have_posts() ) : the_post(); ?>
    		<h4 class="prevsa" style="margin-top: 15px;"><a>" title="Permalink to <?php the_title(); ?>"><?php the_content(); ?></a></h4>
    		<!--<p><?php the_content_rss('', TRUE, '', 14); ?></p>-->
    		<?php endwhile; endif; ?>
     <? if (!is_user_logged_in()) { ?>
     <!--float:right;font-weight: bold;cursor: pointer;color: gray; position: absolute; margin-left: 162px;font-size: 11px;-->
     <p class="prevsa" ><<Previous Newsletters</p>
     <? } elseif (is_user_logged_in()) { ?>
    <!--position:absolute;margin-left: 162px;font-size: 11px;-->
     <p class="prevs" style="font-weight:bold;font-size: 13px;padding-left: 9px;"><<Previous Newsletters</p>		<? } ?>
     <div class="sample"> </div><?php query_posts( 'posts_per_page=5&cat=12&showposts=10&order=desc' ); ?>		<?php if ( have_posts() ) : while (have_posts() ) : the_post(); ?>		<h4 class="prevsa" style="margin-top: 15px;text-indent: -141px !important;"><a>"><?php the_excerpt(); ?></a></h4>		<!--<p><?php the_content_rss('', TRUE, '', 14); ?></p>-->		<?php endwhile; endif; ?>
    		</div>
    
    		<div class="clear"></div>
    
    		<?php wp_reset_query();  ?>
    
    </div>
    </div>
    <div id="right-part" class="box-outer">
    <div class="box">
    <h3 class="heading"><!--~ Im a Box ~-->Upcoming Events</h3>
    <?php query_posts( 'cat=10' ); ?>
    		<?php if ( have_posts() ) : while (have_posts() ) : the_post(); ?>
    		<h4 class="prevsa" style="margin-top: 0px;"><a>" title="Permalink to <?php the_title(); ?>"><?php the_content(); ?></a></h4>
    		<div class="clear"></div>
    
    		<?php endwhile; endif; ?>
    		<?php wp_reset_query();  ?>
    </div>
    <div class="box">
    <h3 class="heading">Area Information</h3>
    <?php query_posts( 'posts_per_page=5&cat=11&order=asc' ); ?>
    		<?php if ( have_posts() ) : while (have_posts() ) : the_post(); ?>
    		<h4 class="prevsa1" style="margin-top: 15px;"><a>" title="Permalink to <?php the_title(); ?>"><?php the_content(); ?></a></h4>
    		<!--<p><?php the_content_rss('', TRUE, '', 14); ?></p>-->
    		<?php endwhile; endif; ?>
    </div>
    </div>
    </div>
    </div>
    
    </div>
    
    <?php get_footer(); ?>
  2. kjodle
    Member
    Posted 1 year ago #

    I want to make sure when I click on a posting, the permalink is off.

    Why? Permalinks are much better than the default link structure, both in terms of reader use (which makes readers happy and encourages them to come back) and for your SEO.

Topic Closed

This topic has been closed to new replies.

About this Topic