Wordpress Üyelere Kategori ( resimde belirttim )
13
●916
- 22-03-2013, 14:02:28Üyeliği durdurulduhttp://wordpress.org/extend/plugins/wp-login-box/
Suradaki eklentiyi kullanarak yapabilirsin ama biraz kodlarda oynama yapman gerekiyor - 22-03-2013, 14:25:11Shunsuke adlı üyeden alıntı: mesajı görüntüle
<!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo( 'charset' ); ?>" /> <title><?php global $page, $paged; wp_title( '|', true, 'right' ); bloginfo( 'name' ); $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) echo " | $site_description"; if ( $paged >= 2 || $page >= 2 ) echo ' | ' . sprintf( __( 'Page %s', 'tie' ), max( $paged, $page ) ); ?></title> <link rel="profile" href="http://gmpg.org/xfn/11" /> <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" /> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> <?php wp_head(); ?> <link href='https://fonts.googleapis.com/css?family=Droid+Sans:regular,bold' rel='stylesheet' type='text/css'/> </head> <?php global $is_IE ?> <body id="top" <?php body_class(); ?>> <div class="background-cover"></div> <div class="wrapper"> <header> <div class="top-nav"> <?php if(tie_get_option( 'top_date' )): if( tie_get_option('todaydate_format') ) $date_format = tie_get_option('todaydate_format'); else $date_format = 'l , j F Y'; ?> <span class="today-date"><?php echo date_i18n( $date_format , current_time( 'timestamp' ) ); ?></span><?php endif; ?> <?php wp_nav_menu( array( 'container_class' => 'top-menu', 'theme_location' => 'top-menu', 'fallback_cb' => 'tie_nav_fallback' ) ); ?> <?php echo tie_alternate_menu( array( 'menu_name' => 'top-menu', 'id' => 'top-menu-mob' ) ) ?> <?php if ( is_user_logged_in() ) { ?> <li id="menu-item-382" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-382"><a href="http://www.havsafm.com/kategori/dj-paneli">DJ Paneli</a></li> <?php } ?> <?php if(tie_get_option( 'top_right' ) == 'search'): ?> <div class="search-block"> <form method="get" id="searchform" action="<?php echo home_url(); ?>/"> <input class="search-button" type="submit" value="<?php if( !$is_IE ) _e( 'Search' , 'tie' ) ?>" /> <input type="text" id="s" name="s" value="<?php _e( 'Search...' , 'tie' ) ?>" onfocus="if (this.value == '<?php _e( 'Search...' , 'tie' ) ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e( 'Search...' , 'tie' ) ?>';}" /> </form> </div><!-- .search-block /--> <?php elseif( tie_get_option('top_right') == 'social' ): tie_get_social( 'yes' , 16 , 'tooldown' ); ?> <?php endif; ?> </div><!-- .top-menu /--> <div class="header-content"> <?php if( tie_get_option( 'logo_margin' )) $logo_margin = ' style="margin-top:'.tie_get_option( 'logo_margin' ).'px"'; ?> <div class="logo"<?php echo $logo_margin ?>> <?php if( !is_singular() ) echo '<h1>'; else echo '<h2>'; ?> <?php if( tie_get_option('logo_setting') == 'title' ): ?> <a href="<?php echo home_url() ?>/"><?php bloginfo('name'); ?></a> <span><?php bloginfo( 'description' ); ?></span> <?php else : ?> <?php if( tie_get_option( 'logo' ) ) $logo = tie_get_option( 'logo' ); else $logo = get_template_directory_uri().'/images/logo.png'; ?> <a title="<?php bloginfo('name'); ?>" href="<?php echo home_url(); ?>/"> <img src="<?php echo $logo ; ?>" alt="<?php bloginfo('name'); ?>" /> </a> <?php endif; ?> <?php if( !is_singular() ) echo '</h1>'; else echo '</h2>'; ?> </div><!-- .logo /--> <?php tie_banner('banner_top' , '<div class="ads-top">' , '</div>' ); ?> <div class="clear"></div> </div> <?php $stick = ''; ?> <?php if( tie_get_option( 'stick_nav' ) ) $stick = 'class="fixed-enabled"' ?> <nav id="main-nav"<?php echo $stick; ?>> <?php wp_nav_menu( array( 'container_class' => 'main-menu', 'theme_location' => 'primary' ,'fallback_cb' => 'tie_nav_fallback' ) ); ?> <?php echo tie_alternate_menu( array( 'menu_name' => 'primary', 'id' => 'main-menu-mob' ) ) ?> <?php if(tie_get_option( 'random_article' )): ?> <a href="<?php echo home_url(); ?>/?random" class="random-article ttip" title="<?php _e( 'Random Article' , 'tie' ) ?>"><?php _e( 'Random Article' , 'tie' ) ?></a> <?php endif ?> </nav><!-- .main-nav /--> </header><!-- #header /--> <?php tie_include( 'breaking-news' ); // Get Breaking News template ?> <?php $sidebar = ''; if( tie_get_option( 'sidebar_pos' ) == 'left' ) $sidebar = ' sidebar-left'; if( is_single() || is_page() ){ $get_meta = get_post_custom($post->ID); if( !empty($get_meta["tie_sidebar_pos"][0]) ){ $sidebar_pos = $get_meta["tie_sidebar_pos"][0]; if( $sidebar_pos == 'left' ) $sidebar = ' sidebar-left'; elseif( $sidebar_pos == 'full' ) $sidebar = ' full-width'; elseif( $sidebar_pos == 'right' ) $sidebar = ' sidebar-right'; } } ?> <div id="main-content" class="container<?php echo $sidebar ; ?>">bu şekilde sorunsuz çalışması gerekiyor. bunu dene hocam.
