Jump to content

Search the Community

Showing results for tags 'WordPress'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Alfred 3
  • Make the Most of Alfred
    • Discussion & Help
    • Bug Reports
    • Alfred Feature Suggestions
    • Themes
  • Alfred Workflows
    • Share your Workflows
    • Workflow Help & Questions
    • Workflow Advanced Tips & Tricks
    • Workflow Automation Tasks
  • Alfred Themes
  • Alfred Remote for iOS
    • Alfred Remote Discussion & Help
    • Remote Connection Troubleshooting


  • Articles
    • Forum Integration
    • Frontpage
  • Pages
  • Miscellaneous
    • Databases
    • Templates
    • Media

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start




Website URL




Found 9 results

  1. First, I really apologise for how incompetent I am. Without Google, I'd never be able to do anything. But even with Google, I fail. Basic principles, var, query, just fly right over my head. Doesn't matter how much I concentrate, and how much I read, I just never seem to get it I'm trying to construct an Alfred workflow to do the following: I want to create a command consisting of three elements: 1. wp-clone 2. site1 3. site2 #1 is constant. #2 and #3 are variables. They are basically source-folder, destination-folder. The names would change in real use. I'm just using "site1" and "site2" here to illustrate. The final command, which I'd like to pass to iTerm.app, would look like this: wp-clone site1 site2 So what would be ideal is if I can: 1. Pull up the Alfred window (option-space) and start typing "Valet Clone". Press return and it auto-completes (like a keyword would) 2. On return a space inserts and I enter the first argument, where I input "site1" (without quotes: it's basically a directory name) 3. Return again and I get to insert another input, "site2" (again, without quotes: the second directory) 4. Return again and these two variables or arguments are put together and formed as the command: wp-clone site1 site2 It would be great, at that point, if I can run this in the background. Something like: export PATH=/usr/local/bin:$PATH cd /Users/Decline/SERVER/ && wp-clone {query1} {query2} (I would need PATH included as "wp-clone" is a command Alfred's command line wouldn't recognise.) However, I don't mind if the next stage is simply to open iTerm.app and paste the combined command there. The big problem I have is knowing how on earth to get those two variables (site1 and site1) into a single command, and in an elegant way in Alfred's GUI. I just can't wrap my head around it Attached is an attempt, which doesn't work at all, to hack something together in a workflow. Can someone point me in the right direction? Please, any input, imagine you're speaking to a small child, or a Golden Retriever. Many thanks in advance, ian My lame attempt (junk, doesn't work): Valet Clone Alfred Workflow
  2. Hoping this is the right place to post. I've been searching everywhere (this site and the web) and while I'm sure someone has made a version of the workflow I need I'm just as certain I'm using the wrong search string. Why it's needed: I'm finding that the thing that's taking the most time in my weekly workflow is collecting images and screenshots, uploading them to my wordpress site, gathering the URLs for all the images, then pasting the URLs into the weekly shownotes for my podcast—shownotes that I have to upload to the podcast media host which then places them to all the destinations (including my wordpress site). I work in Markdown for speed and have managed to find a way to auto-code all of the links and notes I collect during the week from Google Sheets into my Shownotes Markdown Template, so that takes about 30 seconds to generate every Friday (down from it taking hours - so that's great). Gathering URLs for any and all images for the shownotes, though, takes For. Ever. What is needed: A workflow that would— go to a specific Google Drive* or Dropbox folder download (or otherwise "get") all the images in that folder put/move/upload/place those images into a specific wordpress.org/self-hosted WP site's media library provide me the URLs to those newly uploaded images I rather expected I'd be able to find, if not one complete workflow, at least a couple or several I could cobble together—but no luck, and my workflow building skills aren't up to speed yet. I'd managed to get a python script to work on my iPhone/Editorial app once — but not pulling from Google Drive and not with multiple images. Any ideas/guidance/links/tutorials = much appreciated! *(an assistant uses GD right now, but could use either)
  3. This workflow lets you search the WordPress developer reference with the keyword "wpdev". Searching WordPress core made easy. Finding results is very fast because it searches in local files and doesn't need to be connected to the internet for the search . The workflow checks every 2 weeks if there are new updates in WordPress core. Or you can check manually for updates with the "wpdev update" keyword. Example of a function search Download Last update of this workflow: WordPress 5.5 Download the workflow here: wordpress-developer.alfredworkflow Follow this workflow on github. Note: Deprecated functions, hooks or classes are not included in the search results. If you encounter wrong results or 404 pages please post it here, or create a github issue. thanks.
  4. So I started using Alfred a few weeks ago, and just realized how awesome it is, so I decided to put together a WordPress Workflow. I'd like to share it, but I'd also like some feedback on cleaning it up (if needed), and how to create a config file for default settings such as WordPress user, password, email, so that I can keep sensitive data separate from the actual script. I'm running AMPPS for testing, and it all works. I borrowed code from a few different places. Thanks. # MAMP fix path #export PATH=/Applications/MAMP/bin/php/php5.6.1/bin:$PATH #export PATH=$PATH:/usr/local/bin:/Applications/MAMP/Library/bin # AMPPS fix path export PATH=/Applications/AMPPS/php-5.6/bin:$PATH export PATH=$PATH:/Applications/AMPPS/mysql/bin query="{query}" # MYSQL Credentials mysqluser="user" mysqlpassword="123456" # Database Credentials dbhost="localhost" dbname=$query dbuser=$query dbpass=$(openssl rand -base64 16) #WordPress Config admin_user="admin" admin_password="abc123" admin_email="name@example.com" # Create directory for new site cd /Applications/AMPPS/www mkdir $query cd $query # Create Database /Applications/AMPPS/mysql/bin/mysql -u $mysqluser -p$mysqlpassword -e "CREATE DATABASE $dbname;" /Applications/AMPPS/mysql/bin/mysql -u $mysqluser -p$mysqlpassword -e "GRANT ALL PRIVILEGES ON $dbname.* TO $dbuser@localhost IDENTIFIED BY '$dbpass';" /Applications/AMPPS/mysql/bin/mysql -u $dbuser -p$dbpass -e "use $dbname;" /Applications/AMPPS/mysql/bin/mysql -u $mysqluser -p$mysqlpassword -e "CREATE USER '$dbuser' IDENTIFIED BY '$dbpass';" # Download latest version of WordPress /usr/local/bin/wp core download # Setup wp-config file with WP_DEBUG enabled /usr/local/bin/wp core config --dbname=$dbname --dbuser=$dbuser --dbpass=$dbpass # Install WordPress /usr/local/bin/wp core install --url="http://www.vanwp.ca/{query}" --title="{query}" --admin_user=$admin_user --admin_password=$admin_password --admin_email=$admin_email
  5. Hi guys and gals! First of all I'd like to thank you all for the past workflows I downloaded and for all the help I found on this forum! ;-) Please note i'm a newbie in workflows and bash stuff! I am working on a workflow for WP-CLI (http://wp-cli.org/). The aim of that script is to easily install a WordPress site in the following folder Applications/MAMP/htdocs/Dropbox. It has two parameters, the site slug and the site name. The problem I'm facing is that if I run the script from the Terminal, it works fine, but from the workflow it fails. What I have done: - installed WP-CLI (it works from the Terminal) - created a bash script - placed that .sh file in Applications/MAMP/htdocs/Dropbox - placed a .bash_profile file in users/remi/ - created the workflow to load the .sh file The .bash_profile file content is (required when using MAMP): # FIX PHP MAMP for WP-CLI export PATH=/Applications/MAMP/bin/php/php5.6.1/bin:$PATH export PATH=$PATH:/Applications/MAMP/Library/bin/ What works: - in the terminal the following command does work: cd Applications/MAMP/htdocs/Dropbox bash myscript.sh sitename "My WP Blog" It downloads latest WordPress version, create the sitename folder in Applications/MAMP/htdocs/Dropbox, etc... in other words, that works! What fails: - launching the myscript.sh file from Alfred 2 workflow. - the error message that I get in the debug console of Alfred is: [ERROR: alfred.workflow.action.script] Code 127: /Applications/MAMP/htdocs/Dropbox/myscript.sh: line 97: wp: command not found Here is my workflow content: bash /Applications/MAMP/htdocs/Dropbox/myscript.sh {query} And here is the beginning of my myscript.sh file: #!/bin/bash # # How to launch script ? # bash myscript.sh sitename "My WP Blog" # $1 = folder name & database name # $2 = Site title # VARS # admin email email="my@email.com" # local url login # --> Change to fit your server URL model (eg: http://localhost:8888/my-project) url="http://"$1"/" # admin login admin="admin-$1" # path to install your WPs pathtoinstall="/Applications/MAMP/htdocs/Dropbox/" # path to plugins.txt (not accurate, but the script fails before it's used!) pluginfilepath="/Desktop/plugins.txt" # end VARS --- # =============== # = Fancy Stuff = # =============== # not mandatory at all # Stop on error set -e # colorize and formatting command line # You need iTerm and activate 256 color mode in order to work : http://kevin.colyar.net/wp-content/uploads/2011/01/Preferences.jpg green='\x1B[0;32m' cyan='\x1B[1;36m' blue='\x1B[0;34m' grey='\x1B[1;30m' red='\x1B[0;31m' bold='\033[1m' normal='\033[0m' # Jump a line function line { echo " " } # Sript has something to say function bot { line echo -e "${blue}${bold}( script says )${normal} $1" } # ============================== # = The show is about to begin = # ============================== # Welcome ! bot "${blue}${bold}Hi!${normal}" echo -e " I am about to install the following WordPress site : ${cyan}$2${normal}" # CHECK : Directory doesn't exist # go to wordpress installs folder # --> Change : to wherever you want cd $pathtoinstall # check if provided folder name already exists if [ -d $1 ]; then bot "${red}Folder ${cyan}$1${red} already exists${normal}." echo " I am not going any further!" line # quit script exit 1 fi # create directory bot "Creating folder : ${cyan}$1${normal}" mkdir -p -m 777 $1 cd $1 # Download WP bot "I am downloading WordPress..." wp core download --force // and the script continues, but it fails at 1st wp call If I run the workflow, only the sitename folder is created in Applications/MAMP/htdocs/Dropbox and the first wp occurence breaks the process. So, i'm definitely missing something, but I don't know why. Any inputs on this would be highly appreciated. Of course I'll share the full workflow here, once it will be working. I'm open to any ideas and criticism! ;-)
  6. Hello, I spend my days building and administrating Wordpress websites for companies. Today i am administrating over 100 sites, and it is getting more every day. My request for a workflow is quicker access to different admin-areas in wordpress of the sites. Lets say i have these three sites: www.coolpage1.com www.coolpage2.com www.coolpage3.com All of the sites admin-area can be accessed by adding "/wp-admin" at the end of the url. Today i use the custom search that is built into Alfred with the {query}. For example i write the keyword "admin" followed by "coolpage2". This works fine for opening www.coolpage2.com/wp-admin. The problem with this method for me though is: 1. Its is a slow process to add all the 100 sites in the custom search 2. I need to complete the looong query "coolpage2" (i would like it to autocomplete). 3. I would like to easily add shortcuts to other areas of the Wordpress Dashboard, not just /wp-admin. I would want to easily bring up "new post", "widgets", "menus" and more (which always has the same url-endings on every page), but custom search forces me to repeat the process thousands of times. So could i make a script that could do the following: 1. Enter a keyword ("wg" for widgets, "wm" for menus, "wn" for new post and so forth) 2. Start typing a query that autocompletes based on an overview of sites ("coolpage1", "coolpage2", "coolpage3") and open the correct URL based on keyword and query 3. Add a new sites quickly and easily to the "autocomplete-database" by typing keyword "addpage" followed by "coolpage4" I have no idea how to do this, but it would speed up my workday alot! Anyone able to help me with this? Anders
  7. ** This workflow is no longer maintained ** It's recommended you use the wordpress developer reference workflow as It's more up-to-date with the most recent WordPress functions Here is a workflow for WordPress developers that searches all the functions in the WordPress function reference. http://codex.wordpress.org/Function_Reference/ After searching the functions you can go directly to the correct Codex function page. It searches a list (that comes with the workflow) with all the functions in the function reference. Update this list from time to time with the keyword "wpfrupdate". Sometimes It can take a while before you see the message that the functions are updated. This makes looking up functions very fast because no internet connection is needed for looking in the function list. Here's what it looks like when searching for functions with the keyword "wpfr". You can download it here: FunctionReference.alfredworkflow enjoy.
  8. Hi, I was always thinking how to cut short my work progress. It will be cool if that's a way to auto compile local environment data then upload to a specific live site using Alfred. I'm weak at scripts, etc, hence it would be cool if anyone can help point out to me into some direction. Currently, I'm just thinking maybe, make Alfred do this workflow. 1) Export MYSQL database from MAMP (local) 2) Save the SQL file to a folder 3) Copy the whole wordpress folder. Access a particular FTP (through Forklift or some other FTP programs) 4) Paste the wordpress folder to the directory 5) Change the urls of "local environment directory" to a appropiate directories in SQL file. 6) Import the SQL file into live site through PHPMyAdmin Any help would be great. Or is there a workflow for such a complex workflow?
  9. I have a workflow setup to download wordpress, extract it into my dev sites directory, clone a few repos for my starter theme and a few plugins, create a database, run npm install and grunt in a terminal window, etc. The last step I'm trying to do via an output script is run a instance of wp_install() in a PHP script to run the full installation and then have the browser open the site. Here's a gist of the PHP code I'm running: https://gist.github.com/mattbanks/5213396 I tried running it as a PHP output script and changing line 3 to $site = "{query}"; but it wasn't working. I then tried calling: php -f installing.php -- {query} via a Bash script and grabbing {query} as argv[1], but no dice there either. If I copy the file to the root directory of the WordPress install and run it in the browser with a query string of "q" (as setup in the gist), it works properly (ie http://sites.dev/mysite/installing.php?q=mysite). So I tried copying the installing.php file from the workflow directory over to the WordPress site directory I created, which works fine, but I can't get the browser to properly open the file. I know the {query} variable is passing properly because I threw a notification of it and it's there just fine. Here's what I'm trying via a bash output script: cp installing.php ~/Sites/{query} open http://sites.dev/{query}/installing.php?q={query} But it's not opening properly. It's throwing me http://sites.dev/{query} - not finishing off the full URL. Any ideas how I can get it to run properly? Thanks, Matt
  • Create New...