• Is there a way to list and edit not only ‘post_type=post’ ? I wan’t there listed post_type=someothertypeofpost and edit it same way as normal post.

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

    (@slupek)

    i’ve tride smth like this:
    $query->query_vars['post_type'] = 'post_sgas';
    and hook:
    add_action('pre_get_posts', 'notonlyposts', 1);

    and it ‘worked’ but could not be edited, names of post aren’t links :(.
    I tried add more types:
    $query->query_vars['post_type'] = 'post, page, post_sgas';
    this gets nothing ;p seperate by commas in that way doesn’t work.

Viewing 1 replies (of 1 total)
  • The topic ‘edit.php – edit posts, not only ?’ is closed to new replies.