Posts tagged as:

PHP

How To Remove the Get Smart with Thesis Footer

by John Ankarström on May 28, 2009

in Design, Themes

Thesis doesn’t provide an option to change the footer. It should have, because it’s quite complicated to change it manually – at least for a new user of Thesis.

You have to edit the custom-functions.php file, in the ../wp-content/thesis-15/custom folder. Insert this code:

add_action('thesis_hook_footer', 'custom_footer');
function custom_footer() {
?>
    <p><strong>&copy; 2009 <?php bloginfo('name') ?></strong> | <a href="<?php bloginfo('url') ?>/about">About us</a> | <a href="<?php bloginfo('url') ?>/wp-admin">WordPress Admin</a></p>
    <p>Get smart with the <a href="http://diythemes.com/thesis/">Thesis WordPress Theme</a> from DIYthemes.</p>
<?php
}

remove_action('thesis_hook_footer', 'thesis_attribution');

Feel free to change the footer text, starting at line 4 and ending right before line 6. Just remember; don’t delete the Get Smart with Thesis, unless so have the Developer Version of Thesis.

{ 11 comments }

WordPress.org One-Click Install Bug

The plugin I recently wrote about, WordPress.org One-Click Install, has just updated to version 1.2.1, and there’s a serious bug in the new version.

The error is a syntax error in line 235. I noticed this when I updated the plugin. First, every single URL on WordPresser returned a blank page! Then I deleted the plugin from the plugins directory via FTP. If you have the same problem, delete the plugin. I’ve send an email to the author, and I’m waiting for a response.

I hope he solves this soon, ’cause I loved the plugin! ;-)

Update: The 1.2.2 is released, and the “bug” is fixed in the new version.

{ 0 comments }

Execute PHP code in posts with WordPress Plugin

by John Ankarström on May 25, 2009

in Plugins

An example of PHP code in a pageYou can’t insert PHP code in posts or pages in WordPress from the start. Say you want a page listing all your categories or tags. This isn’t possible by standard. To do this, you will (of course) need a plugin.

The plugin’s name is Exec-PHP, and it allows you to use PHP in posts and pages, easily by writing the code in HTML editor. Notice that you can’t switch to the visual editor when editing posts with PHP code, otherwise the code will disappear.

With Exec-PHP you can also execute PHP code in the sidebar widgets. This is great, ’cause you can do more with PHP, than with the Blogroll widget. You can for example list only one link category etc.

I really recommend the WordPress Codex. You can find many tags and codes at the Template Tags part. The tags are used to call WordPress functions.

Download the plugin here, and as usual I would appreciate if you post a comment if you’ve tested it and liked it! ;-)

{ 0 comments }