mimyo_
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Custom taxonomy query giving wrong result (PHP ver dependancy?)I tried the same thing with get_posts(), which behaved the same. ‘operator’=>’OR’, ‘relation’=>’OR’ did the same thing.
I then somehow achieved what I wanted with query_posts(), which was like :
$args = array('post_type'=>'disc', 'posts_per_page'=>6, ''=>$artistname, 'order'=>'DESC'); query_posts( $args );and $artistname is a string where I joined A and B by a comma.
So, this works on both localhost and hosted server. But I’ve heard that it’d be better not to use query_posts() if possible. I’d like to go with WP_Query or get_posts() if it’s possible, especially because I don’t really get what really matters and I’ll have to include this query twice per post. Any solution? (Or… is it safe enough to use query_posts() in this case??)
Forum: Fixing WordPress
In reply to: Possible to replace search keywords?If the example above is not very clear, you can think of :
a visitor searches “Jackson 5”, “Jackson Five”, “잭슨파이브” or “잭슨5”
and they would get the search result for “Jackson 5”.I’m closing the thread. 🙂
Thanks!
Actually I wanted to retrieve the array of fields for each of top posts. I triedtptn_pop_posts( ‘posts_only=10&limit=10&daily_range=60’ );
and it seems to be working fine! Thank you!!