Tag: Plugins
WordPress plugin provides shortcode for displaying posts published on current day – cogdog/wp-posted-today
In this post, we’re going to take a look at the WordPress page life cycle, understand how hooks work, and review the differences in actions and filters so that we may not only become better theme and/or plugin developers, but also have a deeper understanding of how WordPress works.
If you change your theme or disable any of your WordPress plugins and your website breaks down, you are suffering from the lock-in effect. Learn about it.
The ultimate collection of the most useful WordPress configuration (wp-config.php) tricks that you may need but do not know about!
Changing Your Site or WordPress Address
Normally, you can set your WordPress and Site URLs from Settings ยป General page. However, you may not be able to do that if you donโt have access to your WordPress site, seeing redirect errors, or have just moved your site.
In that case, you can change your site and WordPress URLs via wp-config.php file by adding the following lines:
define('WP_HOME', 'http://www.example.com');
define('WP_SITEURL', 'http://www.example.com');
And
Moving wp-content Directory
WordPress allows you to move your wp-content directory. Some experts believe that it can help strengthen WordPress security.
You will need to add the following code to your wp-config.php file:
define( 'WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/blog/wp-content' );
define( 'WP_CONTENT_URL', 'http://example/blog/wp-content');
define( 'WP_PLUGIN_DIR', $_SERVER['DOCUMENT_ROOT'] . '/blog/wp-content/plugins' );
define( 'WP_PLUGIN_URL', 'http://example/blog/wp-content/plugins');
Donโt forget to replace example.com with your own domain name.
I wonder if this would allow me to better integrate my ‘home’ space and have a shared content / plugin library between my different sites?
I just had a few thoughts / questions while watching / listening:
-
I never realised that I could add all my Rel=Me links within my profile, does that mean that I do not have to go through all the rigmarole of adding them to my ‘child theme’? That definitely makes it a lot easier to setup.
-
I am really interested in modifying / developing a custom post kind, but what happens when David Shanske updates the plugin? How do I set up to allow for updates and customisation? Is this some sort of ‘child theme’?
-
I wonder if it were possible (maybe in the IndieWeb multisite or something) to customise the ‘Welcome’ box when you first start WordPress? Imagine if the information that is detailed in the IndieWeb plugin area could be placed there, front and centre?
I am really interested in your work in combining Bridgy Publish and Syndicated Links. I currently use SNAP for Twitter, Flickr and Diigo, Mastodon Autoposter and Jetpack for G+. (I could never get Bridgy Publish to work, but after Chris’ recent walkthrough, I think that I need to have a second look.) I find it really tedious to remember which ones to turn on and off for each post. I really like the idea of one space to control them all if that is what you are proposing.