• 14-06-2010, 13:43:15
    #1
    Başlıkta belirttigim gibi sadece anasayfada title kısa olsun istiyorum bu temada anasayfa home.php içerisinde yer alıyor aşagıda home.php ve functions.php,yi verdim verdim burada ne yapmam lazım ?
    Home.php
    <?php get_header(); ?>
    
    <div id="content">
    
        <div id="homepage">
        
            <div id="homepagetop">
            
                <div class="featuredtop">
    
                    <!--This section is where the Featured Content plugin is called.-->
    
    
            
    
                </div>
    
                
            </div>
    
    
                        
            <div id="homepageleft">
    
        
                    
                <div class="hpfeatured">
                <h3>-</h3>
                
                
                
    <?php
     //Code automatically inserted by Featurific for Wordpress plugin
     if(is_home())                             //If we're generating the home page (remove this line to make Featurific appear on all pages)...
      if(function_exists('insert_featurific')) //If the Featurific plugin is activated...
       insert_featurific();                    //Insert the HTML code to embed Featurific
    ?>
                    <?php $recent = new WP_Query("cat=1&showposts=10"); while($recent->have_posts()) : $recent->the_post();?>
                    <?php if( get_post_meta($post->ID, "thumbnail", true) ): ?>
                        <a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" src="<?php echo get_post_meta($post->ID, "thumbnail", true); ?>" alt="<?php the_title(); ?>" width="100" height="80"/></a>
                    <?php else: ?>
                           <a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;"  src="<?php bloginfo('template_url'); ?>/images/thumbnail.png" alt="<?php the_title(); ?>" /></a>
                    <?php endif; ?>                
                    <b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b>
                    
                    
                    <div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>
                    
                    <?php endwhile; ?>
                    
                </div>            
                    
            </div>
            
            <div id="homepageright">
            
            
            
                <div class="hpfeatured">
                <h3>-</h3>
                
                    
                
                    <?php $recent = new WP_Query("cat=22&showposts=10"); while($recent->have_posts()) : $recent->the_post();?>
                    <?php if( get_post_meta($post->ID, "thumbnail", true) ): ?>
                        <a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" src="<?php echo get_post_meta($post->ID, "thumbnail", true); ?>" alt="<?php the_title(); ?>" width="100" height="80"/></a>
                    <?php else: ?>
                           <a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;"  src="<?php bloginfo('template_url'); ?>/images/thumbnail.png" alt="<?php the_title(); ?>" /></a>
                    <?php endif; ?>                
                    <b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b>                
                    
                                    
                    <div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>
                    
                    <?php endwhile; ?>
                    
                    
                    
                        
                </div>            
                    
            </div>
            
            <div id="homepageleft">
    
        
                    
                <div class="hpfeatured">
                <h3>-</h3>
                
                
                
    <?php
     //Code automatically inserted by Featurific for Wordpress plugin
     if(is_home())                             //If we're generating the home page (remove this line to make Featurific appear on all pages)...
      if(function_exists('insert_featurific')) //If the Featurific plugin is activated...
       insert_featurific();                    //Insert the HTML code to embed Featurific
    ?>
                    <?php $recent = new WP_Query("cat=8&showposts=10"); while($recent->have_posts()) : $recent->the_post();?>
                    <?php if( get_post_meta($post->ID, "thumbnail", true) ): ?>
                        <a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" src="<?php echo get_post_meta($post->ID, "thumbnail", true); ?>" alt="<?php the_title(); ?>" width="100" height="80"/></a>
                    <?php else: ?>
                           <a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;"  src="<?php bloginfo('template_url'); ?>/images/thumbnail.png" alt="<?php the_title(); ?>" /></a>
                    <?php endif; ?>                
                    <b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b>
                    
                    
                    <div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>
                    
                    <?php endwhile; ?>
                    
                </div>            
                    
            </div>
            
            <div id="homepageright">
            
            
            
                <div class="hpfeatured">
                <h3>-</h3>
                
                    
                
                    <?php $recent = new WP_Query("cat=6&showposts=10"); while($recent->have_posts()) : $recent->the_post();?>
                    <?php if( get_post_meta($post->ID, "thumbnail", true) ): ?>
                        <a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" src="<?php echo get_post_meta($post->ID, "thumbnail", true); ?>" alt="<?php the_title(); ?>" width="100" height="80"/></a>
                    <?php else: ?>
                           <a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;"  src="<?php bloginfo('template_url'); ?>/images/thumbnail.png" alt="<?php the_title(); ?>" /></a>
                    <?php endif; ?>                
                    <b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b>                
                    
                                    
                    <div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>
                    
                    <?php endwhile; ?>
                    
                    <!--Hangi kategoriyi koyacaksanız # olan yere kategori url sini yazın-->
    
                
                </div>
            
            </div>
            
        </div>
        
    <?php include(TEMPLATEPATH."/sidebar.php");?>
            
    
    
    <!-- The main column ends  -->
    
    </div>
    
    <?php get_footer(); ?>

    Functions.php

    <?php
    if ( function_exists('register_sidebars') )
        register_sidebars(3);
    
    $themename = "Revolution Church";
    $shortname = "revchurch";
    
    $options = array (
                    array(    "name" => "General Settings",
                            "type" => "heading"),
                            
                    array(    "name" => "Feedburner ID",
                            "desc" => "Learn how to find your Feedburner ID by reading this <a href='http://www.xxxx.net/feed/rss/'>tutorial</a>.<br /><br />",
                            "id" => $shortname."_feedburner_id",
                            "std" => "Enter Feedburner Email Subscribe ID Here",
                            "type" => "text"),
                            
                    array(    "name" => "468x60 Banner Ad",
                            "desc" => "This is for the the 468x60 ad banner in the header.<br /><br />",
                            "id" => $shortname."_ad_468",
                            "std" => "Enter 468x60 Banner Code Here",
                            "type" => "textarea"),    
                            
                    array(    "name" => "120x600 Banner Ad",
                            "desc" => "This is for the the 120x600 ad banner in the sidebar.<br /><br />",
                            "id" => $shortname."_ad_120",
                            "std" => "Enter 120x600 Banner Code Here",
                            "type" => "textarea"),    
                            
                    array(    "name" => "468x60 AdSense Code",
                            "desc" => "This is for the 468x60 Google AdSense banner in between the single post and comments section.<br /><br />",
                            "id" => $shortname."_adsense_468",
                            "std" => "Enter Google AdSense Code Here",
                            "type" => "textarea"),    
                            
                    array(    "name" => "300x250 AdSense Code",
                            "desc" => "This is for the 300x250 Google AdSense banner in the sidebar.<br /><br />",
                            "id" => $shortname."_adsense_300",
                            "std" => "Enter Google AdSense Code Here",
                            "type" => "textarea"),                
    
                    array(    "name" => "Video Code",
                            "desc" => "This is for the featured video in the sidebar. <br /> Recommended size for the video is 300x250, so don't forget to change that from the embedded video code.<br /><br />",                        "id" => $shortname."_you_tube",
                            "id" => $shortname."_video",
                            "std" => "Enter Embedded Video Code Here",
                            "type" => "textarea"),
                                                                                                                            
              );
            
    function mytheme_add_admin() {
    
        global $themename, $shortname, $options;
    
        if ( $_GET['page'] == basename(__FILE__) ) {
        
            if ( 'save' == $_REQUEST['action'] ) {
    
                    foreach ($options as $value) {
                        if($value['type'] != 'multicheck'){
                            update_option( $value['id'], $_REQUEST[ $value['id'] ] ); 
                        }else{
                            foreach($value['options'] as $mc_key => $mc_value){
                                $up_opt = $value['id'].'_'.$mc_key;
                                update_option($up_opt, $_REQUEST[$up_opt] );
                            }
                        }
                    }
    
                    foreach ($options as $value) {
                        if($value['type'] != 'multicheck'){
                            if( isset( $_REQUEST[ $value['id'] ] ) ) { update_option( $value['id'], $_REQUEST[ $value['id'] ]  ); } else { delete_option( $value['id'] ); } 
                        }else{
                            foreach($value['options'] as $mc_key => $mc_value){
                                $up_opt = $value['id'].'_'.$mc_key;                        
                                if( isset( $_REQUEST[ $up_opt ] ) ) { update_option( $up_opt, $_REQUEST[ $up_opt ]  ); } else { delete_option( $up_opt ); } 
                            }
                        }
                    }
                    header("Location: themes.php?page=functions.php&saved=true");
                    die;
    
            } else if( 'reset' == $_REQUEST['action'] ) {
    
                foreach ($options as $value) {
                    if($value['type'] != 'multicheck'){
                        delete_option( $value['id'] ); 
                    }else{
                        foreach($value['options'] as $mc_key => $mc_value){
                            $del_opt = $value['id'].'_'.$mc_key;
                            delete_option($del_opt);
                        }
                    }
                }
                header("Location: themes.php?page=functions.php&reset=true");
                die;
    
            }
        }
    
        add_theme_page($themename." Options", "$themename Options", 'edit_themes', basename(__FILE__), 'mytheme_admin');
    
    }
    
    function mytheme_admin() {
    
        global $themename, $shortname, $options;
    
        if ( $_REQUEST['saved'] ) echo '<div id="message" class="updated fade"><p><strong>'.$themename.' settings saved.</strong></p></div>';
        if ( $_REQUEST['reset'] ) echo '<div id="message" class="updated fade"><p><strong>'.$themename.' settings reset.</strong></p></div>';
        
    ?>
    <div class="wrap">
    <h2><?php echo $themename; ?> options</h2>
    
    <form method="post">
    
    <table class="optiontable">
    
    <?php foreach ($options as $value) { 
        
        switch ( $value['type'] ) {
            case 'text':
            option_wrapper_header($value);
            ?>
                    <input style="width:400px;" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" type="<?php echo $value['type']; ?>" value="<?php if ( get_settings( $value['id'] ) != "") { echo get_settings( $value['id'] ); } else { echo $value['std']; } ?>" />
            <?php
            option_wrapper_footer($value);
            break;
            
            case 'select':
            option_wrapper_header($value);
            ?>
                    <select style="width:240px;" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>">
                        <?php foreach ($value['options'] as $option) { ?>
                        <option<?php if ( get_settings( $value['id'] ) == $option) { echo ' selected="selected"'; } elseif ($option == $value['std']) { echo ' selected="selected"'; } ?>><?php echo $option; ?></option>
                        <?php } ?>
                    </select>
            <?php
            option_wrapper_footer($value);
            break;
            
            case 'textarea':
            $ta_options = $value['options'];
            option_wrapper_header($value);
            ?>
                    <textarea name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" style="width:400px;height:100px;"><?php 
                    if( get_settings($value['id']) != "") {
                            echo stripslashes(get_settings($value['id']));
                        }else{
                            echo $value['std'];
                    }?></textarea>
            <?php
            option_wrapper_footer($value);
            break;
    
            case "radio":
            option_wrapper_header($value);
            
             foreach ($value['options'] as $key=>$option) { 
                    $radio_setting = get_settings($value['id']);
                    if($radio_setting != ''){
                        if ($key == get_settings($value['id']) ) {
                            $checked = "checked=\"checked\"";
                            } else {
                                $checked = "";
                            }
                    }else{
                        if($key == $value['std']){
                            $checked = "checked=\"checked\"";
                        }else{
                            $checked = "";
                        }
                    }?>
                    <input type="radio" name="<?php echo $value['id']; ?>" value="<?php echo $key; ?>" <?php echo $checked; ?> /><?php echo $option; ?><br />
            <?php 
            }
             
            option_wrapper_footer($value);
            break;
            
            case "checkbox":
            option_wrapper_header($value);
                            if(get_settings($value['id'])){
                                $checked = "checked=\"checked\"";
                            }else{
                                $checked = "";
                            }
                        ?>
                        <input type="checkbox" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" value="true" <?php echo $checked; ?> />
            <?php
            option_wrapper_footer($value);
            break;
    
            case "multicheck":
            option_wrapper_header($value);
            
             foreach ($value['options'] as $key=>$option) {
                     $pn_key = $value['id'] . '_' . $key;
                    $checkbox_setting = get_settings($pn_key);
                    if($checkbox_setting != ''){
                        if (get_settings($pn_key) ) {
                            $checked = "checked=\"checked\"";
                            } else {
                                $checked = "";
                            }
                    }else{
                        if($key == $value['std']){
                            $checked = "checked=\"checked\"";
                        }else{
                            $checked = "";
                        }
                    }?>
                    <input type="checkbox" name="<?php echo $pn_key; ?>" id="<?php echo $pn_key; ?>" value="true" <?php echo $checked; ?> /><label for="<?php echo $pn_key; ?>"><?php echo $option; ?></label><br />
            <?php 
            }
             
            option_wrapper_footer($value);
            break;
            
            case "heading":
            ?>
            <tr valign="top"> 
                <td colspan="2" style="text-align: center;"><h3><?php echo $value['name']; ?></h3></td>
            </tr>
            <?php
            break;
            
            default:
    
            break;
        }
    }
    ?>
    
    </table>
    
    <p class="submit">
    <input name="save" type="submit" value="Save changes" />    
    <input type="hidden" name="action" value="save" />
    </p>
    </form>
    <form method="post">
    <p class="submit">
    <input name="reset" type="submit" value="Reset" />
    <input type="hidden" name="action" value="reset" />
    </p>
    </form>
    
    <?php
    }
    
    function option_wrapper_header($values){
        ?>
        <tr valign="top"> 
            <th scope="row"><?php echo $values['name']; ?>:</th>
            <td>
        <?php
    }
    
    function option_wrapper_footer($values){
        ?>
            </td>
        </tr>
        <tr valign="top">
            <td>&nbsp;</td><td><small><?php echo $values['desc']; ?></small></td>
        </tr>
        <?php 
    }
    
    function mytheme_wp_head() { 
        $stylesheet = get_option('revmag_alt_stylesheet');
        if($stylesheet != ''){?>
    
    <?php }
    } 
    
    add_action('wp_head', 'mytheme_wp_head');
    add_action('admin_menu', 'mytheme_add_admin'); 
    ?>
    <?php function the_content_limit($max_char, $more_link_text = '(Okumaya devam et...)', $stripteaser = 0, $more_file = '') {
        $content = get_the_content($more_link_text, $stripteaser, $more_file);
        $content = apply_filters('the_content', $content);
        $content = str_replace(']]>', ']]&gt;', $content);
        $content = strip_tags($content);
    
       if (strlen($_GET['p']) > 0) {
          echo "<p>";
          echo $content;
          echo "&nbsp;<a href='";
          the_permalink();
          echo "'>"."Okumaya devam et &rarr;</a>";
          echo "</p>";
       }
       else if ((strlen($content)>$max_char) && ($espacio = strpos($content, " ", $max_char ))) {
            $content = substr($content, 0, $espacio);
            $content = $content;
            echo "<p>";
            echo $content;
            echo "...";
            echo "&nbsp;<a href='";
            the_permalink();
            echo "'>".$more_link_text."</a>";
            echo "</p>";
       }
       else {
          echo "<p>";
          echo $content;
          echo "&nbsp;<a href='";
          the_permalink();
          echo "'>"."Okumaya devam et &rarr;</a>";
          echo "</p>";
       }
    }
    
    
    
    
    
    
    ?>
  • 14-06-2010, 13:46:54
    #2
    ⭐ EN UCUZ CHATGPT 5.5⚡
    hocam title ın oldugu bolum burda değil sanırım.
  • 14-06-2010, 13:52:46
    #3
    İçerisinde bunlar var

    <a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" src="<?php echo get_post_meta($post->ID, "thumbnail", true); ?>" alt="<?php the_title(); ?>" width="100" height="80"/></a>
    <?php else: ?>
    <a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" src="<?php bloginfo('template_url'); ?>/images/thumbnail.png" alt="<?php the_title(); ?>" /></a>
    <?php endif; ?>
    <b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b>

    İndex.php vereyim birde

    <?php get_header(); ?>
    
    <div id="content">
    
        <div id="contentleft">
        
            <div class="postarea">
            
            <?php include(TEMPLATEPATH."/breadcrumb.php");?>
                
                
                <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    
    
    
                <h1><?php the_title(); ?></h1>
                
                <div class="date">
                
                    <div class="dateleft">
    
    <p><span class="time"><?php the_time('d F Y'); ?></span> Yazan <?php the_author_posts_link(); ?> &nbsp;<?php edit_post_link('(Duzenle)', '', ''); ?> <br /> Kategori <?php the_category(', ') ?></p>
    
    
    <a href="http://www.google.com.tr/search?hl=tr&q=<?php the_title(); ?>" target="_blank"><img src="http://i40.tinypic.com/2iuuzk2.gif"></a>
    
    
                         <br /> 
    
    
    <p style="text-align: center;"><strong>Bu yazı
                    <?php the_title(); ?>        <?php /* This is commented, because it requires a little adjusting sometimes.
                                You'll need to download this plugin, and follow the instructions:
                                http://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */
                                /* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ ?>
                            <?php the_time('l, d F Y') ?>, <?php the_time() ?> tarihinde
                            <?php the_category(', ') ?> kategorisi altında yayımlandı.</strong></p>
    
                    </div>
                    
                    <div class="dateright">
                         
    
                    </div>
                    
                </div>
    
                <?php the_content(__('Devamını oku'));?><div style="clear:both;"></div>
                
                <div class="postmeta">
                    <p><span class="tags">Etiketler: <?php the_tags('') ?></span></p>
    <p><?php edit_post_link('(Düzenle)', '', ''); ?> </p>
    
                </div>
                         
                <!--
                <?php trackback_rdf(); ?>
                -->
                
                <?php endwhile; else: ?>
                
                <p><?php _e('Üzgünüm aradığınız şey burada değil.'); ?></p><?php endif; ?>
                
            </div>
            
            <div class="adsense-post">
            
                
                
                <?php $adsense_468 = get_option('revchurch_adsense_468'); echo stripslashes($adsense_468); ?>
                            
            </div>
                
            <div class="comments">
        
                <h1>Yorumlar</h1>
                <?php comments_template(); // Get wp-comments.php template ?>
                
            </div>
            
        </div>
        
    <?php include(TEMPLATEPATH."/sidebar.php");?>
            
    </div>
    
    <!-- The main column ends  -->
    
    <?php get_footer(); ?>
  • 14-06-2010, 13:54:14
    #4
    en kolayı all in seo eklentisi kullanabilirsin dostum.
  • 14-06-2010, 13:55:29
    #5
    Silver adlı üyeden alıntı: mesajı görüntüle
    en kolayı all in seo eklentisi kullanabilirsin dostum.
    All in seo kurulu ama bunu kullanacak kişi daha acemi oldugu için anlamıyor başlıkları uzun yapıyor ne kadar uyarsamda bir türlü ögretemedim bende kısa yoldan halledeyim dedim
  • 14-06-2010, 13:56:46
    #6
    ⭐ EN UCUZ CHATGPT 5.5⚡
    bütün php lerin içinde <title><?php the_title(); ?></title> şu olması lazım. arkadaşın dediği gibi all in seo da çözer bu işi..
  • 14-06-2010, 13:58:24
    #7
    Cevap alamadım henüz