Link to home
Start Free TrialLog in
Avatar of erezabou
erezabou

asked on

wordpress query loop

hi expert,

Here is my loop:

query_posts('cat=23&posts_per_page=3');
        if( have_posts() ) : while( have_posts() ) : the_post();

I need to change in order to get only cat=23 and post subject starting with "Post"

Thanks for your help
Avatar of stergium
stergium
Flag of Greece image

Hello. i think that will do it.
query_posts('cat=23&left(posts_title,4)="Post"');
        if( have_posts() ) : while( have_posts() ) : the_post();

please feedback
ASKER CERTIFIED SOLUTION
Avatar of Ovid Burke
Ovid Burke
Flag of Saint Vincent and the Grenadines image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.