Difference between revisions of "Wordpress"
From Wasya Wiki
Line 5: | Line 5: | ||
== Develop == | == Develop == | ||
$loop = get_posts( 'numberposts=1' ); | $loop = get_posts( 'numberposts=1' ); | ||
+ | |||
+ | === REPL === | ||
+ | <pre> | ||
+ | php -a | ||
+ | define('WP_USE_THEMES', false); | ||
+ | require('./wp-load.php'); | ||
+ | var_dump([]); | ||
+ | </pre> | ||
== Troubleshoot == | == Troubleshoot == |
Revision as of 00:54, 29 May 2018
Contents
Plugins
- wp-subtitle
Develop
$loop = get_posts( 'numberposts=1' );
=== REPL ===
php -a define('WP_USE_THEMES', false); require('./wp-load.php'); var_dump([]);
Troubleshoot
Wordpress plugin install: Could not create directory
sudo chown -R www-data:www-data ../../wordpress_webdevzine/
Trash
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar php wp-cli.phar theme activate FoundationPress
https://s3.amazonaws.com/ish-backups/wordpress/blogwasyaco.wordpress.2016-01-06.xml php wp-cli.phar plugin install wordpress-importer --activate php wp-cli.phar import blogwasyaco.wordpress.2016-01-06.xml --authors=create