3 thoughts on “fetch wordpress posts which starting with specific word or alphabet”
well, looks nice but it isn’t working for me i got the “Fatal error: Call to a member function have_posts() on a non-object in C:\xampp\htdocs\riodesign\wp-content\themes\riodesign\category-25.php on line 70”
line 70: if(have_posts()): while ($my_query->have_posts()) : $my_query->the_post();
If you are try to use the code in index.php then there is no issue. Now you are trying to use the code in category-25.php file means you are trying use the code the only on category page for only category id 25. how you are writing the code please tell me detail then I will help you..
well, looks nice but it isn’t working for me i got the “Fatal error: Call to a member function have_posts() on a non-object in C:\xampp\htdocs\riodesign\wp-content\themes\riodesign\category-25.php on line 70”
line 70: if(have_posts()): while ($my_query->have_posts()) : $my_query->the_post();
any ideias?
If you are try to use the code in index.php then there is no issue. Now you are trying to use the code in category-25.php file means you are trying use the code the only on category page for only category id 25. how you are writing the code please tell me detail then I will help you..
Hello,
I am using WP 3.0.1, and my theme index.php looks like this:
Where in this template index.php can I write the code shown above ?
Regards,
Josef