• Resolved rodrigues.will92

    (@rodrigueswill92)


    Hello, I need to create a search field in the list of posts from admin panel.
    The field default search looks for title, but I need the search to be made in the tags.
    I researched how to pass the field for wp_posts_list_table but have not found references.

    Can anyone help me?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter rodrigues.will92

    (@rodrigueswill92)

    If I make a SQL query I can use wp_posts_list_table to list results?

    Thread Starter rodrigues.will92

    (@rodrigueswill92)

    I was going to solve the query in the display method in wp-admin/edit.php.
    Follows the code for those who have this same question.

    <?php $wp_list_table->display(query_posts(‘tag=’.$_GET[‘post_tag’].’&showposts=20′)); ?>

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

The topic ‘Search by tag post in admin panel’ is closed to new replies.