Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

The tag has no usage guidance.

0
votes
0answers
14 views

How to automate WordPress database migration?

So I have several WordPress sites that I do work on locally, and then migrate changes to a test.sitename.com (to check for issues), then to sitename.com. I want to write automation script myself, I ...
0
votes
0answers
4 views

Statically populate menu with childs

My problem is very simple. I want to add all pages and subpages of a given parent page inside a menu. The problem is that the few plugins I found for this purpose, JC's Submenu or Gecka Submenu, do it ...
0
votes
1answer
16 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
0answers
16 views

Advice on automated testing

Hey I need to automate e2e tests for a site in wordpress I normally just use WDIO, Cucumber and Selenium for my web tests but this isn't working for this site the content is always in flux customers ...
0
votes
0answers
16 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
73 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 ...
1
vote
0answers
79 views

Shortest script to install a WordPress webapp on Nginx

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
40 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
0answers
22 views

Auto create a new templated page on user registration

Legends and Legendettes I'm needing to create a page that uses the client username as a slug. Is there a plugin or some coding (I am completely green so talk English please) that will create a new ...
0
votes
0answers
16 views

How can I automate a document upload-->process via python --> email report [duplicate]

I am a scientific programmer and am helping out a friend with his business. Currently, he is having users email him csv files, he does loads of manual analysis and analytics, then puts together all ...
0
votes
1answer
19 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
1answer
45 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
33 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
17 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
35 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
31 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 ...
0
votes
1answer
139 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
30 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
1answer
230 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
47 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
92 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 ...
3
votes
1answer
239 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 ...
10
votes
1answer
860 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 ...
0
votes
1answer
2k 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
34 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
50 views

Macros for Wordpress, creating subdomains out of registrations for current domain

I have a website: atmydevice.com and I want people to register on the website. That's easy. But I want the registration to create an automatic subdomain like ac.atmydevice.com with a different theme ...
0
votes
0answers
100 views

Auto draft posts when scheduled date is reached

I have a plugin that allows all scheduled posts to be visible immediately... I'm looking for a function that will automatically set a post's status to "draft" when it reaches it's scheduled date and ...
1
vote
1answer
276 views

Feed format for woocommerce [closed]

I am using woocommerece for my website. I get product feed from different suppliers in excel format with different information in different columns (no consistency in product attributes such as price, ...
0
votes
1answer
404 views

Auto-Tagging a Custom Post Type

I have a custom post type called 'community' and I am trying to automatically generate the tag 'community' upon publishing anything from that custom post type. In layman's terms, a kind of 'if this is ...
0
votes
0answers
20 views

What is the Best way to post each pictures uploaded separately and automatically?

I have a lot of pictures which I should upload them to my website everyday (about 100 pictures per day). These pictures are uploaded to the website with a Title and a specified little Description. ...
3
votes
2answers
2k views

XMLRPC and Underscored custom fields

I was creating my application to automate all of my blogs from my desktop. Target, I'll post blog. That's all. I used XMLRPC service, as you know "xmlrpc.php". I built many of parts, near to done... ...
0
votes
1answer
38 views

When a user registers, create a page from an existing template with their username as the page name

I am wondering if something like this is possible? If so, where would I start! I'm certainly not looking for someone to explain 100% fully and give free code examples etc, only a nudge in the right ...
0
votes
2answers
14 views

How to enable to the user send content and save as draft entry?

I was wondering if is there a way to enable to the user to send content using a form, to select different options like categories, attach images and so on, and after submit the content save as a draft ...
1
vote
2answers
6k views

Posts to expire (deleted) after a date

I am creating a coupon site from scratch. I have reviewed many code examples on the Internet, but have not found anything that will work, as my requirements are little different. I need help in ...
0
votes
1answer
48 views

What is the best way to hook a rewrite function for certain php code when plugins are updated?

I often times make a bunch of customizations on plugins I install from the WP repository. Typically the reason I find myself preforming these edits is to fix, rewrite or delete certain functions a ...
0
votes
2answers
386 views

Automatic publishing after some fixed intervals?

Is it possible to publish "pending posts" automatically after some interval around the clock, using WP Cron or something else? I receive over 2000 posts daily, submitted by visitors, and they all go ...
0
votes
1answer
112 views

Automatically add a character to field in edit post page

Currently I am facing an issue involving making two plugins work well together. I am using a form plugin called formidable to create a new location custom post (custom post was made from a plugin ...
1
vote
1answer
39 views

How can I send edits to my blog programmaticly?

I have started a very simple wordpress blog for a hockey pool I run. The site is located at: http://thekeeperpool.wordpress.com/ I manage the actual stats counting and player movement using a local ...
1
vote
0answers
94 views

How to load script-related styles automatically?

Scenario: It is common that a JS dependency is bundled with a style file to work properly (just think about your favorite slideshow jQuery plugin). AFAIK, in this situation, the script and style have ...
2
votes
1answer
2k views

Automatically create child pages when saving a (parent) page

I have a bit of a tricky one... I have a hierarchical Custom Post Type ('shows') that represents events. Is it possible for the user to create a new page (ie show), save the page and for Wordpress to ...
4
votes
4answers
7k views

How to add/assign or change featured image in post programmatically?

I have written a plugin that (besides other functionality) makes posts from existing content. For each post I have one picture - how to make them featured programmatically? I do the: $id = ...
1
vote
1answer
649 views

Assign post format to categories

I'm looking for a way to allow Wordpress (via a plugin?) to assign a specific post format to categories. (I can assign categories via a third party like IFTTT) Then all my posts in a certain category ...
0
votes
1answer
166 views

Automatic linking terms

I am trying to link words that show up anywhere on the website to go to a pre-defined internal url. In the post editor the author is able to choose a product from a drop-down menu using custom ...
0
votes
1answer
284 views

Alternating CSS classes for dynamic content [closed]

This is for a gallery that's populated automatically, images are pulled in from child pages. Layout is: 2 images in a row and they must be left- and right-aligned respectively. I can't figure out a ...
5
votes
1answer
605 views

Multisite/network--automatic self-registration, blog setup

I am creating a WordPress Network multisite blog in a university environment. It's set up in subdirectory mode, so that each new blog appears as a subdirectory off a common domain name. The Network ...
0
votes
1answer
637 views

How to automate setup of theme, pages, widgets, etc for a new site in multi-site?

I have a large MultiSite network, and each page is designed a bit differently. I'm looking to write some custom code to automate the setup of a new blog as much as I can. Things I'm looking to do ...
20
votes
4answers
1k views

Automatically determine minimum WordPress version required for a plugin?

When developing a plugin, is there a way to automatically determine the minimum version of WordPress that's required to run it? I want to make sure that the Requires header is accurate, but manually ...
0
votes
1answer
141 views

Disable a Custom Taxonomies default save mechanism

I have a custom taxonomy X. I've specified that the UI should be shown (for debugging purposes), however the UI is now interfering with my automation. I have code that automatically mirrors terms ...
4
votes
4answers
734 views

Automating deprecated call checks?

I've recently started revamping and re-releasing some abandoned (yet important) WordPress plugins. As I walk through the code patching other bugs, my IDE highlights deprecated function calls for me, ...
0
votes
1answer
931 views

Have users created automatically when a network site is created

Trying to figure out how to have users created automatically when a network site is created. So currently when a new user registers, their account is created and their network site is created. That ...