Posts tagged: tricks

Putting the_content() into a PHP Variable
There are probably a couple ways to do this, but here is a really easy one:
ob_start();
the_content();
$content = ob_get_clean();

WordPress Configuration Tricks
Many WordPress users know the wp-config.php
file as the key to the WordPress database. It is where you set the database name, username, password, and location (among other things like security keys, database prefix, and localized language).
Here's a screenshot of wp-config.php
(aka the WordPress configuration file) for those who may not yet be familiar:

Edit Your Options from the WordPress Admin
Ever needed to update an option in your database without having to log into your control panel or phpMyAdmin? WordPress provides you with an easy way to view, edit and update your database options table (wp_options
) by simply opening the following URL in your browser: