• Im newbie in plugin development. please help me to following point to develop custom search plugin.

    1. how i connect my table “wp-article” to default theme’s searchform.php template.
    2. in searchform.php in form action i saw these codes which could not understand >>> <?php echo esc_url( home_url( ‘/’ ) ); ?>. Please explain it.
    3. Can i add core coding in wordpress.

Viewing 1 replies (of 1 total)
  • Thread Starter wpdebug

    (@wpdebug)

    my form codes

    <form role=”search” method=”get” class=”search-form” action=”<?php echo esc_url( home_url( ‘/’ ) ); ?>”>
    <label>cxcczcxzcczcxz
    <span class=”screen-reader-text”><?php echo _x( ‘Search for:’, ‘label’, ‘twentysixteen’ ); ?></span>
    <input type=”search” class=”search-field” placeholder=”<?php echo esc_attr_x( ‘Search …’, ‘placeholder’, ‘twentysixteen’ ); ?>” value=”<?php echo get_search_query(); ?>” name=”s” title=”<?php echo esc_attr_x( ‘Search for:’, ‘label’, ‘twentysixteen’ ); ?>” />
    </label>
    <button type=”submit” class=”search-submit”><span class=”screen-reader-text”><?php echo _x( ‘Search’, ‘submit button’, ‘twentysixteen’ ); ?></span></button>
    </form>

Viewing 1 replies (of 1 total)
  • The topic ‘Custom Search Box connect with table’ is closed to new replies.