selam arkadaşlar,
şimdi ben wordpressde bazı functions.php kodları ile bir yazı ekleme (veri ekleme)sekmesi oluşturdum ve panelimden bu yazıları ekliyorum kodları söyleyeyeim;

Alıntı
function slides() {
register_post_type( 'slides',
array(
'labels' => array(
'name' => __( 'Slides' ),
'singular_name' => __( 'Slide' )
),
'public' => false,
'show_ui' => true,
'_builtin' => false, // It's a custom post type, not built in
'_edit_link' => 'post.php?post=%d',
'capability_type' => 'post',
'hierarchical' => false,
'has_archive' => false,
'query_var' => "portfolio",
'menu_position' => 20,
'supports' => array('title', 'excerpt', 'editor', 'thumbnail',),
'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'trackbacks', 'custom-fields', 'comments', 'revisions', 'page-attributes' ),
'taxonomies' => array( 'category', 'post_tag', 'page-category' ),

)
);
}
add_action( 'init', 'slides' );





function load_scripts() {

// jquery cycle

wp_register_script( 'jquery.cycle', get_template_directory_uri() . '/js/jquery.cycle.all.js', array('jquery'));

wp_enqueue_script( 'jquery.cycle' );

// jquery code for site

wp_register_script( 'site', get_template_directory_uri() . '/js/site.js');

wp_enqueue_script( 'site' );

}

add_action('wp_enqueue_scripts', 'load_scripts');
functions.php kodlarım bu şekilde.

index.php kodlarımda bu şekilde;

Alıntı
<?php
$q = new WP_Query('post_type=slides');
if( $q->have_posts() ) :
echo '<div id="slideshow">';
while( $q->have_posts() ) : $q->the_post();
?>
<div class="slide">
<div class="desc"><?php the_content(); ?><div class="slbaslik"><?php echo get_post_meta($post->ID, "slbaslik", true); ?> </div><div class="slfiyat"><?php echo get_post_meta($post->ID, "fiyat", true); ?> </div><center><div class="kgit"><?php echo get_post_meta($post->ID, "kgit", true); ?> </div></center></div>
</div>
<?php
endwhile;
echo '</div>';
endif;
?>
hocam şimdi ben bu olayı sadece bu kodlarla yaptım sadece functions php ve index.php dosyalarıma bu kodları ekledim lakin eklediğim bu yazılar anasayfamda çıkmasının yanı sıra, arama sonuçlarında ve kategori sayfalarındada çıkıyor bunu arama sonuçlarından ve kategori sayfalarından nasıl kaldırabilirim.