{"id":2525,"date":"2019-05-23T19:35:48","date_gmt":"2019-05-23T16:35:48","guid":{"rendered":"https:\/\/sitecenneti.com\/wordpress\/?p=2525"},"modified":"2019-05-24T12:53:51","modified_gmt":"2019-05-24T09:53:51","slug":"4-7-blogun-en-ustune-sabitlenmis-yazilar-sticky-posts","status":"publish","type":"post","link":"https:\/\/sitecenneti.com\/wordpress\/wordpress-tema-yapimi\/4-7-blogun-en-ustune-sabitlenmis-yazilar-sticky-posts\/","title":{"rendered":"4.7 Blogun En \u00dcst\u00fcne Sabitlenmi\u015f Yaz\u0131lar (Sticky Posts)"},"content":{"rendered":"<div id=\"toc_container\" class=\"toc_transparent no_bullets\"><p class=\"toc_title\">BU DERS\u0130N BA\u015eLIKLARI<\/p><ul class=\"toc_list\"><li><a href=\"#Temada_Blogun_En_Ustune_Sabitlenmis_Yazilari_Kullanmak\"><span class=\"toc_number toc_depth_1\">1<\/span> Temada Blogun En \u00dcst\u00fcne Sabitlenmi\u015f Yaz\u0131lar\u0131 Kullanmak<\/a><ul><li><a href=\"#Ornek-1\"><span class=\"toc_number toc_depth_2\">1.1<\/span> \u00d6rnek-1<\/a><\/li><li><a href=\"#Ornek-2\"><span class=\"toc_number toc_depth_2\">1.2<\/span> \u00d6rnek-2<\/a><\/li><li><a href=\"#Ornek-3\"><span class=\"toc_number toc_depth_2\">1.3<\/span> \u00d6rnek-3<\/a><\/li><li><a href=\"#Ornek-4\"><span class=\"toc_number toc_depth_2\">1.4<\/span> \u00d6rnek-4<\/a><\/li><li><a href=\"#Ornek-5\"><span class=\"toc_number toc_depth_2\">1.5<\/span> \u00d6rnek-5<\/a><\/li><li><a href=\"#Ornek-6\"><span class=\"toc_number toc_depth_2\">1.6<\/span> \u00d6rnek-6<\/a><\/li><li><a href=\"#Ornek-7\"><span class=\"toc_number toc_depth_2\">1.7<\/span> \u00d6rnek-7<\/a><\/li><li><a href=\"#Ornek-8\"><span class=\"toc_number toc_depth_2\">1.8<\/span> \u00d6rnek-8<\/a><\/li><\/ul><\/li><\/ul><\/div>\n\n<p>Blo\u011fun veya blogun en \u00fcst\u00fcne sabitlenmi\u015f yaz\u0131 demek, eklenirken ya da d\u00fczenlenirken, sayfan\u0131n sa\u011f kenar\u0131nda, &#8220;<strong>Blogun en \u00fcst\u00fcne sabitle<\/strong>&#8221; kutucu\u011fu i\u015faretlenen yaz\u0131 demektir. A\u015fa\u011f\u0131da bu kutucu\u011fun resmi verilmi\u015ftir:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"260\" height=\"254\" src=\"https:\/\/sitecenneti.com\/wordpress\/wp-content\/uploads\/sites\/15\/2019\/05\/blogun-en-ustune-sabitle.png\" alt=\"\" class=\"wp-image-2530\"\/><figcaption>Blogun En \u00dcst\u00fcne Sabitle<\/figcaption><\/figure><\/div>\n\n\n\n<p>Blogun en \u00fcst\u00fcne sabitlenmi\u015f yaz\u0131 olu\u015fturman\u0131n bir ba\u015fka yolu da, y\u00f6netim panelinde <strong>Yaz\u0131lar->T\u00fcm yaz\u0131lar<\/strong> sayfas\u0131nda, &#8220;<strong>H\u0131zl\u0131 d\u00fczenle<\/strong>&#8221; men\u00fcs\u00fcn\u00fc kullanmakt\u0131r:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"663\" height=\"282\" src=\"https:\/\/sitecenneti.com\/wordpress\/wp-content\/uploads\/sites\/15\/2019\/05\/blogun-en-ustune-sabitle-hizli-duzenle.png\" alt=\"\" class=\"wp-image-2551\" srcset=\"https:\/\/sitecenneti.com\/wordpress\/wp-content\/uploads\/sites\/15\/2019\/05\/blogun-en-ustune-sabitle-hizli-duzenle.png 663w, https:\/\/sitecenneti.com\/wordpress\/wp-content\/uploads\/sites\/15\/2019\/05\/blogun-en-ustune-sabitle-hizli-duzenle-300x128.png 300w\" sizes=\"auto, (max-width: 663px) 100vw, 663px\" \/><figcaption>H\u0131zl\u0131 D\u00fczenleme \u0130le Blogun En \u00dcst\u00fcne Sabitlenmi\u015f Yaz\u0131 Olu\u015fturma<\/figcaption><\/figure><\/div>\n\n\n\n<p><em>H\u0131zl\u0131 d\u00fczenle<\/em> men\u00fcs\u00fcne t\u0131kland\u0131\u011f\u0131nda a\u00e7\u0131lan sayfada, &#8220;<strong>Bu yaz\u0131y\u0131 sabit yap<\/strong>&#8221; ad\u0131nda bir kontrol kutucu\u011fu g\u00f6r\u00fclecektir:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"456\" height=\"247\" src=\"https:\/\/sitecenneti.com\/wordpress\/wp-content\/uploads\/sites\/15\/2019\/05\/blogun-en-ustune-sabitle-hizli-duzenle-2.png\" alt=\"\" class=\"wp-image-2553\" srcset=\"https:\/\/sitecenneti.com\/wordpress\/wp-content\/uploads\/sites\/15\/2019\/05\/blogun-en-ustune-sabitle-hizli-duzenle-2.png 456w, https:\/\/sitecenneti.com\/wordpress\/wp-content\/uploads\/sites\/15\/2019\/05\/blogun-en-ustune-sabitle-hizli-duzenle-2-300x163.png 300w\" sizes=\"auto, (max-width: 456px) 100vw, 456px\" \/><figcaption> H\u0131zl\u0131 D\u00fczenleme \u0130le Blogun En \u00dcst\u00fcne Sabitlenmi\u015f Yaz\u0131 Olu\u015fturma <\/figcaption><\/figure><\/div>\n\n\n\n<p>Yukar\u0131daki resimde g\u00f6r\u00fcld\u00fc\u011f\u00fc gibi, <em>Bu yaz\u0131y\u0131 sabit yap<\/em> ad\u0131ndaki kutucuk i\u015faretlenip, &#8220;<em>G\u00fcncelle<\/em>&#8221; butonuna bas\u0131ld\u0131\u011f\u0131nda, yaz\u0131 <em>blogun en \u00fcst\u00fcne sabitlenmi\u015f<\/em> olarak g\u00fcncellenir.<\/p>\n\n\n\n<p>Bir yaz\u0131y\u0131, <em>blogun en \u00fcst\u00fcne sabitlenmi\u015f<\/em> olarak i\u015faretleme \u00f6zelli\u011fi, sadece, WordPress kurulumu ile birlikte gelen ve tipi yaz\u0131 olan i\u00e7erikler i\u00e7in kullan\u0131labilir, sonradan eklenen, \u00f6zel yaz\u0131 tiplerinde kullan\u0131lamaz.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span id=\"Temada_Blogun_En_Ustune_Sabitlenmis_Yazilari_Kullanmak\">Temada Blogun En \u00dcst\u00fcne Sabitlenmi\u015f Yaz\u0131lar\u0131 Kullanmak<\/span><\/h2>\n\n\n\n<p>Blogun en \u00fcst\u00fcne sabitlenmi\u015f yaz\u0131lar, WordPress veritaban\u0131na <code>sticky_posts<\/code> olarak kaydedilir. <code>get_option('sticky_posts')<\/code> ifadesi ile, bu yaz\u0131lar\u0131n, ID de\u011ferleri, bir dizi \u015feklinde, getirilebilir. Blogun en \u00fcst\u00fcne sabitlenmi\u015f yaz\u0131lar\u0131 \u015fablon dosyalar\u0131nda kullanmak i\u00e7in, \u00f6zel sorgular olu\u015fturmam\u0131z gerekir. Tema geli\u015ftiricileri, tasar\u0131mlar\u0131na g\u00f6re farkl\u0131 sorgular olu\u015fturarak, blogun en \u00fcst\u00fcne sabitlenmi\u015f yaz\u0131lar\u0131 farkl\u0131 \u015fekillerde g\u00f6sterebilmektedir. A\u015fa\u011f\u0131da, bu farkl\u0131 kullan\u0131mlara \u00f6rnekler verilmi\u015ftir.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Ornek-1\">\u00d6rnek-1<\/span><\/h3>\n\n\n\n<p>Bu \u00f6rnekte, blogun en \u00fcst\u00fcne sabitlenmi\u015f en eski yaz\u0131 g\u00f6sterilmektedir.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n\/* Blogun en \u00fcst\u00fcne sabitlenmi\u015f yaz\u0131lar\u0131n hepsini getir *\/\n$blogun_en_ustune_sabitlenmis_yazilar = get_option( 'sticky_posts' );\n\n\/* Blogun en \u00fcst\u00fcne sabitlenmi\u015f en eski yaz\u0131 i\u00e7in sorgu olu\u015ftur *\/\n$sorgu = new WP_Query( 'p='.$blogun_en_ustune_sabitlenmis_yazilar[0] );\n\n\/\/ WordPress d\u00f6ng\u00fcs\u00fc\nif ( $sorgu->have_posts() ) { ?>\n\t&lt;div class=\"blogun-en-ustune-sabitlenmis-yazilar\">\n\t &lt;?php while ( $sorgu->have_posts() ) {\n\t $sorgu->the_post(); ?>\n\t &lt;h2 class=\"sabitlenmis-yazi-basligi\">\n\t  &lt;a href=\"&lt;?php the_permalink(); ?>\" title=\"&lt;?php the_title(); ?>\">&lt;?php the_title(); ?>&lt;\/a>\n\t &lt;\/h2>\n\t &lt;?php the_excerpt(); ?>\n\n&lt;?php } ?>\n\t&lt;\/div>\n\n&lt;?php } ?>\n\n&lt;?php\n\/* Ba\u015fka bir sorgu i\u00e7in haz\u0131r ol *\/\nwp_reset_postdata();\n?><\/code><\/pre>\n\n\n\n<p class=\"sc-dikkat\">\u00d6rnekteki kod,  blogun en \u00fcst\u00fcne sabitlenmi\u015f bir yaz\u0131 bulamazsa, b\u00fct\u00fcn yaz\u0131lar\u0131 g\u00f6sterir.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Ornek-2\">\u00d6rnek-2<\/span><\/h3>\n\n\n\n<p>Bu \u00f6rnekte, blogun en \u00fcst\u00fcne sabitlenmi\u015f en yeni yaz\u0131 g\u00f6sterilmektedir.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n\/* Blogun en \u00fcst\u00fcne sabitlenmi\u015f yaz\u0131lar\u0131n hepsini getir *\/\n$blogun_en_ustune_sabitlenmis_yazilar = get_option( 'sticky_posts' );\n\n\/* En son ekleneni en \u00fcste getirecek \u015fekilde tekrar s\u0131rala *\/\nrsort( $blogun_en_ustune_sabitlenmis_yazilar );\n\n\/* Blogun en \u00fcst\u00fcne sabitlenmi\u015f en eski yaz\u0131 i\u00e7in sorgu olu\u015ftur *\/\n$sorgu = new WP_Query( 'p='.$blogun_en_ustune_sabitlenmis_yazilar[0] );\n\n\/\/ WordPress d\u00f6ng\u00fcs\u00fc\nif ( $sorgu->have_posts() ) { ?>\n\t&lt;div class=\"blogun-en-ustune-sabitlenmis-yazilar\">\n\t &lt;?php while ( $sorgu->have_posts() ) {\n\t $sorgu->the_post(); ?>\n\t &lt;h2 class=\"sabitlenmis-yazi-basligi\">\n\t  &lt;a href=\"&lt;?php the_permalink(); ?>\" title=\"&lt;?php the_title(); ?>\">&lt;?php the_title(); ?>&lt;\/a>\n\t &lt;\/h2>\n\t &lt;?php the_excerpt(); ?>\n\n&lt;?php } ?>\n\t&lt;\/div>\n\n&lt;?php } else {\n\/\/ Blogun en \u00fcst\u00fcne sabitlenmi\u015f hi\u00e7 yaz\u0131 yoksa buras\u0131 \u00e7al\u0131\u015f\u0131r\n}\n\n&lt;?php\n\/* Ba\u015fka bir sorgu i\u00e7in haz\u0131r ol *\/\nwp_reset_postdata();\n?><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Ornek-3\">\u00d6rnek-3<\/span><\/h3>\n\n\n\n<p>Bu \u00f6rnekte, farkl\u0131 bir y\u00f6ntem ile, blogun en \u00fcst\u00fcne sabitlenmi\u015f en yeni yaz\u0131 g\u00f6sterilmektedir.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n$argumanlar = array(\n        'posts_per_page'      => 1,\n        'post__in'            => get_option( 'sticky_posts' ),\n        'ignore_sticky_posts' => 1\n);\n$sorgu= new WP_Query( $argumanlar );\n\n\/\/ WordPress d\u00f6ng\u00fcs\u00fc\nif ( $sorgu->have_posts() ) { ?>\n\t&lt;div class=\"blogun-en-ustune-sabitlenmis-yazilar\">\n\t &lt;?php while ( $sorgu->have_posts() ) {\n\t $sorgu->the_post(); ?>\n\t &lt;h2 class=\"sabitlenmis-yazi-basligi\">\n\t  &lt;a href=\"&lt;?php the_permalink(); ?>\" title=\"&lt;?php the_title(); ?>\">&lt;?php the_title(); ?>&lt;\/a>\n\t &lt;\/h2>\n\t &lt;?php the_excerpt(); ?>\n\n&lt;?php } ?>\n\t&lt;\/div>\n\n&lt;?php } ?>\n\n&lt;?php\n\/* Ba\u015fka bir sorgu i\u00e7in haz\u0131r ol *\/\nwp_reset_postdata();\n?><\/code><\/pre>\n\n\n\n<p class=\"sc-dikkat\">\u00d6rnekteki kod, blogun en \u00fcst\u00fcne sabitlenmi\u015f bir yaz\u0131 bulamazsa, son eklenen yaz\u0131y\u0131 g\u00f6sterir.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Ornek-4\">\u00d6rnek-4<\/span><\/h3>\n\n\n\n<p>Bu \u00f6rnekte, blogun en \u00fcst\u00fcne sabitlenmi\u015f, son 5 yaz\u0131 g\u00f6sterilmektedir.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n\/* Blogun en \u00fcst\u00fcne sabitlenmi\u015f yaz\u0131lar\u0131n hepsini getir *\/\n$blogun_en_ustune_sabitlenmis_yazilar = get_option( 'sticky_posts' );\n\n\/* En son ekleneni en \u00fcste getirecek \u015fekilde tekrar s\u0131rala *\/\nrsort( $blogun_en_ustune_sabitlenmis_yazilar );\n\n\/* En son eklenen 5 tanesini al (dilerseniz 5 yerine farkl\u0131 bir say\u0131 kullanabilirsiniz) *\/\n$blogun_en_ustune_sabitlenmis_yazilar = array_slice( $blogun_en_ustune_sabitlenmis_yazilar, 0, 5 );\n\n\/* Blogun en \u00fcst\u00fcne sabitlenmi\u015f yaz\u0131lar i\u00e7in sorgu olu\u015ftur *\/\n$sorgu = new WP_Query( array( 'post__in' => $blogun_en_ustune_sabitlenmis_yazilar, 'ignore_sticky_posts' => 1 ) );\n\n\/\/ WordPress d\u00f6ng\u00fcs\u00fc\nif ( $sorgu->have_posts() ) { ?>\n\t&lt;div class=\"blogun-en-ustune-sabitlenmis-yazilar\">\n\t &lt;?php while ( $sorgu->have_posts() ) {\n\t $sorgu->the_post(); ?>\n\t &lt;h2 class=\"sabitlenmis-yazi-basligi\">\n\t  &lt;a href=\"&lt;?php the_permalink(); ?>\" title=\"&lt;?php the_title(); ?>\">&lt;?php the_title(); ?>&lt;\/a>\n\t &lt;\/h2>\n\t &lt;?php the_excerpt(); ?>\n\n&lt;?php } ?>\n\t&lt;\/div>\n\n&lt;?php } else {\n\/\/ Blogun en \u00fcst\u00fcne sabitlenmi\u015f yaz\u0131 yoksa buras\u0131 \u00e7al\u0131\u015f\u0131r\n}\n\n&lt;?php\n\/* Ba\u015fka bir sorgu i\u00e7in haz\u0131r ol *\/\nwp_reset_postdata();\n?><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Ornek-5\">\u00d6rnek-5<\/span><\/h3>\n\n\n\n<p>Bu \u00f6rnek, blogun en \u00fcst\u00fcne sabitlenmi\u015f ilk yaz\u0131y\u0131 g\u00f6sterir ve sabitlenmi\u015f bir yaz\u0131 bulmazsa, hi\u00e7 bir \u00e7\u0131kt\u0131 vermez.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n\/* Blogun en \u00fcst\u00fcne sabitlenmi\u015f yaz\u0131lar\u0131n hepsini getir *\/\n$blogun_en_ustune_sabitlenmis_yazilar = get_option( 'sticky_posts' );\n$argumanlar = array(\n        'posts_per_page' => 1,\n        'post__in'  => $blogun_en_ustune_sabitlenmis_yazilar,\n        'ignore_sticky_posts' => 1\n);\n\n\/* Blogun en \u00fcst\u00fcne sabitlenmi\u015f yaz\u0131lar i\u00e7in sorgu olu\u015ftur *\/\n$sorgu= new WP_Query( $argumanlar );\nif ( isset( $blogun_en_ustune_sabitlenmis_yazilar[0] ) ) {\n    \/\/ WordPress d\u00f6ng\u00fcs\u00fc\n   if ( $sorgu->have_posts() ) { ?>\n\t&lt;div class=\"blogun-en-ustune-sabitlenmis-yazilar\">\n\t &lt;?php while ( $sorgu->have_posts() ) {\n\t $sorgu->the_post(); ?>\n\t &lt;h2 class=\"sabitlenmis-yazi-basligi\">\n\t  &lt;a href=\"&lt;?php the_permalink(); ?>\" title=\"&lt;?php the_title(); ?>\"> \n   &lt;?php the_title(); ?>&lt;\/a>\n\t &lt;\/h2>\n\t &lt;?php the_excerpt(); ?>\n\n   &lt;?php } ?>\n\t&lt;\/div>\n\n   &lt;?php } ?>\n&lt;?php } ?>\n\n&lt;?php\n\/* Ba\u015fka bir sorgu i\u00e7in haz\u0131r ol *\/\nwp_reset_postdata();\n?><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Ornek-6\">\u00d6rnek-6<\/span><\/h3>\n\n\n\n<p>Bu \u00f6rnekte, blogun en \u00fcst\u00fcne sabitlenmi\u015f yaz\u0131lar hari\u00e7, b\u00fct\u00fcn yaz\u0131lar g\u00f6sterilir.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n\/* Sorgu olu\u015ftur *\/\n$sorgu = new WP_Query( array( 'post__not_in' => get_option( 'sticky_posts' ) ) );\n\n\/\/ WordPress d\u00f6ng\u00fcs\u00fc\nif ( $sorgu->have_posts() ) { ?>\n\t&lt;div class=\"blogun-en-ustune-sabitlenmis-yazilar\">\n\t &lt;?php while ( $sorgu->have_posts() ) {\n\t   $sorgu->the_post(); ?>\n\t   &lt;h2 class=\"sabitlenmis-yazi-basligi\">\n\t    &lt;a href=\"&lt;?php the_permalink(); ?>\" title=\"&lt;?php the_title(); ?>\">&lt;?php the_title(); ?>&lt;\/a>\n\t   &lt;\/h2>\n\t   &lt;?php the_excerpt(); ?>\n\n         &lt;?php } ?>\n\t&lt;\/div>\n\n&lt;?php } ?>\n\n&lt;?php\n\/* Ba\u015fka bir sorgu i\u00e7in haz\u0131r ol *\/\nwp_reset_postdata();\n?><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Ornek-7\">\u00d6rnek-7<\/span><\/h3>\n\n\n\n<p>Bu \u00f6rnekte, ID de\u011feri 6 olan kategorideki b\u00fct\u00fcn yaz\u0131lar, bu kategoride olup, blogun en \u00fcst\u00fcne sabitlenmi\u015f olanlar hari\u00e7 tutularak, g\u00f6sterilmi\u015ftir.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n\/* Blogun en \u00fcst\u00fcne sabitlenmi\u015f yaz\u0131lar\u0131n hepsini getir *\/\n$blogun_en_ustune_sabitlenmis_yazilar = get_option( 'sticky_posts' );\n\n\/* Sorgu olu\u015ftur *\/\n$sorgu = new WP_Query( array(\n 'cat' => 6,\n 'ignore_sticky_posts ' => 1,\n 'post__not_in' => $blogun_en_ustune_sabitlenmis_yazilar,\n));\n\n\/\/ WordPress d\u00f6ng\u00fcs\u00fc\nif ( $sorgu->have_posts() ) { ?>\n\t&lt;div class=\"blogun-en-ustune-sabitlenmis-yazilar\">\n\t &lt;?php while ( $sorgu->have_posts() ) {\n\t   $sorgu->the_post(); ?>\n\t   &lt;h2 class=\"sabitlenmis-yazi-basligi\">\n\t    &lt;a href=\"&lt;?php the_permalink(); ?>\" title=\"&lt;?php the_title(); ?>\">&lt;?php the_title(); ?>&lt;\/a>\n\t   &lt;\/h2>\n\t   &lt;?php the_excerpt(); ?>\n\n         &lt;?php } ?>\n\t&lt;\/div>\n\n&lt;?php } ?>\n\n&lt;?php\n\/* Ba\u015fka bir sorgu i\u00e7in haz\u0131r ol *\/\nwp_reset_postdata();\n?><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Ornek-8\">\u00d6rnek-8<\/span><\/h3>\n\n\n\n<p>Bu \u00f6rnekte, sayfalanm\u0131\u015f bir ar\u015fiv sayfas\u0131nda, ID de\u011feri 6 olan kategorideki b\u00fct\u00fcn yaz\u0131lar, bu kategoride olup, blogun en \u00fcst\u00fcne sabitlenmi\u015f olanlar hari\u00e7 tutularak, g\u00f6sterilmi\u015ftir.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n\/* Sayfa numaras\u0131n\u0131 tespit et *\/\n$sayfa_numarasi = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1;\n\n\/* Blogun en \u00fcst\u00fcne sabitlenmi\u015f yaz\u0131lar\u0131n hepsini getir *\/\n$blogun_en_ustune_sabitlenmis_yazilar = get_option( 'sticky_posts' );\n\n\/* Sorgu olu\u015ftur *\/\n$sorgu = new WP_Query( array(\n        'cat' => 3,\n        'ignore_sticky_posts' => 1,\n        'post__not_in' => $blogun_en_ustune_sabitlenmis_yazilar,\n        'paged' => $sayfa_numarasi,\n));\n\n\/\/ WordPress d\u00f6ng\u00fcs\u00fc\nif ( $sorgu->have_posts() ) { ?>\n\t&lt;div class=\"blogun-en-ustune-sabitlenmis-yazilar\">\n\t &lt;?php while ( $sorgu->have_posts() ) {\n\t   $sorgu->the_post(); ?>\n\t   &lt;h2 class=\"sabitlenmis-yazi-basligi\">\n\t    &lt;a href=\"&lt;?php the_permalink(); ?>\" title=\"&lt;?php the_title(); ?>\">&lt;?php the_title(); ?>&lt;\/a>\n\t   &lt;\/h2>\n\t   &lt;?php the_excerpt(); ?>\n\n         &lt;?php } ?>\n\t&lt;\/div>\n\n&lt;?php } ?>\n\n&lt;?php\n\/* Ba\u015fka bir sorgu i\u00e7in haz\u0131r ol *\/\nwp_reset_postdata();\n?><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Baz\u0131 yaz\u0131lar\u0131m\u0131z \u00e7ok \u00f6nemlidir ve blogun en \u00fcst\u00fcnde durmalar\u0131 gerekir ki herkes g\u00f6rs\u00fcn.  Bir yaz\u0131n\u0131n, blogun en \u00fcst\u00fcne sabitlenmesi nas\u0131l yap\u0131l\u0131r? T\u0131kla \u00f6\u011fren.<\/p>\n","protected":false},"author":1,"featured_media":25,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[107,108],"class_list":["post-2525","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress-tema-yapimi","tag-blogun-en-ustune-sabitlenmis-yazi","tag-sticky-post"],"_links":{"self":[{"href":"https:\/\/sitecenneti.com\/wordpress\/wp-json\/wp\/v2\/posts\/2525","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sitecenneti.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sitecenneti.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sitecenneti.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sitecenneti.com\/wordpress\/wp-json\/wp\/v2\/comments?post=2525"}],"version-history":[{"count":0,"href":"https:\/\/sitecenneti.com\/wordpress\/wp-json\/wp\/v2\/posts\/2525\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sitecenneti.com\/wordpress\/wp-json\/wp\/v2\/media\/25"}],"wp:attachment":[{"href":"https:\/\/sitecenneti.com\/wordpress\/wp-json\/wp\/v2\/media?parent=2525"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sitecenneti.com\/wordpress\/wp-json\/wp\/v2\/categories?post=2525"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sitecenneti.com\/wordpress\/wp-json\/wp\/v2\/tags?post=2525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}