最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

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

matteradmin7PV0评论

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.

Post a comment

comment list (0)

  1. No comments so far