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

redirect - How to make front page temporarily show content of internal page

programmeradmin12浏览0评论

I'm building a Wordpress site with /blog/ as the posts page, with ACF and other options on the page. Client wants to launch the blog part of the site on their current non-wordpress site as a temporary basis until the rest of the site is built. I thought it would be relatively easy...

First, upload the Wordpress install to /blog on the live site (that part worked great)

Then make the /blog page the front page via Settings -> Reading... and that didn't work at all. Homepage and Posts page can't both be "Blog", setting homepage to "Latest posts" removes the ability to edit the ACF fields and other issues. I spent a few hours trying to come up with some redirect to just show /blog/ as the front page of the Wordpress install, but nothing I tried worked.

It feels like it should be easy to do, but I'm at a loss.

I'm building a Wordpress site with /blog/ as the posts page, with ACF and other options on the page. Client wants to launch the blog part of the site on their current non-wordpress site as a temporary basis until the rest of the site is built. I thought it would be relatively easy...

First, upload the Wordpress install to /blog on the live site (that part worked great)

Then make the /blog page the front page via Settings -> Reading... and that didn't work at all. Homepage and Posts page can't both be "Blog", setting homepage to "Latest posts" removes the ability to edit the ACF fields and other issues. I spent a few hours trying to come up with some redirect to just show /blog/ as the front page of the Wordpress install, but nothing I tried worked.

It feels like it should be easy to do, but I'm at a loss.

Share Improve this question edited Mar 22, 2019 at 20:43 Dan Goodspeed asked Mar 22, 2019 at 20:02 Dan GoodspeedDan Goodspeed 1013 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

If you want both a posts loop and ACF fields on a page, I believe you need to have a real page for it, put a loop on it, and then designate that as your front page. It sounds like you already have this page set up. Select it as your front page.

You will temporarily not be using the posts page setting, so it does not need to be set to "blog". Someone is free to correct me if I'm wrong, but putting a page there mostly changes it's template hierarchy to look for home.php.

发布评论

评论列表(0)

  1. 暂无评论