最新消息: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)

customization - Publish pagesposts as HTML?

matteradmin8PV0评论

We're looking to use a plugin or custom setup for authors to create pages or posts and publish them as single HTML files. The file could be saved on the server in a specific directory or have a download button from within the editor.

So far we have found 2 plugins that almost achieve this function:

WP Static Output

Really Static

Both work fairly similar but need admin access to generate. They also create the files in the following fashion:

dir-on-server/page-title/index.html

where I would need

dir-on-server/page-title/page-title.html

Any thoughts on this? Has anyone done something similar? Thanks in advance.

We're looking to use a plugin or custom setup for authors to create pages or posts and publish them as single HTML files. The file could be saved on the server in a specific directory or have a download button from within the editor.

So far we have found 2 plugins that almost achieve this function:

WP Static Output

Really Static

Both work fairly similar but need admin access to generate. They also create the files in the following fashion:

dir-on-server/page-title/index.html

where I would need

dir-on-server/page-title/page-title.html

Any thoughts on this? Has anyone done something similar? Thanks in advance.

Share Improve this question asked Oct 31, 2012 at 14:24 mattmmattm 211 bronze badge 1
  • Plugin recommendation is off-topic now. Maybe a combination of wp_remote_get and file_put_contents can do the job. – brasofilo Commented Oct 31, 2012 at 14:57
Add a comment  | 

1 Answer 1

Reset to default 0

wget --mirror as part of a cron job may do what you need.

The lack of dynamic content will give the following issues:

  • comment support (which I delegate to disqus)
  • search support (which can be delegated to Google site search, though I haven't implemented that myself)
  • delete of posts no longer work
  • your permalinks should not use the ?postid= form.

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far