Questions tagged [automation]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

Delete old thumbnail when updating new

I have a situation when I update a new featured image, I have to delete the previous one. because it's taking up too much space. Is there any custom code or plugin that can help me? Thanks In Advance.
0 votes
0 answers
23 views

How to auto-generate names for guest users who leave comments?

Along with disabling the URL and email fields in comments, I'm experimenting with auto-generating random names (e.g. nicknames like "Harry" or "Larry") for guest users in order to ...
0 votes
1 answer
80 views

Activate and deactivate two plugins automatically at certain hours

How I can Activate and deactivate two plugins automatically at certain hours? For example, I want the "akismet" plugin to be active only from 10am to 7pm and the other Times deactivated. and ...
0 votes
1 answer
22 views

How to use custom fields like Title to show value in content?

I need some automation in my Wordpress Blog. As we type Title and it appears in post. How can we add fields like Title? Then how I can show the value of those fields in my single-post. I want to use ...
0 votes
1 answer
36 views

How to put post title or keyphrase in content on different places automatically?

I want to repeat my title/keyword in different places in my content. for example, my title is "Dog" I want to replace "Dog" everywhere I have inserted *** or any hint. how this is ...
0 votes
1 answer
22 views

Can I do in-page changes binding events/triggers to actions in WordPress?

I've been coder for decades but I need to setup some microsites super-fast. I chose WordPress as the platform and I'm complete newbie to WordPress. The behaviour I need I know can do it programming. ...
0 votes
0 answers
32 views

How to automatically create a terms based on each post of a post type

I am working on a music site which has custom post types- artists, and releases. I have about 3,000 artists, and about 19,000 releases in my database. I'd like to create a new taxonomy term for each ...
0 votes
0 answers
52 views

How to select a category automatically based on a word in WordPress post title?

I am working with an auto-posting blog where the articles come through RSS Feed. There are lots of posts publishing every day automatically. Now I need to get a category automatically based on a word ...
1 vote
0 answers
41 views

How to Disable auto id attributes in Heading tag?

I don’t know why but WP is automatically adding id attributes to h2 tags. I am not supplying any id or class attribute and I don’t need it. Also, it’s adding type="1" to <ol> tag that’...
0 votes
0 answers
12 views

Assignt automatically two categories by author

I'm looking for a way to automatically assign two categories each time an author makes a blog post: General category (will always be the same for all authors). Author category, with de same exact ...
0 votes
0 answers
23 views

Wordpress, Mailchimp, Campaigns - should separate campaigns be used for something like notifying users of drip content?

I am new to integrating Wordpress and Mailchimp. I have a Wordpress site that offers music courses. Within a course are several lessons. I drip the lessons weekly, so that each lesson starts on a ...
  • 307
0 votes
1 answer
46 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
1 answer
85 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
1 answer
383 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
1 answer
69 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 ...
  • 15
0 votes
1 answer
51 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
1 answer
108 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, ...
  • 3
0 votes
1 answer
51 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 ...
  • 103
0 votes
1 answer
43 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
2 answers
45 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 ...
  • 113
0 votes
1 answer
128 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
2 answers
380 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 ...
  • 103
0 votes
2 answers
2k 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 ...
  • 101
0 votes
1 answer
39 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 ) ) $...
  • 307
0 votes
1 answer
71 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
1 answer
100 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 ...
  • 976
0 votes
2 answers
1k 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
1 answer
16 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
0 answers
36 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 ...
  • 1
0 votes
1 answer
18 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
1 answer
627 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: ...
  • 715
0 votes
0 answers
31 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
1 answer
85 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
1 answer
764 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
1 answer
86 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
2 answers
65 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 ...
  • 115
0 votes
1 answer
25 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 ...
  • 103
1 vote
0 answers
580 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
1 answer
55 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 ...
  • 11
0 votes
1 answer
29 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
1 answer
135 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
1 answer
48 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 ...
  • 101
1 vote
1 answer
550 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 ...
  • 165
0 votes
1 answer
407 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 ...
  • 3
-1 votes
1 answer
54 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
2 answers
680 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
1 answer
180 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 ...
  • 191
1 vote
0 answers
113 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
0 answers
150 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
0 answers
283 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 ...