Wordpress: Difference between revisions

From DWIKI
mNo edit summary
 
(8 intermediate revisions by the same user not shown)
Line 14: Line 14:
In setttings->permalinks select custom structure /%postname%/
In setttings->permalinks select custom structure /%postname%/
and make sure you have AllowOverride All in apache config
and make sure you have AllowOverride All in apache config
==Get wordpress version on CLI==
grep wp_version wp-includes/version.php
==Show successful logins==
grep 'wp-login.* 302 ' accesslog
=FAQ=
=FAQ=
==Stop prompting for credentials on updates==
In wp-config.php:
define('FS_METHOD', 'direct');
==Upload or install keeps giving "Connection Information" dialog==
Seems to mean wordpress can't write somewhere, so it prompts for user with write access rights
Check at least:
wp-content/plugins
wp-content/themes
==multiple sidebars==
==multiple sidebars==
*http://orangescale.com/blog/2006/06/multiple-sidebars-in-wordpress-widgets/
*http://orangescale.com/blog/2006/06/multiple-sidebars-in-wordpress-widgets/
==The ssh2 PHP extension is not available==
Install https://en-ca.wordpress.org/plugins/ssh-sftp-updater-support/


==How to log in?==
==How to log in?==
Line 31: Line 54:
==CLI upgrade==
==CLI upgrade==
  wp core update
  wp core update
==Could not fully remove the plugin==
Check logs :)
==user login history==
Settings > User Login History
==stop backtrack spam==
*[https://www.greengeeks.com/tutorials/end-trackback-spam-wordpress/ How to End Trackback Spam in WordPress]
Or just deselect '''Allow link notifications from other blogs (pingbacks and trackbacks) on new posts''' and in database update existing entries:
update wp_posts set ping_status = 'closed';

Latest revision as of 14:31, 16 January 2024

Links

Documentation

Howto

Make slugs work

In setttings->permalinks select custom structure /%postname%/ and make sure you have AllowOverride All in apache config


Get wordpress version on CLI

grep wp_version wp-includes/version.php


Show successful logins

grep 'wp-login.* 302 ' accesslog

FAQ

Stop prompting for credentials on updates

In wp-config.php:

define('FS_METHOD', 'direct');

Upload or install keeps giving "Connection Information" dialog

Seems to mean wordpress can't write somewhere, so it prompts for user with write access rights Check at least:

wp-content/plugins
wp-content/themes

multiple sidebars


The ssh2 PHP extension is not available

Install https://en-ca.wordpress.org/plugins/ssh-sftp-updater-support/

How to log in?

In /wp-admin/ !

Upload file and add link to it

Posts->Add new, in editor use "add media"


command line management tool

wp-cli


CLI upgrade

wp core update


Could not fully remove the plugin

Check logs :)


user login history

Settings > User Login History


stop backtrack spam

Or just deselect Allow link notifications from other blogs (pingbacks and trackbacks) on new posts and in database update existing entries:

update wp_posts set ping_status = 'closed';