EDIT:
heres benim dosya sorgu maby başka onun bir şey yukarı hareket çalışıyor şu - http://pastebin.com/4Cw3xMEM
Bu SQLyog doğrudan sorgu olarak çalışır
SELECT * FROM wp_posts
WHERE post_status = 'publish'
AND post_type = 'post'
AND YEAR(post_date)=2010
ORDER BY post_date DESC;
it returns the three posts which are from 2010 but when i try run it via my wordpress it pumps out all the posts, regardless of date
i know theres a few things to be done so it selects the correct tables and as far as i can gather, the following 'should' be alright
SELECT wposts.*
FROM $wpdb->posts wposts, $wpdb->postmeta wpostmeta
WHERE wposts.post_status = 'publish'
AND wposts.post_type = 'post'
AND YEAR(wposts.post_date)=2010
ORDER BY wposts.post_date DESC;
i gerçekten 'wposts anlamıyorum. 'Hiç, ama wordpress kodeks üzerinde örneklerde bu tür bir şey kullanır
nihai hedefi işistasyonunda belli yıl mesajları çekmek için bir sorgu yapmak ve yılda mesajların WP görüntü gruplarını yapmak için kullanabilirsiniz için
i düzgün wordpress yapısını kullanarak querys aramak için nasıl açıklamak yardımcı bir şey bulamıyorum
if someone can explain a few of these things it might help alot, example, with the following:
$wpdb->posts
ben sadece bir foreach bir dizinin parçaları atama için php kullanılan gördük içindir - '>' i fikrim yok
- nasıl ben bu şey işe alabilirim?