This is the method on how to remove date from the post if you are using Twenty Twelve Theme in your wordpress blog. The example date under the post is
This entry was posted in Uncategorized on January 7, 2013.
To remove it, in wordpress admin area, select “Appearance” and “Editor”. Select “Theme Functions (functions.php)” file and search for the code as below,
// Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's name.
if ( $tag_list ) {
$utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' );
} elseif ( $categories_list ) {
$utility_text = __( 'This entry was posted in %1$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' );
} else {
$utility_text = __( 'This entry was posted on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' );
}
What you need to change to to remove “on %3$s” in 3 locations in each line start with “$utility_text”. Done 🙂
Recently, I upgrade my hosting account from a share hosting to a VPS system. I manage to get a very good deal from TurnKey Internet through their Black Friday 2011 sale.
After setting up the server, I started to move my wordpress blog to new VPS hosting. I restore the database & all the files. I checked the blog & everything function wonderfully well with a better speed.
I try to enter the admin page, but I was greeted with the following error message.
Fatal error: Allowed memory size of 33554432 bytes exhausted
(tried to allocate .....)
After a search through the internet, I found the solution by placing the following code in “wp-config.php” file under the wordpress directory.
define('WP_MEMORY_LIMIT', '64M');
However, I feel it is not practical to change one by one for all my blogs.
If you have VPS system with WHM/Cpanel, you can fix it permanently by
- Log in to WHM
- On the left-hand side menu, locate “Service Configuration” header
- Click on “PHP Configuration Editor”
- In the “Basic Mode” find the following line
Section |
Directive |
Info |
Value |
Core |
memory_limit |
This sets the maximum amount of memory in bytes that a script is allowed to allocate. This helps prevent poorly written scripts for eating up all available memory on a server. Note that to have no memory limit, set this directive to -1. |
32M |
- Change the “Value” from “32M” to “64M”. Take note on the capital “M”
- I should fix all wordpress blogs in the same VPS