Skip to content

u/hurkle

In this archive from Jul 2014 to Nov 2024

7
posts
79
comments
1
media
523
score

Top posts

Ideal low-cost Dev/Staging/Prod setup?

The agency I work for is moving heavily into WordPress. As one of the programmers, I can write plugins and create custom themes and such, and I'm familiar with environments that utilize multiple environments so that Production sites are deployed only after testing and staging. But I don't have a lot...

16 points15 comments
Open on Reddit

How to customize default spam error message?

We inherited a site using Formidable. They’re getting a lot of spam submissions despite having recaptcha, honeypot, etc. turned on. After reading up on Formidable, it runs the message body against the Settings -> Discussion -> Disallowed Comment Keys. So we’re using that to disallow any submissions...

1 points6 comments
Open on Reddit

PHP page templates in modern WordPress?

I’m working on a project that uses custom PHP page templates for some of the pages. I switched the theme from 2019 to 2023, then copied over the templates to the 2023 templates directory. Oh no! They don’t work anymore! What’s this? The templates are HTML and if you add PHP code to one, the PHP is n...

1 points3 comments
Open on Reddit

Top comments

If the site is working and taking payments, $200 is very inexpensive. Taking a theme and doing some customization to it is pretty standard for cheap websites. If you aren’t experienced in creating websites and adding content, your estimate of the work needed is likely wildly inaccurate.

24 points

We have had to do this often enough that it is a regular procedure. The only issue generally is if the domain name is changing from Dev to Prod, and a plugin or theme has been used that encodes the domain name in serialized data. Then you're going to have a bad time.

But our basic process is: upload the entire filesystem to production, do a search and replace on a database export to change to domain name from Dev to Prod, and then importing the new database into the production database, then editing wp-config.php to the correct database values.

If you're not comfortable with that level of hands-on, the Codex literally has the book on it: https://codex.wordpress.org/Moving_WordPress

It links to plugins which may be able to help you. I've heard good things about one called Duplicator in particular, but have never used any.

Edit: as far as automation, we are currently in the process of choosing a solution. Wodby looks like an interesting tool, but we will probably end up with github and a CI tool like Jenkins.

8 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.