Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter yakuter

    (@yakuter)

    Thanks a lot for your help. I solved the problem like this;

    function arabunu ()
    {
    global $wpdb;
    $sorgu= "AND $wpdb->posts.post_status='publish'
    AND $wpdb->posts.post_type='post'
    AND $wpdb->posts.post_title LIKE '".$_SESSION["harf"]."%'";
    return $sorgu;
    }
    add_filter('posts_where', 'arabunu');
    Thread Starter yakuter

    (@yakuter)

    Thanks Micheal for your help but I have a pagination (pagebar plugin) and I want it work when I click A letter for example. By code you give above paginations still gets all the posts but I need to make it get only posts starts with “A”. This should be less number of posts.

    I saw some filters like posts_where but I couldn’t make it.

    Forum: Plugins
    In reply to: sessions in plugin
    Thread Starter yakuter

    (@yakuter)

    it doesn’t work. I register a variable but it doesn’t go on the other pages and I can’t say session_start(). it says the header problem:(

Viewing 3 replies - 1 through 3 (of 3 total)