WordPress.org

Ready to get started?Download WordPress

Forums

Post Type Panel - Wp list Table ? (1 post)

  1. witi22
    Member
    Posted 1 year ago #

    Hi Everybody,

    I've got a custom post type ( xxx ), with some custom metaboxes, everything works perfectly.

    On the admin panel for that post_type ( edit.php?post_type=xxx ), i've got a tracker in my Url ( edit.php?post_type=xxx&tracker=007 ).
    This tracker refers to a postmeta for those post type.

    I would like to display in the table, the posts that matchs this tracker. I've found a kind of solution with WP_list_table class, but the main problem is that method need to add a menu item with add_menu_page. Since i've got post type, i already have a menu item, so don't need to add an another.

    I also tried to use posts_clauses hook, but that won't work because it can't change the FROM clause to use postmeta as well.

    Is there a way to tell wordpress to display those posts IF Something ( postmeta = 007 here ) ?

    Thanks for thinking about it guys !

Topic Closed

This topic has been closed to new replies.

About this Topic