Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Let me rephrase my question to be clearer:
    When a “GET_SEARCH_FORM();” tag is located inside a loop, How to WRAP the GET_SEARCH_FORM(); ?

    Please remember, my question is not: <?php get_search_form(); ?>
    BUT: get_search_form();
    Because it is inside a loop

    <?php else :
    if ( is_category() ) { // If this is a category archive
    printf(“<h2 class=’ccc’>Sorry, but </h2>, single_cat_title(”,false));}

    else {
    echo(“<h2 class=’center’>no post</h2>”); }
    get_search_form();

    endif;
    ?>

    Thank you

    May I asked you a question?

    How to WRAP the GET_SEARCH_FORM();
    If it is located inside a loop. Please pay attention at : get_search_form();

    The reason I ask you this question is for me to be able to STYLE the SEARCH BOX to be centered at the page.

    Please take a look the following:

    <?php else :
    if ( is_category() ) { // If this is a category archive
    printf(“<h2 class=’ccc’>Sorry, but </h2>, single_cat_title(”,false));}

    else {
    echo(“<h2 class=’center’>no post</h2>”); }
    get_search_form();

    endif;
    ?>

    Thank you

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