最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

api - How to add custom preview urls for some pages?

programmeradmin5浏览0评论

I use WordPress as a headless CMS through its API.

When clicking on Preview it takes me to domain/slug. This works for most of the pages, however there are some pages that are under sub-path domain/sub-path/slug.

How to enable the Preview button to take the user to the correct url? I use ACF, could that be utilised somehow to provide optional value for 'sub-path'?

发布评论

评论列表(0)

  1. 暂无评论