Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Is there any way to possibly force a redirection to the post (type's) listing page (edit.php?post_type=<post-type>)?

EDIT: Since I got a LMGTFY link, let me clarify before I downvote it.

Is there anyway to redirect the user forcibly to the post type's listing page AFTER they've already submitted the form to either edit the post or create a new post?

share|improve this question
    
My Original Comment: Yes, by adding a redirect. Either in your server configuration or with a Wordpress Redirect Plugin. –  hakre Feb 8 '11 at 14:50

1 Answer 1

up vote 2 down vote accepted
share|improve this answer
    
Reading the Post Status Transitions article, I'm guessing I'd need to hook publish_visitor where visitor is my CPT? Thanks! –  Zack Feb 8 '11 at 19:05
    
@Zack yep, that seems to be right. –  Rarst Feb 8 '11 at 19:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.