Questions tagged [automation]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
23 views

Using python to delete specified text from thousands of old blog posts

I'm a web editor that uses WordPress and my site has a bit of an annoying problem. We basically have tens of thousands of articles going back about ten years and we have to delete all of the images we ...
0
votes
1answer
40 views

Bulk updating a group of WordPress Pages every 10 minutes

I need to bulk update 86 specific WordPress Pages every 10 minutes, with the term updating I mean the same thing as clicking the Blue Update Button on each page, and having them all update at the same ...
0
votes
1answer
45 views

Automatically import content to wordpress from a json file

I have a scrape that generates content in JSON format and can be obtained by GET to a specific URL, the URL from which to extract information is this: https://api.webscraper.io/api/v1/scraping-job/...
1
vote
1answer
64 views

PHP variable not regenerating when publishing multiple posts at the same time

Context: I am building an automated system which will grab record from a database and immediately publish them en masse as a CPT. When they are being published, I have a function in the functions.php ...
0
votes
1answer
22 views

Setting a default text for excerpts of a particular category

I am extremely new to WordPress Development and PHP in general, and was wondering if there is a way to create a function that would automatically add some pre-determined text to the excerpt of posts ...
0
votes
0answers
13 views

Gravity forms to local excel doc

Website uses gravity forms, we have a local excel document we use for business processes. We are aiming to either use an integration or an automatic regular download to bring form submissions into the ...
0
votes
0answers
5 views

Auto-login from Wordpress Page to CRM Tools

I was asked to build an "intranet" with WordPress. Users should have different dashboards here with links for tools. These include tools such as Hubspot, Salesforce, but also simple links to ...
0
votes
1answer
80 views

Realtime database update from 3rd party apps (notion, airtable, sheet, etc)

Can I achieve Realtime database update from spreadsheet? My requirements: I have many posts with custom fields that have certain values. I have all these values stored on a spreadsheet (GoogleSheets, ...
0
votes
1answer
25 views

How can I automatically display the section link on my one-page Elementor website?

My website is using long one-page posts for each issue of our magazine and these are navigated through anchor links. I add the anchor links through Elementor. I want to be able to display the section ...
0
votes
1answer
32 views

Send a review notification email to admin when a post is 12 months old

I'd like to send an automated review email to the site admin whenever a post has been published for more than 12 months. I've tried using the following code but can't seem to get it to work, or ...
1
vote
2answers
38 views

Is it possible to populate my wordpress site with many random posts for testing purposes?

I have just deployed the Wordpress application on my Kubernetes cluster following the instructions from https://kubernetes.io/docs/tutorials/stateful-application/mysql-wordpress-persistent-volume/ Now ...
0
votes
1answer
50 views

Wordpress Body Content How to add current page title automatically in different places?

I'm new to wordpress with very limited/low knowledge in coding, I'm trying to build a faq section for different pages, where I need to insert the page title, post date, author etc. in multiple places. ...
0
votes
2answers
273 views

Adding Tracking Details for Advanced Shipment Tracking Plugin From Order Notes

I have a woocomerce site which is connected to UPS e-fulfillment and when they they ship out an order, the tracking number ends up getting updated to the order notes like in this example: To put ...
0
votes
2answers
826 views

How do I automatically generate pages from a database?

I have a spreadsheet of information I'd like to publish online. I'm trying to find the easiest and best-looking way of doing this. The page will be informational and not intended to generate revenue ...
0
votes
1answer
34 views

Automatically create tags and merge with categories

In the following code I can set tags automatically and add to a pre-existing category: <?php function update_post_terms( $post_id ) { if ( $parent = wp_is_post_revision( $post_id ) ) $...
0
votes
1answer
28 views

Automatically delete post in a single category when a new one is created

Is it possible to delete/move to trash a post in a single category each time that a new post in the same category is created? I mean, I need to always keep just one post (the most recent) visible in ...
1
vote
1answer
54 views

How to auto empty comment trash after X days

I know how to programmatically delete comments that are X days old but they then go to the trash. How do I empty the comment trash every X days? function ...
0
votes
2answers
690 views

Activate and deactivate plugin automatically

How I can Activate and deactivate plugin automatically? For example, I want the "Yoast Seo" plugin to be active only on Monday, Wednesday, Friday, Saturday and the other days deactivated. How can I do ...
0
votes
1answer
14 views

How can I post exact same post but with a few things changed? (with some sort of Automation)

I wanna duplicate some of my posts but want to change a few variables. For example, I would just like to make some variable in my posts that will be changed every time I give inputs. These can be ...
0
votes
0answers
32 views

allow multisite in the installation process

So I want basically to automate wordpress installation for multisite, I looked a bit and found that I can do that using the drop-in plugin wp-content/install.php, It obviously works for normal ...
0
votes
1answer
17 views

Auomated crash recovery?

Is there, or do you know of any in development, a solution that will provide push-button recovery when a plugin update causes a crash??? Many systems now provide push-button rollback to a backup if ...
0
votes
1answer
492 views

WP Cli - post add meta in xargs after wp post generate - add multiple fields

This command will generate posts and create a field with key "bar" and value "foo" wp post generate --format=ids --count=10 | xargs -d ' ' -I % wp post meta add % foo bar This does not seem to work: ...
0
votes
0answers
25 views

Checkboxes to automatically create pages when I activate a theme

So, I want to create pages automatically on theme activation. This seems kinda easy with wp_insert_post(). The problem is: I need to select only certain pages to be created. Is there a way to do this?...
1
vote
1answer
80 views

Automate dir and DB stack creation with WP-CLI

This is how I create a database stack and a directory for WordPress in my Ubuntu environment: cat <<-DBSTACK | mysql -u root -p"${dbrootp}" CREATE USER "${domain}"@"localhost" IDENTIFIED BY ...
3
votes
1answer
642 views

Shortest possible shell script to install WordPress on Nginx server?

The following script is the one I use on Ubuntu-Nginx environments, to get a WordPress webapp up and running. I run it with a domain as an argument: bash ~/nwsm.sh example.com My question is what ...
0
votes
1answer
77 views

Automating WP application directory creation (domain name passed as a variable argument)

This is the farthest I've get so far automating Dir creation for WordPress. How I could I further automate this in the Linux command line? #!/bin/sh domain="$1" echo "Please save your DB user ...
0
votes
2answers
49 views

Making sure updates didn't break anything

I am tasked with updating plugins and core on a number of blogs that I am completely unfamiliar with (nothing weird about them, but I haven't worked with them before today). What I need to do is ...
0
votes
1answer
23 views

Scheduled emails to include only posts and calendar events for the upcoming week

Please be kind, I'm new to WordPress and PHP. :) I volunteer with a local animal rescue group (non-profit). We are migrating our web site to be WordPress. On our current site, we can go in and create ...
1
vote
0answers
469 views

Is there a solution to auto-post data to a WP post from a database

I'm looking to add posts to my WP website from a (self managed) database source - could be form or excel/CSV data, either internally (in WP itself) or external, i.e. from an excel sheet in Dropbox. I ...
0
votes
1answer
48 views

Automatically Add Page Links to Nav Menu

I wrote this code in my functions file to automatically add page links to the nav menu if a plugin is activated. It works perfectly on my test server but pages don't load any content below the header ...
0
votes
1answer
22 views

automation of plugin installations

My business is building and establishing websites for all kinds of businesses and companies. So, every time I start a new site for a client of mine, I have to install the same plugins over and over ...
0
votes
1answer
115 views

Automatically generator a Wordpress installation on my subdomain

i am currently working on a project which i hope will result in a e-commerce platform as Shopify. The reason im building this project, are so my customers are able to pay monthly for day Wordpress ...
0
votes
1answer
46 views

Automate configuration after new/hosted installation

Lets say I launch a new WordPress site at a hosted provider such as WPEngine. As I start to configure my site (install a template, install plugins, create layout and content for my pages, etc.), is ...
1
vote
1answer
471 views

Automating Page Creation

I have a huge website, with thousands of pages. It's a reference site, with a page for every country, each U.S. state, every species of mammal, etc. I've tried WordPress on some smaller sites and ...
0
votes
1answer
381 views

How to populate a Mailchimp newsletter with latest events from Wordpress plugin EventOn?

Once a month I send a newsletter with upcoming events. I also publish all the event on a wordpress site with EventOn. I was wondering if there is a way to import the latest events in a mailchimp ...
-1
votes
1answer
33 views

Adding a variable to a meta field in the backend?

I have a plugin which lets me create retailers. These retailers all have a meta field called commission - the value of which I might need to change down the road. Most of them are just set to 15 at ...
0
votes
2answers
589 views

Automatically convert standard posts with custom fields to custom post types

I am just beginning a page, and for my current purposes it seems that the only extra things I need are a couple of extra fields for posts of a certain category. Because I only need to add a little ...
0
votes
1answer
134 views

On install, automatically create page and set it as front page

On install, I want a page automatically created and being set as front page. I able to create the page but unable to set it as front page. Below is WP Install Defaults codes which automatically ...
1
vote
0answers
107 views

Best way to schedule daily change in CSS parameter

I have a few CSS values on my WP site that I would like to change once a day on a daily basis using a random variable and I am trying to determine the most elegant way of doing this. For the sake of ...
0
votes
0answers
142 views

database - multiple wordpress installations using same database - can they share plugin settings?

I have multiple Wordpress installations sharing a database. They are also sharing the same wp-content folder. Is it possible for the sites to also share the same plugin options? I found a method for ...
0
votes
0answers
221 views

How to auto create site after user sign up on multisite(network)

I'm wondering if there is a way that we could create a site while user is registering in a sign up form. So the idea is I want to create a form with for exemple title, username, email, password and ...
1
vote
1answer
84 views

Automate specific steps on WordPress install

When I set up a WordPress project, I complete the following steps before I get to work: Unpack WordPress Delete pre-installed themes and copy over _s theme. Set up repo via BitBucket and add to ...
1
vote
1answer
42 views

How to incorporate Documentation into wordpress?

I am building a site, and I would like to have my documentation built into the site. For example if I use JSDoc to generate documentation for javascript, I get the auto generated files, I can just ...
4
votes
1answer
581 views

Generate WP-CLI @alias for each site on multisite

I have a few multisites, each with several sites, that I want to auto-generate @aliases for. Is there way to sync those sites as aliases in my site list? I'd like to be able to target a single site ...
14
votes
1answer
2k views

Fastest way (least amount of steps) to locally import a remote database using WP-CLI

I'd like to automate the task of importing a remote database using the WP-CLI. The current process is to ssh to the server, and run an export to file using WP-CLI, copy the file to a local directory ...
1
vote
1answer
3k views

How to Submit Post Via cURL & PHP

Thanks for reading. I'm trying to submit a post via PHP. I'm filling in a large number of posts from a good amount of data I've scraped so I need this to be automated. I don't have the time (or ...
1
vote
0answers
379 views

How to create a WP Cron hooks based on schedules from Advanced cron manager plugin?

I need to run the following script once per 24 hours: (1) http:domain.com/wp-cron.php?import_key=Iq_GCn7v0&import_id=36&action=trigger the following one to run after the above, once or twice ...
2
votes
0answers
4k views

Force update all posts in custom post type, no content changes

I have imported data from a custom post type that has location data for a map plugin (Progress Map). I have about 500+ posts each with different location data. For some reason the location data isn't ...
2
votes
0answers
49 views

Altered media sizes (in dash), not updating to existing images/posts

(I have searched but not found a satisfying answer – bear with me). I have a client that has a website with 1500 posts. Each post consists of ONE image, no text. I have changed to the Oria theme (...
0
votes
1answer
2k views

redirects for removed/deleted woocommerce products

I need to remove some discontinued products from a woocommerce site. I'm just wondering how to go about automating this. I haven't figured out whether to throw a 301, 404 or 410 error, but either way, ...