Có phải bạn muốn thiết kế website tiết kiệm chi phí và thời gian mà còn chuẩn seo ?

10/28/13

Chuyển hướng (redirect) trong wordpress


Để chuyển hướng trong wordpress, bạn sử dụng hàm sau:

<?php
    wp_redirect( $location, $status );
    exit;
?>



$location: là một URL
$status: Mặc định là 302

Ví dụ:
<?php wp_redirect( home_url() ); exit; ?>
<?php wp_redirect( 'http://www.example.com', 301 ); exit; ?>

18 comments:

  1. Great Article… I love to read your articles because your writing style is too good, its is very very helpful for all of us and I never get bored while reading your article because, they are becomes a more and more interesting from the starting lines until the end.
    Data Science training in Chennai
    Data science online training

    ReplyDelete
  2. Nice tutorial. Thanks for sharing the valuable information. it’s really helpful. Who want to learn this blog most helpful. Keep sharing on updated tutorials…
    Best Devops Training in pune
    Devops Training in Bangalore
    Microsoft azure training in Bangalore
    Power bi training in Chennai

    ReplyDelete
  3. Very interesting blog Thank you for sharing such a nice and interesting blog and really very helpful article.I have recently visited your blog profile. I am totally impressed by your blogging skills and knowledge.Data Science Training In Chennai

    Data Science Online Training In Chennai

    Data Science Training In Bangalore

    Data Science Training In Hyderabad

    Data Science Training In Coimbatore

    Data Science Training

    Data Science Online Training

    ReplyDelete
  4. Excellent article. Very interesting to read. I really love to read such a nice article. Thanks! keep rocking Best data science courses in hyerabad

    ReplyDelete
  5. It is imperative that we read blog post very carefully. I am already done it and find that this post is really amazing.
    data scientist training and placement in hyderabad

    ReplyDelete
  6. It was a wonderful chance to visit this kind of site and I am happy to know. thank you so much for giving us a chance to have this opportunity..
    data science course fee in hyderabad

    ReplyDelete
  7. You know your projects stand out of the herd. There is something special about them. It seems to me all of them are really brilliant!
    cyber security training malaysia

    ReplyDelete
  8. I will truly value the essayist's decision for picking this magnificent article fitting to my matter.Here is a profound depiction about the article matter which helped me more.
    data science course fee in hyderabad

    ReplyDelete
  9. We are really grateful for your blog post. You will find a lot of approaches after visiting your post. Great work
    full stack developer course with placement

    ReplyDelete
  10. Become up age argue doctor. We station thank. Power American Mrs probably.education

    ReplyDelete