rica ederim
örnek vereyim sana kendi yaptığım bir temadan
header.php
<!DOCTYPE HTML>
<html>
<head>
<title><?php wp_title( '-', true, 'right' ); echo wp_specialchars( get_bloginfo('name'), 1 ) ?></title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<!--[if lte IE 8]><script src="<?php bloginfo('stylesheet_directory'); ?>/assets/js/ie/html5shiv.js"></script><![endif]-->
<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/style.css" />
<!--[if lte IE 9]><link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/assets/css/ie9.css" /><![endif]-->
<!--[if lte IE 8]><link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/assets/css/ie8.css" /><![endif]-->
<?php wp_head(); ?>
</head>
<body>
<!-- Wrapper -->
<div id="wrapper">
<!-- Main -->
<div id="main">
<div class="inner">
<!-- Header -->
<header id="header">
<a href="<?php bloginfo('wpurl') ?>" class="logo"><?php bloginfo('name') ?></a>
<ul class="icons">
<li><a href="#" class="icon fa-twitter"><span class="label">Twitter</span></a></li>
<li><a href="#" class="icon fa-facebook"><span class="label">Facebook</span></a></li>
<li><a href="#" class="icon fa-instagram"><span class="label">Instagram</span></a></li>
</ul>
</header>index.php
<?php get_header(); ?>
<section>
<p style="text-align:center;">ads</p>
<div class="posts">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<article>
<?php
$args = array(
'post_type' => 'attachment',
'order' => 'desc',
'orderby' => 'rand',
'numberposts' => "1",
'post_status' => null,
'post_parent' => $post->ID
);
$attachments = get_posts( $args );
if ( $attachments ) {
foreach ( $attachments as $attachment ) {
$atturl = wp_get_attachment_url($attachment->ID);
$parent_id = $attachment->post_parent;
$parent_permalink = get_permalink( $parent_id );
$attlink = get_attachment_link($attachment->ID);
$atttitle = apply_filters('the_title',$attachment->post_title);
$imgalt = get_post_meta($attachment->ID, '_wp_attachment_image_alt', true);
$imgsrc = get_post_meta($attachment->ID, '_wp_attached_file', true);
$eror_thumb = get_post_meta($attachment->ID, 'eror_thumb', true);
$imgcont = apply_filters('the_content', $attachment->post_content);
$imgex = apply_filters('the_content', $attachment->post_excerpt);
echo "<span class=\"image fit\"><a href=\"$attlink\" class=\"image\"><img src=\"$imgsrc\" alt=\"$imgalt\" title=\"$atttitle\" width=\"416\" height=\"256\" onerror=\"this.onerror=null;this.src='$eror_thumb';\" /></a></span><p>$imgcont<br /> $imgex</p>";
}
}
?>
<h2><?php the_title(); ?></h2>
<ul class="actions">
<li><a href="<?php echo get_permalink() ?>" class="button">More</a></li>
</ul>
</article>
<?php endwhile; else : ?>
<p><?php _e( 'Clear Site :p' ); ?></p>
<?php endif; ?>
</div>
<?php pager_in('','5'); ?>
</section>
</div>
</div>
<?php include('menu.php'); ?>
</div>
<?php get_footer(); ?>footer.php
<?php wp_footer(); ?>
<script src="<?php bloginfo('stylesheet_directory'); ?>/assets/js/jquery.min.js"></script>
<script src="<?php bloginfo('stylesheet_directory'); ?>/assets/js/skel.min.js"></script>
<script src="<?php bloginfo('stylesheet_directory'); ?>/assets/js/util.js"></script>
<script src="<?php bloginfo('stylesheet_directory'); ?>/assets/js/back-to.js"></script>
<!--[if lte IE 8]><script src="<?php bloginfo('stylesheet_directory'); ?>/assets/js/ie/respond.min.js"></script><![endif]-->
<script src="<?php bloginfo('stylesheet_directory'); ?>/assets/js/main.js"></script>
<a href="#main" class="cd-top">Top</a>
</body>
</html>menu yada sidebar.php
<div id="sidebar">
<div class="inner">
<!-- Search -->
<section id="search" class="alt">
<form method="post" action="#">
<input type="text" name="query" id="query" placeholder="Search" />
</form>
</section>
<!-- Menu -->
<nav id="menu">
<header class="major">
<h2>Menu</h2>
</header>
<ul>
<li><a href="<?php bloginfo('url') ?>">Homepage</a></li>
<?php wp_list_pages( 'sort_column=menu_order&title_li=' ); ?>
</ul>
</nav>
<!-- Footer -->
<footer id="footer">
<p class="copyright">© <?php bloginfo('name') ?>. All rights reserved.</p>
</footer>
</div>
</div>aslı astarı bu wp temanın gözünüz korkmasın