Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

the query is :

<?php 
// Headlines variable can control admin area
// Its like ; 3,4,5,6
$headlines = ".get_option('t_turmanset').";
query_posts( array( 'numberposts' => 4, 'post__in' => array( HOW CAN I ADD HEADLINES ? ) ) );
if ( have_posts() ) : while ( have_posts() ) : the_post(); 

?>

Thank you ;) Ps. sorry about my bad english

share|improve this question

1 Answer 1

I'm not sure if is this that you need, but try to "explode" it...

<?php 
    // Headlines variable can control admin area

    // Does this return the string "2,3,4,5" ???
    $headlines = get_option('t_turmanset');

    query_posts( array( 'numberposts' => 4, 'post__in' => explode(",", $headlines) ) );
    if ( have_posts() ) : while ( have_posts() ) : the_post(); 
?>
share|improve this answer
    
Thanks but it didint work for me. –  Fatih Toprak Nov 3 '11 at 23:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.