Redirect to custom post if custom archive page has just one result?

So i have made a Custom Post Type called cars and 4 taxonomies that i use to makeedit the cars pages. I have a search&a

So i have made a Custom Post Type called cars and 4 taxonomies that i use to make/edit the cars pages. I have a search&filter pro plug-in to help me sort my pages by the 4 taxonomies assigned. It gives me results on the custom archive page i made, using a grid and the search and filter plug-in. My problem is i want the archive to be redirected to the post page of the car if we have only one result in the search archive.

But i need it adapted to custom post types. Can anyone help !?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744874406a4598459.html

相关推荐

  • Redirect to custom post if custom archive page has just one result?

    So i have made a Custom Post Type called cars and 4 taxonomies that i use to makeedit the cars pages. I have a search&a

    1天前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信